Last updated: October 31, 2026 · Written by the Pitch Detectors
Editorial Team
A song key finder detects the musical key of any
audio file — its tonal center and major/minor mode — plus tempo and DJ-friendly Camelot
notation. Upload a track above: this free tool analyzes it entirely in your browser and
reports the detected key, relative key, BPM, and energy in seconds.
Files are processed locally inside
your web browser
via the Web Audio API. Your audio is never uploaded to an external server.
File Name
Detected Key
Camelot
Relative Key
BPM
RMS Energy
Danceability
Upload an audio track
above to view detected
musical key, tempo, and harmonic metadata.
Key Takeaways
A song key finder estimates a track's tonal center (e.g. A minor)
from its audio — no music theory or sheet music needed.
This tool also reports BPM, Camelot code, relative key, and energy,
and analyzes files 100% inside your browser — nothing is uploaded.
The #1 cause of "wrong" results is relative-key ambiguity: A minor
and C major share all seven notes, so tools legitimately disagree between them.
Analyze the drop or chorus, not the intro — intros are often
tonally vague, and the mixable key lives in the main section.
A song key finder is a tool that analyzes an audio file and identifies its
musical key — the tonic pitch and mode (major or minor) around which the track's
harmony is built. It converts the waveform into a 12-note pitch profile,
matches that profile against known key patterns, and returns results like "A minor (8A)"
in seconds.
DJs use the detected key for harmonic mixing — choosing transitions
whose keys blend instead of clash. Producers use it to set pitch-correction plugins and
pick compatible samples. Vocalists use it to find a comfortable singing key. One upload
replaces years of ear training for the basic question: what key is this in?
How This Calculator Works
This tool finds a song's key in four steps — decode, spectrum, chromagram, match — all
running locally in your browser via the Web Audio API.
Decode: your file (MP3, WAV, FLAC, AAC, OGG) is decoded in memory
with decodeAudioData. The audio never leaves your device.
Spectrum: a Fast Fourier Transform (FFT) converts short slices of
the waveform into frequency data, revealing which pitches are sounding at each
moment.
Chromagram: frequencies are folded into a 12-bin pitch
class profile — total energy on C, C♯, D … B, regardless of octave.
Match: the profile is Pearson-correlated against 24
Krumhansl-Schmuckler key profiles (ideal pitch distributions
derived from Krumhansl & Kessler's 1982 probe-tone experiments). The key with
the highest correlation wins. BPM is estimated in parallel from rhythmic onsets.
This correlation method is the same family of algorithm behind most professional
key-detection software — the widget above simply runs it in your browser instead of on a
server.
Key Detection Formula and Worked Example
The core formula picks the key whose ideal pitch pattern best matches the song:
detected key = argmax over 24 keys of correlation(song chromagram, key profile)
Worked example: a deep-house track's chromagram shows its strongest
energy on pitch classes A, C, and E, with moderate energy on G and D.
Correlate this 12-bin vector against all 24 Krumhansl-Schmuckler profiles.
The A-minor profile expects exactly those peaks (A–C–E is the
A-minor triad) → highest correlation, say r = 0.91.
The runner-up is C major (r = 0.88) — unsurprising, since it
contains the same seven notes.
Result: A minor, Camelot code 8A, relative major
C major.
The close runner-up is not an error — it is the relative-key ambiguity explained below,
and it is why the tool shows you both.
How to Use This Calculator
Select audio files: click the upload box or drag in MP3, WAV, FLAC,
AAC, or OGG files (multiple files work — each gets its own row).
Press Analyze Files: the browser decodes and analyzes each track
locally; larger files take a few seconds.
Read the results table: each row shows Detected Key, Camelot code,
Relative Key, BPM, RMS Energy, and Danceability.
Copy the Camelot code into your DJ software's key field or into our
mix compatibility checker to test
blends.
Reading Your Result
Each column in the results table answers a different question about the track:
Column
What it means
Next step
Detected Key
The estimated tonic + mode, e.g. F♯ minor.
Use it to set Auto-Tune's key/scale or to pick harmonically compatible
tracks.
Camelot
DJ-friendly code, e.g. 11A. A = minor, B = major.
Mix with the same code, ±1 step, or the same number on the other ring.
Relative Key
The major/minor partner sharing all 7 notes.
If a blend sounds off in the detected key, try mixing from the relative
key instead.
BPM
Estimated tempo in beats per minute.
Confirm with a BPM calculator tap-tempo
if the mix feels unstable.
RMS Energy
Average loudness of the analyzed audio.
Balance gains between tracks before blending — match energy, not just
keys.
High scores suit long blends; low scores suit quick cuts.
Why Two Key Finders Disagree: The Relative-Key Trap
Most "disagreements" between key finders are not errors — they are relative
keys. A minor and C major contain the exact same seven notes
(A–B–C–D–E–F–G). If a track leans on Am and C chords equally, one algorithm's
correlation peaks at A minor while another peaks at C major. Both are defensible
readings of the same audio.
The 30-second tiebreak: listen to where the track resolves —
the chord it keeps landing on, especially the bass note under the chorus. If phrases
resolve to A, call it A minor; if they resolve to C, call it C major. For DJ purposes
the distinction barely matters: relative keys share a Camelot number (8A/8B) and mix
identically.
Alt text: Bar chart of a 12-bin chromagram showing
peaks on A, C, and E, identifying the track as A minor.
Analyze the Drop, Not the Intro
The key that matters for mixing is the key of the section you will actually blend
— usually the drop or chorus, not the intro. Intros are often ambient,
filtered, or deliberately tonally vague; analyzing them can return a weak or misleading
key estimate.
Workflow: if the full-track result looks uncertain, trim the file to a 30–60 second slice
of the main section (our audio
trimmer does this in the browser) and analyze that slice. The chromagram of a
harmonically dense chorus correlates far more decisively than a sparse intro.
Your Files Never Leave the Browser
Unlike upload-based key finders, this tool decodes and analyzes your audio
entirely on your device. The Web Audio API's decodeAudioData
turns your file into raw samples in page memory; the FFT, chromagram, and correlation
all run in JavaScript locally. No audio is transmitted, stored, or logged anywhere.
That matters for unreleased music: demos, client stems, and works-in-progress never touch
a server, so there is no leak risk and no waiting on uploads. It also means the tool
works offline once loaded.
From Detected Key to Finished Mix
A detected key becomes useful the moment it enters a mixing workflow.
Here is the three-tool chain DJs use on this site:
Find: run both tracks through this song key finder and note the
Camelot codes.
Check: enter both keys and BPMs in the mix compatibility checker — it scores
the pair and tells you whether to blend, cut, or pick another track.
Producers follow a shorter chain: detected key → set the key/scale in Auto-Tune,
Melodyne, or your sampler → audition only samples tagged with compatible Camelot codes.
[Infographic: three-step workflow — Find
key → Check compatibility → Plan transition — with the site's tool icons]
Alt text: Infographic of the three-step DJ
workflow from key detection to a planned harmonic transition.
When the Tool Gets It Wrong
Key detection is estimation, and three musical situations defeat it
honestly. Knowing them saves you from trusting a confident-looking wrong
answer:
Key changes mid-song: pop songs often lift the final chorus a
semitone ("truck-driver modulation"). One label cannot cover two keys — analyze the
sections separately.
Modal music: Dorian and Mixolydian tracks (common in jazz, funk,
EDM) sit between the 24 major/minor profiles and correlate weakly with all of them.
Treat low-confidence results as "check by ear."
Detuned audio: tracks tuned to A=432 Hz, tape-warped vinyl rips, or
varispeed recordings shift every pitch class slightly flat. The chromagram still
works, but borderline correlations get noisier.
Camelot to Open Key Conversion Chart
Camelot (1A–12B, Mixed In Key) and Open Key (Traktor) label the same 24 keys
differently. The mixing rules are identical — only the labels change. "m"
means minor (Camelot A-side), "d" means major (B-side).
Camelot
Open Key
Key
Camelot
Open Key
Key
1A
11m
A♭ minor
1B
11d
B major
2A
12m
E♭ minor
2B
12d
G♭ major
3A
1m
B♭ minor
3B
1d
D♭ major
4A
2m
F minor
4B
2d
A♭ major
5A
3m
C minor
5B
3d
E♭ major
6A
4m
G minor
6B
4d
B♭ major
7A
5m
D minor
7B
5d
F major
8A
6m
A minor
8B
6d
C major
9A
7m
E minor
9B
7d
G major
10A
8m
B minor
10B
8d
D major
11A
9m
F♯ minor
11B
9d
A major
12A
10m
D♭ minor
12B
10d
E major
Limitations
Single-key assumption: the tool returns one key per file. Tracks
with modulations or key changes need section-by-section analysis.
Weak tonal material: atonal intros, drum-only breaks, and heavy
noise sections produce low-confidence estimates — the tool reports its best guess,
not its certainty.
Enharmonic spelling: F♯ minor and G♭ minor are the same pitches;
the tool picks one spelling and your DJ software may show the other. They are
interchangeable.
BPM is estimated too: halftime-feel tracks (e.g. trap at 70 vs 140
BPM) can report double or half the expected tempo — verify by ear before
beatmatching.
Song Key Finder vs Alternatives
Method
How it works
Best for
Watch out for
This tool (browser)
FFT + chromagram + key-profile correlation, local
Quick checks, unreleased music, privacy
Single-key output; estimate, not gospel
Mixed In Key (paid software)
Proprietary analysis + Camelot tagging of libraries
Tagging thousand-track DJ libraries
Paid; desktop install required
Database lookup (Tunebat-style)
Looks up released songs in a key/BPM database
Released commercial tracks
No unreleased music; database may be stale
By ear (piano/guitar)
Find the tonic by trial and chord matching
Learning musicianship; ambiguous tracks
Slow; needs trained ears
Key and tempo detection are estimates produced by audio
analysis. Results are provided for informational and creative purposes — always
confirm critical decisions by ear.
Frequently Asked Questions
It converts the audio into a 12-bin chromagram — the total energy on each
semitone from C to B — using a Fast Fourier Transform. That pitch profile is
then correlated against 24 ideal key profiles (Krumhansl-Schmuckler), and
the key with the highest correlation wins. No sheet music or manual input is
needed.
They are reliable on clear, diatonic tracks — most professional tools agree
on straightforward pop, house, and rock songs. Accuracy drops on modal
music, tracks with key changes, detuned audio, or sparse arrangements. Treat
every result as a strong estimate and confirm by ear before a gig or
release.
Usually it is relative-key ambiguity, not an error: A minor and C major
share all seven notes, so one tool's correlation peaks at A minor while
another peaks at C major. Both readings are defensible. Listen for where the
harmony resolves — the chord the track keeps landing on — to break the tie.
The Camelot Wheel (Mark Davis, Mixed In Key) maps all 24 keys onto a clock
face: numbers 1–12, letter A for minor and B for major. Compatible mixes are
adjacent — same number, ±1 step, or same number on the other ring. So 8A (A
minor) blends with 8A, 7A, 9A, and 8B.
Use the conversion chart above: Open Key numbers run opposite to Camelot's,
with "m" for minor and "d" for major (8A = 6m, 8B = 6d). The mixing rules
are identical in both systems — only the labels differ — so convert once and
mix normally.
Yes — modulations are common, like the final-chorus lift up a semitone in
many pop songs. A key finder returns one key per analysis, so it reports the
dominant key and misses the change. For such tracks, analyze the intro and
chorus as separate clips to catch both keys.
The relative minor shares its key signature — all seven notes — with a major
key a minor third below it. A minor is the relative minor of C major.
Because every pitch overlaps, relative keys blend seamlessly, which is why
key finders often list both.
Take each track's Camelot code and pair tracks that share a code, sit ±1
step apart, or share a number across rings (8A with 8B). Enter both tracks
in a mix compatibility checker to score the pair before you blend. This
harmonic-mixing workflow prevents the key clashes that ruin transitions.
Not with this tool — your file is decoded and analyzed entirely inside your
browser using the Web Audio API, and nothing is transmitted or stored. That
makes it safe for unreleased demos and client work. Many competing key
finders do upload your audio, so check their privacy policy first.
Partially. Slight detuning shifts every pitch class a little flat, which
blurs the correlation peaks and lowers confidence, especially on borderline
relative-key calls. The detected key is usually still right for clearly
tonal tracks, but verify detuned material by ear against a tuned instrument.