To find the key of a song, load the audio into a key finder, read the key and its Camelot code, then play the tonic chord against the track to confirm it. Most pop, rock and electronic songs give a clear answer; the one trap is that every major key shares its notes with a minor key, so C major and A minor are easy to mix up. This guide explains what a key is, how key detection software works, how to read the Camelot wheel for DJ mixing, how to find the key by ear on an instrument, when detection fails, and how to transpose a song to suit your voice. The Song Key Finder used here is processed locally in your browser, so the song is not uploaded.
24
possible keys
12 tonics, major or minor
55 Hz to 4.2 kHz
range analyzed
tonal peaks only
±12
semitones to transpose
plus ±100 cents fine tune
What a musical key is
A song's key tells you two things: which note feels like home, and which set of seven notes the melody and chords mostly use. In C major the home note is C and the scale is C D E F G A B, the white keys of a piano. The key is why the last chord of a song sounds finished and why a wrong note in a solo sounds wrong.
Major keys use the pattern whole, whole, half, whole, whole, whole, half step and tend to sound bright and settled. Minor keys lower the third, sixth and seventh notes and tend to sound darker or more tense. With 12 possible home notes and two modes there are 24 keys in common use.
Relative and parallel keys
Every major key has a relative minor that uses exactly the same notes and starts three semitones lower: C major and A minor, G major and E minor, F major and D minor. They have the same key signature, so the only difference is which note the music treats as home. Parallel keys share a tonic but not a scale: C major and C minor differ by three notes.
| Major key | Relative minor | Sharps or flats | Notes |
|---|---|---|---|
| C major | A minor | none | C D E F G A B |
| G major | E minor | 1 sharp (F#) | G A B C D E F# |
| D major | B minor | 2 sharps | D E F# G A B C# |
| A major | F# minor | 3 sharps | A B C# D E F# G# |
| E major | C# minor | 4 sharps | E F# G# A B C# D# |
| F major | D minor | 1 flat (Bb) | F G A Bb C D E |
| Bb major | G minor | 2 flats | Bb C D Eb F G A |
| Eb major | C minor | 3 flats | Eb F G Ab Bb C D |
Sharps and flats are often two names for the same pitch: C# and Db are one piano key. Our key finder names the tonic with sharps and adds an "Also written" line with the flat spelling, so a result of A# minor also reads Bb minor, which is how most sheet music would write it.
How to find the key of a song with a key finder
The Song Key Finder reads MP3, WAV, FLAC, M4A, OGG, Opus and AIFF files, and video files such as MP4 and MOV, so it works as an MP3 key finder and for songs inside clips. It runs in Chrome, Edge, Firefox and Safari on Windows, Mac, Android and iPhone.
- 1
Open the song
Drop the file onto the tool, or click the drop zone to browse your files. On a phone this opens the system file picker (Files on iPhone, Downloads or a cloud drive on Android).
- 2
Let it analyze
A progress panel titled Detecting the key appears while the whole file is analyzed in a background worker. Cancel stops it at any time.
- 3
Read the key and Camelot code
The result shows Key (for example A minor), its Camelot code (8A) and a Confidence of High, Medium or Low. Low confidence comes with a hint that key changes, atonal parts or heavy drums make detection harder.
- 4
Hear the chord
Press Hear the major chord or Hear the minor chord to play the tonic triad, synthesized in your browser. Play it while the song is paused at a chorus: the right key sounds like it belongs.
- 5
Check the notes chart
Notes in the track shows the relative strength of all 12 notes. Highlighted bars are the notes of the detected scale and the darkest bar is the root.
- 6
Use the alternatives
Other possible keys lists the next three candidates with their Camelot codes, and Mixes well with lists three compatible keys for DJ sets. Copy key copies a line such as A minor (8A).
How key detection software works
Every music key finder, from DJ software to our browser tool, follows the same basic recipe: measure how much of each note is present, then find the key whose typical note distribution matches best.
Step 1: the chromagram
A chromagram folds all octaves together into 12 bins, one per pitch class (C, C#, D and so on). A low A at 110 Hz, the A at 440 Hz and the A at 880 Hz all add to the A bin. Our tool mixes the song to mono, resamples it to 22,050 Hz and takes a detailed spectrum (8,192 points) about every 0.19 seconds. Only clear tonal peaks between 55 Hz and 4.2 kHz count: a peak must stand about 12 dB above its neighborhood, which keeps drum noise and hiss out of the chart. Each peak is assigned to its nearest note, with less weight the further it sits from the exact pitch.
Step 2: matching key profiles
A key profile is a template of how often each scale degree appears in music in that key: the tonic and fifth are strong, the notes outside the scale are weak. The classic method, the Krumhansl-Schmuckler algorithm, rotates a major and a minor profile to all 12 tonics and picks the one that correlates best with the chromagram. Our key finder uses the same correlation approach with the Temperley (Kostka-Payne) profiles, chosen because, on synthetic chord progressions in all 24 keys, they were less likely than the original Krumhansl-Kessler profiles to mistake a I-IV-V-I progression for the key of its fourth chord.
Step 3: confidence
Confidence comes from how far the winning key is ahead of the runner-up, scaled by how well the winner fits. A song that sits firmly in one key scores High. When the top two keys are close, typically a relative major and minor, confidence drops and the alternatives list becomes the real answer.
The Camelot wheel for harmonic mixing
The Camelot wheel renames the 24 keys as numbers 1 to 12 with a letter: A for minor, B for major. Neighboring numbers are a fifth apart, which is musically close, and the same number with the other letter is the relative key. DJs use it because "8A to 9A" is easier to remember in a booth than "A minor to E minor".
| Camelot | Minor key (A) | Major key (B) |
|---|---|---|
| 1 | G# minor (Ab minor) | B major |
| 2 | D# minor (Eb minor) | F# major (Gb major) |
| 3 | A# minor (Bb minor) | C# major (Db major) |
| 4 | F minor | G# major (Ab major) |
| 5 | C minor | D# major (Eb major) |
| 6 | G minor | A# major (Bb 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 |
- Same code (8A to 8A): the safest mix; the keys are identical.
- Same number, other letter (8A to 8B): relative major and minor, same notes, a change of mood.
- One number up or down (8A to 9A or 7A): a fifth apart, shares six of seven notes. This is what the Mixes well with list shows, together with the relative key.
- Two numbers up (8A to 10A): two semitones higher, a common "energy boost" move that works best over a short blend.
Key is only half of a smooth mix. Two tracks also need tempos within a few percent, which is what the BPM Detector is for; our guide to finding the BPM of a song covers half and double tempo traps. And remember that changing a track's speed without keeping pitch also changes its key: about 6 percent faster is one semitone higher, which moves it seven steps around the wheel.
How to find the key of a song by ear
Software is quick, but finding the key by ear is a skill worth having, and it is the way to settle a low-confidence result. You need an instrument, a keyboard app or a tuner.
- Find the home note. Pause the song at the very end or at the end of a chorus and hum the note that feels most resolved. That is usually the tonic.
- Name that note. Find it on a piano or guitar, or hum it into the Online Tuner in Chromatic mode, which shows the note name and octave of whatever you sing.
- Decide major or minor. Play the major and minor chord on that note (or use the key finder's chord buttons). One will sound like it fits the song; the other will sound off.
- Check the chords. Work out two or three chords from the song. In a major key the chords on the first, fourth and fifth notes are major; in a minor key the chord on the first note is minor.
- Look at the melody. If the melody keeps landing on a note that is not in your scale, try the relative key or the key a fifth away.
If you play guitar, tune first: a guitar a quarter tone flat will make every chord sound slightly wrong against the record. Our guide on how to tune a guitar online walks through it. For a visual check, the Spectrum Analyzer shows the dominant frequency of a held note with its nearest note name and cents offset.
When key detection gets it wrong
| Situation | What you see | What to do |
|---|---|---|
| Relative major or minor | C major reported for an A minor song | Play both tonic chords; check Other possible keys |
| Modal music (Dorian, Mixolydian) | A neighboring major or minor key | Name the home note by ear; the scale is the mode |
| Key change | One key, Medium or Low confidence | Cut each section and analyze it separately |
| Detuned recording | A key one semitone off, low confidence | Measure the tuning, then correct it with fine cents |
| Heavy drums or distortion | Low confidence, scattered notes chart | Analyze a quieter verse or intro |
| Atonal, noise or speech | Low confidence, any key | The song may not have a key; trust your ears |
Modal songs
Many rock, folk and jazz songs use modes rather than plain major or minor. A song in D Dorian uses the notes of C major but treats D as home, and a song in G Mixolydian uses the same notes again with G as home. A 24-key detector can only answer with major or minor, so it will usually report one of the neighboring keys. The notes chart still helps: if the darkest bar is not the reported tonic, the song is probably modal.
Detuned recordings
The analysis assumes standard tuning with A at 440 Hz. A recording tuned to 432 Hz is about 32 cents flat and usually still lands on the right notes. Older recordings transferred from tape at the wrong speed, or bands that tune a quarter tone (50 cents) down, sit between two notes, so the chart smears across neighbors and the result can come out a semitone off. If you suspect this, check a sustained note with the Online Tuner or the Spectrum Analyzer, then correct the recording with the Pitch Shifter's Fine tune control: +32 cents brings 432 Hz material to 440 Hz.
Transposing a song to suit your voice
Once you know the key, you can move the whole song up or down to fit your range. The Pitch Shifter moves audio by Semitones from -12 to +12, plus a Fine tune of -100 to +100 cents, without changing the tempo. Each semitone moves the key by one note: a song in E major shifted down two semitones is in D major.
| Shift | E major becomes | Camelot change | Sound |
|---|---|---|---|
| -1 semitone | Eb major | 12B to 5B | Barely noticeable on most songs |
| -2 semitones | D major | 12B to 10B | Comfortable for many singers |
| -3 semitones | C# major (Db) | 12B to 3B | Voices start to sound darker |
| +2 semitones | F# major | 12B to 2B | Brighter, more energy |
| -5 semitones | B major | 12B to 1B | Clearly processed on vocals |
Small shifts of one to three semitones sound natural on most material. Larger ones change the character of voices (deeper or chipmunk-like) because the vocal formants move with the pitch, so for karaoke practice it is usually better to pick a lower or higher version of the song if one exists. To slow a song down for practice without changing its key, use the Speed Changer with the original pitch kept, as explained in how to change audio speed and pitch.
Open the Pitch ShifterMove a song up or down in semitones and cents to fit your voice, with the tempo unchanged.Try it free