MusicGenerate

Song Key Finder

Detect the musical key and Camelot code of any song, free.

100% in your browser — nothing is uploaded

Song Key Finder

The Song Key Finder estimates the musical key and scale of a track — for example G major or C♯ minor — entirely in your browser. Drop in an audio file and the tool decodes it, builds a chromagram of which pitch classes are most present, and matches that profile against every major and minor key to find the most likely fit, returning the key plus its Camelot wheel code for harmonic mixing. Knowing a song's key is invaluable when you are layering parts over an AI-generated track, harmonically mixing in a DJ set, transposing a sample to fit, or writing a topline that sits in tune. It pairs naturally with the BPM detector: together, key and tempo are the two numbers that let you blend tracks cleanly. Unlike tools that upload your audio, this one analyzes everything locally with the Web Audio API, so unreleased material stays private. Under the hood it uses a Goertzel-based chromagram and the Krumhansl-Schmuckler key profiles — a well-established approach — but key detection is genuinely hard: tracks that modulate, that are heavily percussive, or that sit ambiguously between a relative major and minor can read as a neighboring key. Treat the result as a strong estimate and a starting point, and confirm by ear, especially before committing to a transposition. For DJs, the Camelot code makes compatible keys obvious — adjacent numbers and the A/B switch are your friends. Like the rest of the hub it is free, requires no signup, and runs entirely in your browser, so even unreleased material stays on your machine.

How to use it

  1. 1

    Add a track

    Drag in an audio file or browse to it. It is decoded and analyzed locally — nothing uploads.

  2. 2

    Let it analyze

    The tool builds a chromagram and matches it against all 24 major and minor keys.

  3. 3

    Read the key

    See the estimated key and scale, plus the Camelot code for harmonic mixing.

  4. 4

    Mix or layer

    Use the key to beat- and key-match in a set, transpose a sample, or write in tune.

Made for AI music creators

Writing a topline or layering parts over an AI-generated track? Find its key here, grab the Camelot code, and stay in tune — privately, in your browser.

Frequently asked questions

How accurate is the key finder?

It is a strong estimate using the Krumhansl-Schmuckler method. Steady, tonal tracks read well; modulating, very percussive, or ambiguous songs can read as a neighboring or relative key. Confirm by ear before transposing.

What is a Camelot code?

The Camelot wheel maps keys to codes like 8B or 5A so DJs can mix harmonically. Adjacent numbers and switching between A (minor) and B (major) at the same number are compatible moves.

Is my audio uploaded?

No. The key finder analyzes your file locally in the browser with the Web Audio API. Nothing is sent to a server, so unreleased tracks stay private.

What is the difference between major and minor?

They are the two most common scales. Major tends to sound bright or happy; minor tends to sound darker or more melancholic. The tool reports which best fits the track's pitch content.

Which formats are supported?

Any format your browser can decode — MP3, WAV, M4A, OGG, FLAC — up to 20 MB.

Song Key Finder

Detect the musical key and Camelot code of any song, free.