What Key Is This Song In?
By Stem Splitter AI ·
To find out what key a song is in, find the note the song keeps coming back to and resting on, then decide whether the song sounds major (bright) or minor (darker) around that note. That note plus that quality is the key: for example, A minor or E major. You can do this by ear with a piano or a keyboard app, or you can let a key finder analyze the file and then confirm the result by ear.
What "Key" Means in One Paragraph
A song's key is its home base. It names the note that feels like the center of the song, called the tonic, and whether the song is built on a major or a minor scale starting from that note. A song in C major uses mostly the notes of the C major scale, and its melody and chords tend to resolve back to C. There are 12 possible tonic notes and two qualities, major and minor, which gives 24 common keys. Some songs change key partway through, but most stay in one.
How to Find the Key of a Song by Ear
You do not need perfect pitch for this. You need a song, a piano or a free keyboard app, and a few minutes. Here is how to find the key of a song by ear.
1. Hum the home note
Play the song and stop it at the end of a chorus or at the very end of the track. Hum the note that feels "finished," the one where the melody could stop and sound resolved. That note is very often the tonic. If you are unsure, hum it over different parts of the song. The tonic will sound settled almost everywhere.
2. Find that note on the keyboard
Hold your hummed note and press keys until one matches. Move up or down one key at a time. When the key you press blends with your voice instead of rubbing against it, you have found the note. That is your likely tonic.
3. Decide major or minor
Play the major chord on that note, then the minor chord, while the song plays. For a tonic of A, that means A major (A, C sharp, E) and then A minor (A, C, E). One of them will fit the song. The other will sound clearly wrong over the music.
4. Check against the relative key
Every major key has a relative minor that uses the same notes. C major and A minor share all seven notes, with no sharps or flats. G major and E minor share theirs too. This is the most common place to go wrong by ear: you might find the right set of notes but pick the wrong home note. Ask which chord feels like the resting point. If the song keeps landing on A minor, it is in A minor, even though every note also belongs to C major.
Why Automatic Key Detection Sometimes Disagrees
Key finders do not hear a song the way you do. Ours works by scanning how much of each of the 12 notes appears across the song, then comparing that profile with the Krumhansl–Kessler profiles, a standard model from music-perception research of how strongly each note belongs to each major and minor key. The key with the closest match wins.
That method is reliable for most songs, but a few situations make it disagree with your ear or with another tool.
- Relative major and minor. C major and A minor contain the same notes, so their note profiles look alike. This is the single most common reason two key finders report different results. When two keys fit a song almost equally, our finder shows the close second key as well, so you know to check that track by ear.
- Modal songs. Many rock, folk, and funk songs use modes, such as Dorian or Mixolydian, that sit between major and minor. A detector must still choose a major or minor label, and either choice can be defensible.
- Key changes. A song that moves up a step for the last chorus gets one overall reading, weighted toward whichever key lasts longest.
- Heavy distortion, drums, or noise. Strong percussion and distorted guitars add energy across many notes, which blurs the note profile.
- Off-standard tuning. A record tuned slightly sharp or flat can sit between two keys, and the detector picks the closer one.
The takeaway: an automatic key reading is an estimate. It is a fast, useful starting point, especially across many songs, and your ear is the final check on the tracks where it shows a close second.
What Is a Camelot Code
A Camelot code is a short label for a key that DJs use for harmonic mixing, meaning mixing songs whose keys blend instead of clash. The Camelot wheel arranges all 24 keys in a circle numbered 1 to 12. Each number has an inner "A" key (minor) and an outer "B" key (major).
For example, 8A is A minor, and 8B is C major, its relative major. The rules for picking a compatible next track are easy to remember:
- Same number, other letter: 8A to 8B. You move between a key and its relative, which share the same notes.
- Next number, same letter: 8A to 7A or 9A. You move one step around the wheel to a closely related key.
- Same code: 8A to 8A always blends.
The benefit is that you do not need to know music theory to mix in key. You only need to match numbers and letters. That is why a key finder built for DJs shows the Camelot code next to the key name.
How to Find Key and BPM at the Same Time
If you are preparing songs for a DJ set, a remix, or a practice session, you usually need the tempo as well as the key. Our key and BPM finder that reads songs in your browser and shows the Camelot code gives you both in one pass.
- It stays on your device. The file is decoded and analyzed in your browser and is not uploaded, so unreleased tracks stay private.
- It handles batches. It checks up to 20 songs at once and exports the results as a CSV, so you can sort a crate by key and tempo in a spreadsheet or keep a record with your library.
- It reports the tempo between 60 and 200 BPM, with half-time and double-time values, plus tap tempo to confirm by ear.
- It shows the key, its Camelot code, and a close second key when the song fits two keys almost equally.
As with any detector, treat a result with a close second key as a prompt to listen, not as a final answer.
Found the Key, Now What?
Knowing the key opens up a few practical next steps.
Move the song to a key you can sing
If a song sits too high or low for your voice, or you want to play it in an easier key on guitar, transpose it. A pitch changer that moves a song to a new key without changing its tempo shifts the whole track up or down in semitones, so the groove stays the same and only the pitch moves. Moving down one or two semitones is often enough to make a vocal comfortable.
Pull out the vocal for a mashup
Mashups work best when the two songs share a key or sit next to each other on the Camelot wheel. Once you know both keys, use a vocal isolator that saves the acapella and the instrumental as two files to take the vocal from one song and lay it over the instrumental of the other. If the keys do not match, shift one of them with the pitch changer first.
Plan a harmonic DJ set
Sort your tracks by Camelot code, then build transitions that move one step at a time around the wheel. Combine that with tempo order and your mixes will sound smoother, with fewer moments where two basslines fight each other.
Learn the song faster
If you play an instrument, the key tells you which scale to start from. Most of the melody and chords will come from that scale, so you can find parts by ear much faster.
Frequently Asked Questions
How do I find the key of a song quickly?
Hum the note the song resolves to at the end of a chorus, find that note on a keyboard app, then check whether the major or minor chord on that note fits the music. That gives you the key in a few minutes. For many songs at once, a key finder is faster, and you can confirm any uncertain results by ear afterward.
Why does my key finder say C major when the song sounds minor?
C major and A minor share exactly the same notes, so a detector that compares note profiles can mix up relative major and minor keys. Listen for the chord the song rests on. If it feels at home on A minor, the song is in A minor. A good finder shows a close second key when it is unsure, which flags these tracks.
What does 8A mean in a Camelot code?
8A is the Camelot code for A minor. The number is the position on the Camelot wheel and the letter says major or minor: "A" codes are minor keys and "B" codes are major keys. A track in 8A mixes smoothly with tracks in 8A, 8B (C major), 7A (D minor), or 9A (E minor).
Can a song be in two keys?
Yes. Many songs change key, often moving up for a final chorus, and some sit ambiguously between a major key and its relative minor. A detector gives one overall reading for the whole song, so on these tracks it may show a close second key. Check each section by ear if you need the key of a specific part.