Song Key Finder
Find a song's key from a chromagram, with Camelot code, confidence, close alternatives, a notes chart and a playable tonic chord for harmonic mixing.
About the Song Key Finder
The Song Key Finder answers what key a recording is in. Drop a track and the page reports Key, its Camelot code, a Confidence rating and a chart called Notes in the track that shows how strongly each of the twelve pitch classes appears. The highlighted bars belong to the detected scale and the darkest bar marks the root.
Because relative major and minor keys share the same notes, the result can be ambiguous. The page lists Other possible keys and lets you hear the tonic chord with Hear the major chord or Hear the minor chord. The Mixes well with list translates the result into Camelot neighbours for DJs: the relative key and the keys one step around the wheel in either direction.
This is an analysis of the whole file, not a music theory judgement. A song that changes key returns the dominant overall key, which is why cutting a section first can be useful. Pair it with the BPM Detector for a full DJ read, use the Online Tuner to check a physical instrument, or shift a track with the Pitch Shifter once you know the target key.
Why Use the Song Key Finder?
Chromagram-based detection
The audio is analysed at 22,050 Hz with an 8192-point Hann-windowed FFT. Tonal peaks between 55 Hz and 4.2 kHz are folded into twelve pitch classes and compared with 24 rotated key profiles.
Camelot for DJs
Every result gets a Camelot code such as 8A or 8B. Mixes well with lists the relative key and the neighbouring numbers, which are common harmonic mixing choices.
Alternatives instead of false certainty
Other possible keys shows up to four runners-up with their Camelot codes. Confidence shows how clearly the notes fit the winner; low confidence is labelled honestly.
Hear the answer
Hear the major chord or Hear the minor chord plays a triangle-wave tonic triad synthesized in the browser. Comparing that chord with the track is a quick human check on the algorithm.
Processed locally in your browser
Your audio is decoded, processed and encoded on your own device in a background Web Worker. Aback Audio does not upload the audio for this operation.
Free, no sign-up, no watermark
Every tool is free with no account, no watermark and no daily limit. The only limit is your device's memory, and the tool warns you before anything risky.
Common Uses for the Song Key Finder
Harmonic mixing
Find the Camelot code of two tracks before a DJ set. Same-number keys and neighbours one step around the wheel usually blend without clashing, but your ears still have the final say.
Singing and voice selection
Know the key before you choose a song to sing. If it sits too high or low, the Pitch Shifter can move the whole track by semitones.
Learning a cover
Work out the key before you learn a song by ear. The tonic chord button gives you a reference root to compare with your instrument.
Remixes and samples
Match a sample's key to your project. A result one semitone away may explain why a loop sounds wrong even when the tempo matches.
Playlist continuity
Group tracks by compatible keys so a playlist flows. Combine this with the tempo from the BPM Detector for a smoother sequence.
Music theory teaching
Show students the relative strength of the twelve notes in a real recording. The chart makes it concrete why a major key and its relative minor can sound similar.
Checking a live take
Analyse a rehearsal to see which key the band settled into. A low confidence score usually means the performance wandered or the drums dominate the spectrum.
How the Song Key Finder Works
How to use it
- 1Drop a song on the drop zone, or click to choose one from your device.
- 2Read Key, Camelot and Confidence in the metric grid.
- 3Press Hear the major chord or Hear the minor chord and compare the root with the track.
- 4Check Notes in the track: highlighted bars are scale notes and the darkest bar is the root.
- 5Use Mixes well with and Other possible keys, then press Copy key to keep the result.
Building the chromagram
The signal is mixed to mono and resampled to 22,050 Hz. An 8192-point Hann window with a hop of 4096 produces spectra in which only local peaks count: a peak must exceed the local mean by about 12 dB over a window of roughly plus or minus 65 Hz. Each peak is interpolated on log magnitude, folded into a pitch class with a cosine-squared cents weight and added with a log-magnitude weight over a 60 dB range.
Matching a key profile
The resulting twelve-value chromagram is normalised and compared by Pearson correlation with 24 rotated Temperley key profiles, one major and one minor profile for each tonic. The best correlation wins; the gap to the runner-up, scaled by the strength of the winner, becomes the confidence value shown in the page.
Camelot mapping
Camelot codes run from 1 to 12 with an A or B suffix. The code is derived from the tonic and mode, so 8B corresponds to C major and 8A to A minor. Mixes well with lists the same number with the opposite letter plus the keys one step either way, a conventional harmonic mixing shortcut rather than a physical rule.
Why ambiguity is normal
Relative major and minor keys contain the same seven notes, so no chromagram can separate them with certainty. Percussion, auto-tune and key changes further reduce confidence. The alternatives list is part of the result, not an error message.
Privacy, security and availability
Files are opened with the browser's file APIs and processed in a background Web Worker on your device; the page has no upload endpoint and makes no network requests with your audio. Results are created as local files you download. Temporary data is released when you press Start over or close the tab.
Tips for Better Results
Listen to the tonic
Play the tonic chord button before trusting a low-confidence result. If the chord sounds foreign to the track, check the runners-up in Other possible keys.
Analyse the section you care about
For a song with a modulated chorus, cut that section with the Audio Cutter and analyse it separately.
Combine tempo and key
A DJ read needs both dimensions. Take the BPM from the BPM Detector and the Camelot code from this page before you plan a transition.
Transpose with intent
When you need a different key, use the Pitch Shifter in semitone steps and listen for changes in the character of the track.
Limitations
- Key detection is an estimate. Relative major and minor share the same notes, and the reported winner may be the alternative you would have chosen by ear.
- Atonal music, heavy percussion, dense distortion and frequent key changes can produce low confidence or a misleading winner. The page shows alternatives rather than claiming certainty.
- The result describes the dominant key across the analysed file. Short sections with a different key need to be cut out and analysed separately.
Guides for This Tool
- How to find the key of a song with a key finder (and confirm it by ear)Use a key finder to find the key of a song from an MP3 or WAV, read its Camelot code for harmonic mixing, check it by ear and transpose it for your voice.Read the guide
- How to find the BPM of a song with a BPM detector (and check it by ear)Use a BPM detector or tap tempo to find the BPM of a song, fix half or double tempo errors, see typical BPM by genre and change a track's tempo in your browser.Read the guide
- How to tune a guitar with an online tuner and your microphoneTune a guitar with an online tuner and your microphone: standard EADGBE frequencies, step by step tuning, Drop D and open tunings, bass, ukulele and violin.Read the guide
Related Tools
BPM Detector
Find a song's tempo, with tap-tempo to confirm.
Pitch Shifter
Transpose by semitones without changing speed.
Online Tuner
Chromatic tuner using your microphone.
Audio File Inspector
Codec, bitrate, sample rate, bit depth, levels and tags.
Spectrogram Viewer
See frequencies over time and export a PNG.
Audio Cutter
Select on the waveform and keep or remove that part.
Online Metronome
Precise metronome with accents and click-track export.
LUFS Loudness Meter
Integrated LUFS, true peak, LRA and platform checks.
Frequently Asked Questions
Why does it show the relative minor?
C major and A minor use the same seven notes, so they are the most common confusion for any chromagram method. Check Other possible keys and play the tonic chord to decide.
What is the Camelot code for?
It is a DJ notation for harmonic mixing. Neighbouring numbers and the same number with the opposite letter are commonly compatible, which the Mixes well with list shows.
Does it work on songs that change key?
It reports the dominant key over the whole file. If you need one section, cut it with the Audio Cutter first.
Is the key detection accurate?
For tonal pop, rock and electronic music it is usually right or a close relative. Confidence tells you how clean the fit is; low values deserve an ear check.
What does Notes in the track show?
It is a chromagram: the relative amount of each pitch class found in the audio. Highlighted bars belong to the detected scale and the darkest bar marks the tonic.
Can I hear the detected key?
Yes. Hear the major chord or Hear the minor chord plays a synthesized tonic triad. It is a reference generated on your device, not a sample from the track.
Why is confidence low for my track?
Loud drums, auto-tune, atonal passages and key changes all weaken the correlation. Low confidence means the fit is ambiguous, not that the file is broken.
Can it analyse an acoustic guitar recording?
Yes, as long as the pitch is audible. Strong string overtones are handled by the peak-selection stage, but a very noisy room can reduce confidence.
How do I change the key of a song?
Use the Pitch Shifter after you know the starting key. It moves audio in semitones and fine cents without changing tempo.
Does it read key tags in the file?
No. The key is estimated from the audio itself. A metadata tag may be wrong or absent, so measuring the recording is more reliable.
Is the Song Key Finder free?
Yes. It is free to use with no sign-up, no watermark and no usage limits.
Is my audio uploaded to a server?
No. Aback Audio is a static website: files are read and processed by your browser, on your device, using Web Audio, Web Workers and WebAssembly codecs. There is no upload endpoint.
Which browsers are supported?
Current versions of Chrome, Edge, Firefox and Safari on desktop and mobile. Opus encoding needs a browser with WebCodecs audio encoding; every other format works everywhere.