Song Key Finder

No upload Works instantly Free
Drag & drop or click to select

MP3, WAV, OGG, M4A · Max 30 MB / 12 min · file stays on your device

What is a song key?

The key of a song is the tonal center that its melody and harmony resolve around. A track in C major uses the notes C, D, E, F, G, A, and B as its home scale, and the melody keeps returning to C as the point of rest. A track in A minor uses the same seven notes but resolves to A instead — same pitches, completely different feel. Knowing the key lets you predict which notes will sound right when improvising, which tracks will mix smoothly, and where to capo a guitar or transpose a part.

This finder analyzes the frequency content of your audio using a Fast Fourier Transform, maps the spectral energy onto 12 pitch classes (chroma), and compares the resulting profile against the Krumhansl-Schmuckler key-finding templates — a well-established method in music information retrieval. It reports both the key name (e.g. F♯ minor) and the Camelot wheel code.

What is Camelot notation?

Camelot is a DJ-friendly key notation used in software like Serato, Rekordbox, and Mixed In Key. Each of the 24 keys (12 major + 12 minor) gets a code: a number from 1 to 12 plus A for minor or B for major. The wheel is arranged so that harmonically compatible keys sit next to each other. Tracks with the same Camelot code mix cleanly (no clashing tones), neighbors one step away mix smoothly (subtle energy shift), and switching the letter on the same number (e.g. 8A → 8B) brightens or darkens the transition. You do not need to know music theory to use it — just match numbers.

On this page the Camelot code appears next to the detected key in the results panel. If you are preparing a DJ set, write down the Camelot codes for your tracks and arrange them by stepping around the wheel. It is the fastest way to build a mix that sounds musical without trial and error.

How accurate is key detection?

For tracks with a clear tonal center — most pop, electronic, rock, and hip-hop productions — the detection is reliable and will give the same key that a trained musician would identify by ear. The confidence indicator shows how strongly the chroma profile matched one key versus the others: "High" means a clear winner, "Medium" means the runner-up was plausible, "Low" means the track may be atonal or the key ambiguous.

Key detection is less reliable for tracks that modulate (change key mid-song), use heavy detuning or microtonal scales, or are purely percussive with no pitched content. For these cases the tool will honestly report low confidence rather than guessing. The BPM reading on the same analysis is usually still accurate even when the key is uncertain — tempo and tonality are independent dimensions.

Your audio never leaves your device during this analysis. The file is decoded by your browser's Web Audio API and processed in a local Web Worker — no server, no upload, no storage. This page and the BPM Finder use the same engine; this page simply presents the results with the key and Camelot front and center.

Related tools