Video & Audio
Song Key Detector (Key & Camelot Finder)
Find the musical key of any song or audio file — major or minor, relative key and Camelot code for harmonic DJ mixing — analyzed privately in your browser.
How to use
- 1Drop an MP3, WAV, M4A or other audio file.
- 2Wait a few seconds while the harmony is analyzed.
- 3Read the key, Camelot code and runner-up candidates.
Frequently asked questions
How does it work?
It measures how much of each of the 12 notes the song uses and compares that profile with the typical profiles of all 24 major and minor keys (the Krumhansl–Schmuckler method).
Why is the relative key close behind?
Relative major and minor keys (like C major and A minor) share the same notes — listen for which chord feels like home.
Is my audio uploaded?
No — analysis runs entirely in your browser.
What the pitch-class profile bar chart is actually showing
Before any key is guessed, the tool builds a 'chroma' vector — twelve numbers, one per pitch class (C, C♯, D...B), measuring how much total energy that note contributed across the entire song, regardless of which octave it appeared in. This profile is then compared against the Krumhansl-Schmuckler reference profiles — empirically measured templates of how strongly each scale degree is typically emphasized in a genuine major or minor key — and whichever of the 24 possible keys correlates best with your song's actual note distribution wins. The bar chart you see is that raw measured profile, which is worth glancing at directly: a flat, evenly-distributed chart (no note clearly dominant) is a visual tell that the song may not have a strong, single tonal center.
Why the relative key is almost always the runner-up, by music theory, not by algorithm error
A major key and its relative minor (C major and A minor, for example) are built from the exact same seven notes — the only difference is which note the music treats as 'home.' Since the chroma analysis only measures which notes are present and how strongly, not which one feels like the tonal center, a major key and its relative minor will almost always produce nearly identical correlation scores against the reference profiles. That's precisely why the tool explicitly surfaces the relative key as a distinct, labeled result rather than hiding it — it's not a weaker guess the algorithm is unsure about, it's a structurally ambiguous pair that genuinely requires a human ear (listening for which chord feels like resolution) to break the tie.
Why downsampling to 11,025 Hz speeds things up without hurting accuracy
The audio is explicitly resampled down to 11,025 Hz (a quarter of standard 44.1kHz) before analysis, through a properly anti-aliased offline rendering pass rather than naive decimation. Musical pitch information for key detection lives almost entirely in low-to-mid frequencies — the fundamental and early harmonics of notes and chords — well within what an 11kHz sample rate can represent (its Nyquist limit is about 5.5kHz), so the downsampling discards high-frequency detail the chroma analysis was never going to use anyway, cutting the computation to roughly a quarter of the original work with no meaningful loss in detection accuracy.
Sharp keys are printed with the flat name beside them
A file that cannot be decoded says so. Stereo is mixed down to one channel before the guess, and the analysis uses about eleven thousand samples a second so a long track stays practical. A sharp key is shown two ways, such as F sharp and G flat, with the mode after both names. The relative key sits in its own card and is described as sharing the same notes, often the runner-up. Three further candidates are listed with their Camelot codes. Length is minutes and whole seconds. The pitch chart highlights the tonic and leaves the other eleven notes dimmer. The note under the chart says songs that change key, or that are mostly drums, can be ambiguous.
Related tools
- Music Scale Finder & Key Chords
Find the notes of any scale — major, minor, pentatonic, blues and all modes — plus the chords in the key with Roman numerals.
- Vocal Remover (Karaoke Maker)
Make a karaoke / instrumental track by removing center-panned vocals from stereo songs — with the bass kept — right in your browser.
- Add Music to Video
Put a soundtrack on your video — replace the original sound or mix music underneath it, with volume controls and an automatic fade-out.
- Audio Equalizer & Bass Booster
Boost bass, cut harshness or make voices clearer with a 10-band graphic equalizer and a bass booster. Hear the changes live, then download as MP3 or WAV. Nothing is uploaded.
- Color Name Finder
Find the name of any color — enter a HEX code to get the closest CSS / HTML color name, with its RGB values and how close the match is.
- Cliché Finder
Find overused clichés and business jargon — 'think outside the box', 'low-hanging fruit', 'at the end of the day' — in your writing.