Key and scale analysis
MIDI key finder
Open a MIDI file and estimate its most likely key, relative key, Camelot code, and the next closest candidates. Drum-channel notes are excluded, and the analysis stays on this device.

Open a MIDI file
Stay on-device. Start empty if you have no file, or try a public demo.
Off-grid notes, wild velocities, leftover gaps — the dirty AI-song export producers actually get.
A clean four-bar piano phrase you can transpose, quantize, or reshape immediately.
Drums, bass, and chords on separate tracks for mute, solo, and merge practice.
The same hook after quantize and velocity cleanup — the after shot for the messy export.
Your file stays on this device unless you explicitly use Creator Cloud. After an edit, one local recovery copy is saved in this browser until you replace or clear it.
Creator Cloud
Keep the versions and extend the phrase.
Creator Cloud adds cloud history and reviewed AI MIDI edits a month. The tool you are using stays free.
- 60 reviewed AI MIDI edits each month
- 50 cloud projects with 100 versions each
- Cancel anytime; the free editor stays free
How a MIDI key finder reaches an answer
EditMIDI builds a twelve-note pitch-class histogram from the file. Each note contributes its duration and a velocity weight, so a long bass note and a short grace note do not count as equal evidence. The histogram is compared with established major and minor key profiles for every possible tonic.
The highest correlation becomes the best estimate. The gap between the best and second-best result becomes the confidence figure. A clear separation is more trustworthy than a crowded result, and the three alternatives show what else the notes could support.
Read the confidence before you transpose
A short loop, a single chord, or a melody that avoids the third and sixth can fit several keys. That is not a bug in the file; it is how little information the notes contain. Use the confidence, the alternatives, and your ear together before changing the key of a finished arrangement.
A file that modulates between sections can still have one global estimate. The result describes the weighted center of the whole file, not every bar. If the song changes key, split or inspect the sections separately and transpose the part that actually needs to move.
What the key estimate is useful for
Use the estimate to choose a singer-friendly transposition, match a sample or loop, or check whether an AI-generated MIDI draft landed in the key you asked for. The relative key and Camelot code are useful when you are matching harmonic material rather than naming a scale.
The tool ignores drum channel 10 because percussion notes are mappings, not pitches. It also treats every pitched channel as part of one harmonic picture. Separate melodies that belong to different songs should be analyzed in separate files.
Limits that matter for real music
Key detection is a statistical estimate, not a score reader. Modal music, atonal passages, heavy chromaticism, and files with many wrong notes can produce a plausible but musically wrong answer. The pitch-class chart is there so you can see why the result appeared.
Nothing is uploaded, and opening or analyzing a file does not change it. Downloading before an edit returns the original bytes. When you do transpose, the separate transpose tool keeps note timing and non-note events intact and excludes drum channel 10 by default.
Keep the same fileAll EditMIDI tools
Open the full index
Every page runs on the same browser MIDI engine, so you can move between them without uploading or re-importing your file.
- MIDI editor online — edit notes, tracks, and velocity in the browser
- MIDI player online — preview tracks, scrub, and loop without uploading
- Transpose MIDI online — change key without losing tempo or controllers
- Change MIDI BPM online — replace a tempo map with one steady value
- Quantize MIDI online — snap note starts and ends to a musical grid
- MIDI velocity editor — set note dynamics from 1 to 127
- MP3 to MIDI converter — turn a melody into an editable piano roll
- Audio to MIDI — sketch one melody from a local recording
- Suno MIDI cleanup — quantize and fix messy AI exports
- MIDI to MP3 — render a MIDI file to WAV or MP3 in this browser
- Piano roll viewer — see every note, pitch, and length in a .mid file
- WAV to MIDI converter — draft notes from an uncompressed recording
- Vocal to MIDI — turn a hummed or sung line into editable notes
- Merge MIDI files — combine two .mid files into one multi-track project
- MIDI file checker — inspect structure, channels, tempo, and compatibility risks
- MIDI duration calculator — read seconds, bars, beats, and tempo points
- MIDI to CSV — export one row per note for a spreadsheet
- MIDI to JSON — export a versioned structured note object for apps and AI
- MIDI to video — record a vertical, square, or widescreen piano-roll clip
- MIDI cover art generator — export a 1500px PNG from the note pattern
- Humanize MIDI — add bounded timing and velocity variation with a repeatable seed
- MIDI velocity curve — reshape dynamics with a gamma curve
- MIDI note length editor — make notes shorter, legato, or staccato
- MIDI to WAV — render uncompressed 44.1 or 48 kHz audio locally