What this key finder does
Drop in a song and the page tells you its key and scale, for example A minor, along with the Camelot code DJs use, the relative key, the seven notes of the scale and the chords that belong to it. It checks each section too, so you can see when a song changes key, and it reads the BPM in the same pass.
You can listen to the song shifted up or down by up to six semitones to find the version that suits your voice. Everything runs in your browser; the song is never uploaded.
How the key is found
- Pitch contentThe song is resampled to 22,050 Hz mono and turned into a spectrum every 23 ms. Energy at each frequency is folded into the 12 pitch classes (C, C♯, D … B), after measuring how far the whole recording is tuned away from A = 440 Hz.
- A profile of the songThe 12 values are averaged across the song, with the bass weighted a little higher because the root of a chord usually sits there. The result is a fingerprint of which notes the song leans on.
- Matching against 24 keysThat fingerprint is correlated with published key profiles for all 12 major and 12 minor keys, profiles measured from how listeners rate each note in a key. The best match is the key; the gap to the runner-up is the confidence.
- Section by sectionThe same test runs on each section the beat tracker found, so a final chorus lifted by a semitone shows up as its own key.
How accurate it is
On 48 generated tracks with a known key, the finder names the exact key in 100% of them. On 29 original songs made on PopNow, shifted up or down by one to five semitones, its answer moves with the song 93% of the time, and on 7 songs we worked out by ear it agrees on 6.
- Major and relative minor keys share all seven notes, so songs that sit between them are the most common close call. When it is close the page says so and shows the runner-up.
- Modal songs (Dorian, Mixolydian), atonal music and songs that change key often have no single right answer.
- Drums and speech carry no key, so a short intro of drums alone is not enough. Use the full song when you can.
Example results
- Level Up · EDM pop130 BPM · E♭ minor · 2A
- Coastline · Folk pop98 BPM · B♭ major · 6B
- Paper Planets · Lo-fi82 BPM · C major · 8B
What people use it for
- Singing and covers. Find the key, then try it a few semitones lower or higher before you rehearse, or export a transposed backing track from Vocal Remover.
- Harmonic mixing. The Camelot code and the list of mixable keys show which tracks blend without a clash.
- Playing along. The scale notes and chords in the key are what you need to improvise or work out the chords by ear.
- Writing a new song. Start a new song in the same key and tempo in the music generator, or turn a melody into MIDI with Audio to MIDI.
Limits
- Songs up to 15 minutes.
- Keys are reported as major or minor; modes and exotic scales are mapped to the nearest of the 24 keys.
- Pitch shifting needs a browser with AudioWorklet support (Chrome, Edge, Firefox and Safari 14.1 or later).
FAQ
Is the key finder free?+
Yes. It runs in your browser, costs us nothing and needs no account. Only the AI tools it links to use credits.
Is my song uploaded?+
No. The file is decoded and analyzed on your device and nothing is sent to PopNow.
What is the Camelot code?+
A wheel that numbers the 24 keys from 1 to 12, with A for minor and B for major. Keys with the same number, or one number apart, share most of their notes and mix smoothly, which is why DJs use it.
Why does it say C major when I think it's A minor?+
Relative keys share the same notes, so the difference is which note feels like home. The page shows the runner-up when the two are close; trust your ear on which chord the song resolves to.
Does pitch shifting change the speed?+
No. The shifter changes pitch and keeps the tempo, using the Signalsmith Stretch library in your browser. You can shift up to six semitones either way.
Can it find the key of a song that changes key?+
It checks every section on its own, so a key change shows up as a different key on that part of the timeline.