Song key finder
Detect the musical key of a song (for example A minor or E♭ major) from an audio file, with the Camelot code for harmonic mixing.
Your audio is processed by your browser and is not uploaded. What does connect to the internet?
How to use it
- Drop a song into the box.
- The detected key, its confidence and the Camelot code appear after the analysis.
- Use the relative and compatible keys to mix or transpose.
Our test results
We run this tool’s own processing code on our public test files with known answers. Last run 26 November 2026 in Chrome/156.0.8078.100.
| Test | Input | Expected | Measured | Result |
|---|---|---|---|---|
| Key | a-minor-120bpm.wav | A minor | A minor (8A) | Pass |
| Key | c-major-chords.wav | C major | C major (8B) | Pass |
How key detection works
The analyser measures how much energy falls on each of the 12 pitch classes over the whole song (a chromagram), then compares that profile with the Krumhansl–Schmuckler profiles for all 24 major and minor keys. The best match is the key; the runner-up is shown when it is close, which often means the relative major or minor.
Camelot codes for DJs
The Camelot wheel numbers keys so that compatible keys sit next to each other: same number (8A ↔ 8B) is the relative major/minor, and ±1 (8A ↔ 7A, 9A) is a fifth away. Mixing between neighbours sounds harmonic.
Known limitations
- Only the 24 major and minor keys are considered. Modal, blues-based, atonal and twelve-tone music gets the nearest major or minor fit, often with low confidence.
- One key is reported for the whole file. A modulation, such as a last chorus raised a semitone, is blended into the result; cut the sections apart with the audio cutter to check each one.
- Notes are mapped to a fixed A4 = 440 Hz grid, and only energy between 55 Hz and 2 kHz is counted. Recordings detuned by close to a quarter tone, and drum-heavy tracks with little sustained harmony, give weak results.
Questions and answers
Why did it say C major when the song is A minor?
Relative keys share the same notes. The detector picks the tonal centre by the profile, but songs that hover between the two can go either way. Check which chord the song resolves to.
Does it work on songs that change key?
It reports the key that dominates the whole file. Cut the song into sections with the audio cutter to analyse each part.
Why does it say C♯ major and not D♭ major?
The key finder uses one fixed spelling for each black key: C♯, E♭, F♯, A♭ and B♭. C♯ major and D♭ major are the same key with the same notes and the same Camelot code, 3B. F♯ major and G♭ major share 2B in the same way. Use whichever spelling your sheet music uses.
Which keys mix well with an 8A track?
8A is A minor. Moving to 8B (C major, its relative major), 7A (D minor) or 9A (E minor) keeps a mix harmonic, because each of those keys shares all or all but one of its notes with A minor. The finder shows the Camelot code for every file you drop, so you can sort a set by it.
Can the key finder detect modes like Dorian or Mixolydian?
No. It compares the song with the 24 major and minor key profiles only. A modal song is reported as the closest major or minor key, usually one that shares its tonic or its notes: D Dorian can come out as D minor, or as C major or A minor, which use the same notes.
Does the tuning of the recording affect the result?
Only when it is far off. Every frequency is assigned to the nearest semitone on a grid tuned to A4 = 440 Hz. Songs tuned to 432 Hz (about 32 cents flat) or 442 Hz still land on the right notes. A recording close to a quarter tone off, such as a tape transfer running about 3% fast or slow, splits between neighbouring notes and gives an unreliable key.
What does the bar chart under the result show?
It shows how much energy each of the 12 notes received over the whole file, scaled so the strongest note is full height. In a clear A minor song, A, C and E usually stand tallest. If the tallest bars do not fit the detected key, treat the result with caution and look at the Next best key.
Maintained by AudioUtilitiesLast tested 26 November 2026ChangelogReport a problem