How to find the key of a song
Drop a song file onto the box above, or tap the box to choose one. MP3, WAV, M4A, OGG and FLAC files up to 20 minutes long all work, as long as your browser can decode them. No file? Switch to Listen mode and play the song from another device or a speaker near your microphone for 30 seconds.
A typical song takes a few seconds to decode and analyze. Then the result card shows:
- the key, such as A minor, with a confidence score from 0 to 100;
- the relative major or minor and the second-best key, each with its own score;
- the Camelot code, the seven notes of the scale and the tuning reference (A4).
If the song has a long intro, a spoken part or a slow fade, drag across the waveform to analyze only the main section, or type its start and end times. The result updates at once. To check the answer, play the song and hum or play the first note of the scale: that note, the tonic, should feel like home. Looking for tuners, tempo or pitch tools? Browse all our music tools.
How the key finder works
Music in a key leans on some notes more than others. A song in C major uses C, E and G a lot, uses F, A, D and B a little less, and rarely touches C♯ or F♯. The finder measures that pattern in your song and compares it with what is typical for each of the 24 major and minor keys.
First it cuts the track into short, overlapping slices of about 0.19 seconds and finds the frequencies in each slice with a fast Fourier transform. Every frequency from 55 Hz to 2,000 Hz is then folded into one of 12 note bins, C through B, whatever its octave. This folded picture is called a chromagram. Loud sounds are compressed on the way in, so one booming bass note can't drown out everything else.
Next, the totals for the 12 notes are compared with the Krumhansl-Kessler key profiles. These come from listening experiments in which trained musicians rated how well each note fit after hearing a passage in a key. The finder shifts the major and minor profiles to all 12 starting notes and measures how closely each of the 24 matches your song with a Pearson correlation, a number from −1 to 1 shown as r. The best match is the key.
Before any of this, the finder measures the tuning. In a song tuned to 432 Hz, every note sits a third of a semitone below the standard frequencies, and some would fall into the wrong bin. Measuring the tuning first means every note is counted in the right place.
Why relative major and minor get confused
C major and A minor use exactly the same seven notes, and so does every major key and the minor key three semitones below it. The finder can only tell them apart by which notes the music stresses: C and G point to C major, A and E point to A minor. Songs that move between the two, or that start and end on different chords, get close scores. That is why the card always shows the relative key with its own score. If the two are within a few hundredths, listen for the chord the song feels at rest on, often the last chord of the chorus.
Is this song tuned to 432 Hz or 440 Hz?
Most music today is tuned so that A4, the A above middle C, is 440 Hz. Some recordings use another reference, and some tracks are retuned to 432 Hz on purpose. The finder works out which one by checking how far the music's notes sit from the grid of standard notes built on 440 Hz.
For every strong peak between 80 Hz and 2,000 Hz, it measures the distance to the nearest standard note in cents (hundredths of a semitone). In a song tuned to 440 Hz those distances cluster around 0. In a 432 Hz song they cluster around −32 cents. The finder averages all of them, giving louder peaks more weight, and turns the average into an A4 value. The reliability shows how well the notes agree: reliable, rough, or can't tell. The label says “Tuned to” when the result is within 3 cents of a standard and “Close to” within 6 cents.
| A4 | Offset from 440 Hz | Where you meet it |
|---|---|---|
| 432 Hz | −31.8 cents | Music retuned to 432 Hz |
| 435 Hz | −19.8 cents | The old French and 19th-century standard |
| 440 Hz | 0 | The international standard |
| 442 Hz | +7.9 cents | Many European orchestras |
| 443 Hz | +11.8 cents | Some European orchestras |
| 444 Hz | +15.7 cents | A few orchestras and some pop productions |
432 Hz is 31.77 cents below 440 Hz, about a third of a semitone, so the two are easy to tell apart. Vinyl rips and old tape transfers often land between the standards, because the turntable or tape machine ran slightly fast or slow. One limit matters: tuning can only be measured within one semitone, so a baroque recording at A4 = 415 Hz looks exactly like a 440 Hz recording in a key a semitone lower. For the history and the claims made about 432 Hz, read the 432 Hz versus 440 Hz evidence.
Reading the confidence score
The confidence combines how well the best key matches the song with how far it is ahead of the second-best key, and it drops toward zero when no pitch class stands out at all, as with drums or noise. A score of 60 or more is High: the song clearly fits one key. From 30 to 59 is Medium: the answer is probably right, but look at the second choice. Under 30 is Low: two or more keys fit almost equally well, or the music has little harmony.
When the score is low, try the second choice, especially if it is the relative key or a key a fifth away. Selecting only the main part of the song often helps more, because intros, breakdowns and spoken parts blur the picture. If all 12 notes are almost equally strong, as in drum loops or speech, the card says “No clear key” instead of guessing.
Camelot codes for DJs
The Camelot wheel gives each key a number from 1 to 12 and a letter: A for minor keys, B for major keys. Keys next to each other on the wheel share six of their seven notes, so they mix smoothly. Three moves usually sound good: stay on the same code, go one number up or down (8A to 9A or 7A), or switch letters with the same number (8A to 8B, which is A minor to C major). The finder shows the code for every result, and the copied text and the share link include it.
| Number | Minor (A) | Major (B) |
|---|---|---|
| 1 | G♯ minor | B major |
| 2 | E♭ minor | F♯ major |
| 3 | B♭ minor | D♭ major |
| 4 | F minor | A♭ major |
| 5 | C minor | E♭ major |
| 6 | G minor | B♭ major |
| 7 | D minor | F major |
| 8 | A minor | C major |
| 9 | E minor | G major |
| 10 | B minor | D major |
| 11 | F♯ minor | A major |
| 12 | C♯ minor | E major |
When the result is wrong
No key finder is right every time. These are the usual reasons:
- Modal songs. A song in D Dorian or G Mixolydian uses the notes of C major but centers on another note, so the finder may say C major, D minor or G major.
- Blues and blues-rock that mix major and minor thirds over the same chord.
- Key changes. A last chorus that moves up a step pulls the whole-track result toward a blend of two keys. The key-over-time strip shows where the change happens.
- Heavy distortion, which adds strong notes that are not in the key.
- Drum-only intros and long spoken parts.
What to do: select a clean section with chords, check the second choice, or write out the tune with the melody to MIDI converter and see which notes it uses most.
Honest limits: Key detection is an estimate. It works best on songs with clear harmony and one key. Modal, blues and jazz tunes, songs that change key and drum-heavy tracks are harder, and the most common mistake is picking the relative major or minor (they share the same notes) or a key a fifth away. Tuning can only be measured within one semitone: a track at A4 = 415 Hz looks like a 440 Hz track one semitone lower. Tracks sped up or slowed down after recording show a shifted tuning. Streaming services do not allow their audio to be opened here.
Next steps: tempo, transposing and singing
Once you know the key, detect the tempo too with the BPM finder, which reads the same file or lets you tap along. If the song sits too high or too low for you, transpose the song by a few semitones, and compare its melody with your own vocal range first. To check the frequency of any note in the scale, look it up on the chart of note frequencies.
Tap tempo or BPM detection from a song file.
Open tool → Pitch ChangerShift a song by semitones or cents, or from 440 to 432 Hz.
Open tool → Vocal Range TestYour lowest and highest notes, with a voice-type guide.
Open tool → Note Frequency ChartEvery note from C0 to B8 in Hz.
Open tool → Audio to NotesTurn a sung or hummed melody into notes and MIDI.
Open tool →Your files stay on your device
Your song is decoded by your own browser and analyzed in a Web Worker, a background thread on your device. Nothing is uploaded, and the file never leaves your computer or phone. Listen mode keeps its 30-second recording in memory only and discards it after the analysis. The only things saved are your note-name setting and the results you copy, share or download, kept in this browser's local storage until you press Clear all. Read how we handle your audio.
Song key finder FAQ
How accurate is an automatic song key finder?
For pop, rock and dance tracks with clear harmony in one key, profile-based finders like this one usually get the key right, and when they miss, the answer is most often the relative major or minor or a key a fifth away. Accuracy drops for modal songs, blues, jazz and tracks that change key, which is why the tool shows a confidence score and a second choice.
Can it tell C major from A minor?
Often, but not always. Both keys use the same seven notes, so the finder decides by which notes the music leans on: C and G for C major, A and E for A minor. Songs that move between the two get close scores, and the result card always shows both. Listen for the chord the song feels “at home” on to decide.
Why does the finder say my song is tuned to about 437 Hz?
The recording sits between the usual standards. Common causes are vinyl or cassette transfers that run slightly slow or fast, older recordings made before 440 Hz was universal, bands that tuned to each other rather than to a tuner, and tracks that were sped up or slowed down. If the reliability is “rough”, the song may not have enough steady notes for a precise reading.
Can I find the key of a song on Spotify or YouTube?
Not directly: streaming services do not let websites open their audio files. You can use Listen mode and play the song from another device near your microphone for 30 seconds. The key result is usually fine this way, but the tuning estimate is less precise because the speaker and the room color the sound.
Why does a 432 Hz version of a song show the same key as the original?
Moving from 440 Hz to 432 Hz lowers every note by 31.77 cents, about a third of a semitone. That is not enough to move a note into the next pitch class, so a song in A minor stays A minor, just slightly flat. The tuning line on the result card shows the difference: “A4 ≈ 432 Hz” instead of 440.
What file types can I analyze?
Any audio file your browser can decode: MP3, WAV, M4A/AAC and OGG work in all major browsers, and FLAC works in current Chrome, Edge, Firefox and Safari. Tracks can be up to 20 minutes long. Files bought with copy protection (DRM), such as old iTunes .m4p files, cannot be opened by any website.