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.

Local file processing
A piano roll with highlighted notes forming a musical key and a confidence chart beside it
The key estimate weights every pitched note by duration and velocity, then compares the result with major and minor profiles.
1 Open a MIDI file2 Read the result3 Continue with a tool

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
See Creator Cloud · $7.99/mo

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 file

All 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.