How to Find the Key of a Song
Find a song's key with a key finder, read the relative key and Camelot code beside it, and confirm the answer by ear before you rely on it.
The key of a song is the note it comes home to, plus whether the scale on that note is major or minor. The quick way to find it is to drop the audio file into the key finder and then confirm the answer by ear, because every detector gets some songs wrong. The wrong answers fall into a few patterns, and each one has a short check.
What a key is
A key has two parts: a home note, called the tonic, and a mode. In most popular music the mode is major or minor. G major means the song draws on the seven notes of the G major scale and sounds finished when it lands on G.
Twelve possible tonics and two modes give 24 keys. A song almost always ends on its tonic, and its phrases keep returning there. You will use that later to check the detector.
What the key finder reports
The key finder decodes the file inside your browser tab and uploads nothing. It takes MP3, WAV, M4A, OGG and FLAC files up to 100 MB. For a track longer than 90 seconds it analyzes the middle 60 seconds, which skips silent intros and fading outros.
It measures how much of the sound falls on each of the 12 notes, in any octave, and compares that pattern with a template for each of the 24 keys. The templates are David Temperley's key profiles, which record how often each note of the scale turns up in music in that key. The tool does this for up to six overlapping 15-second stretches and reports the key most of them agree on.
The result card has four readouts:
- Key: the tonic and mode, for example A Minor.
- Confidence: "Very sure" above 65%, "Fairly sure" above 30%, and "Not sure, check by ear" below that.
- Camelot Code: for example 8A.
- Relative key: for example C Major.
Four ways a key reading goes wrong
Taking the relative key for a second opinion
The card shows two keys, and the second is the first one's relative, printed for reference. Every major key has a relative minor that uses the same seven notes and starts three semitones lower. C major and A minor are the textbook pair: both are the white keys of a piano.
With identical notes, the only difference is which note the song treats as home, and a detector that counts notes has little to go on. If the tool says C Major but the verses keep settling on A, the song is in A minor, and the Relative key line has already named it.
A relative pair shares one Camelot number, 8B and 8A here, so for DJ mixing the mix-up costs little. For a chord chart, or for telling a band where home is, it matters.
Trusting a low confidence reading
Confidence comes mostly from how far the winning key beat the runner-up, and partly from how many of the analyzed stretches agreed. A song whose notes fit two keys about equally well scores low, however clear it sounds to you.
The tool's own notes list the usual cases: songs that change key, jazz with dense chords, and atonal music. When the card says "Not sure, check by ear", take it as an instruction.
Expecting one key from a song that changes key
A song that steps up for its last chorus has two keys. The tool reports one, and on a track over 90 seconds it hears only the middle minute. A late key change sits outside that window, so the reading describes the body of the song and not its ending.
If you need the key of one section, cut that section into its own file in any audio editor and run it separately.
Searching for a flat key under a sharp name
The tool spells every black-key note as a sharp. A# Major is the key most charts call B flat major. D# Major is E flat major, and G# Major is A flat major.
The notes are the same and only the spelling differs. If a chord site has nothing for "A# major", search the flat name. Key signatures and the circle of fifths shows which flat key each sharp name stands for.
Confirm the key by ear
You need a steady reference note. The tone generator gives you one: under "Set the pitch by" choose Note, pick the note and an octave, and press Play.
- Start the song and hold the reported tonic quietly underneath it.
- Listen at the ends of phrases and at the final chord. The right tonic sounds settled there. A wrong one sounds as if it wants to move.
- If it never settles, try the tonic of the relative key. Then try the notes seven semitones above and below the reported tonic. Keys a fifth apart share six of their seven notes, so they are easy to confuse.
- To settle major against minor, test the third. Play the note four semitones above the tonic, then the note three semitones above. If the first fits the melody, the key is major. If the second fits, it is minor.
If you cannot pick the home note out against a tone, sing it instead. Open the vocal range finder, press "Start with my microphone", hum the note the song comes to rest on at the end, and read the note name under Now.
What the Camelot code is for
The Camelot wheel renames the 24 keys so a DJ can choose compatible tracks without reading music. Each key gets a number from 1 to 12 and a letter, A for minor and B for major. C major is 8B and A minor is 8A.
The numbers follow the circle of fifths, which puts similar keys next to each other. Three moves keep two overlapping tracks in agreement:
- Same code. Both tracks are in the same key.
- Same number, other letter. The relative major or minor, with the same seven notes.
- One number up or down, same letter. A key a fifth away, with six notes in common. From 8A that is 7A (D minor) or 9A (E minor). The wheel wraps, so 12 sits next to 1.
During a blend both tracks sound at once. When their keys share most of their notes, the bass lines and chords clash far less. A relative-key error from the detector changes only the letter, so the number is still usable. The Camelot wheel and harmonic mixing goes through the wheel move by move.
Checks before you use the key
- Confidence reads "Very sure" or "Fairly sure". If it reads "Not sure, check by ear", do that before anything else.
- The reported tonic sounds settled under the final chord.
- You tried the relative key's tonic and it sounded less settled.
- The song has no key change, or you ran each section as its own file.
- Sharp names are converted where charts use flats: A# to B flat, D# to E flat, G# to A flat.
- Any transposing is counted from the confirmed key, not from the first reading. The pitch changer has a Key helper that shows the key after a shift.
Sources
More guides
- The Camelot Wheel and Harmonic Mixing
How the 24 keys map to Camelot codes 1A to 12B, which moves stay in key, and how a tempo change by resampling shifts a track's code.
- Key Signatures and the Circle of Fifths
Read a key from its sharps or flats, walk round the circle of fifths once, and use it to find related keys for a key change or a chord progression.
- A4 = 440 Hz and Note Frequencies Explained
Work out the frequency of any note from A4 = 440 Hz, read MIDI note numbers, and see what 432 Hz changes: a shift of about 32 cents.
- How to Make a Karaoke Track From Any Song
Split a song into vocals and instrumental, move it to a key the singer can reach, keep a quiet guide vocal if you want one, and save it for a phone.