Key and BPM finder

Drop in one song or a whole folder and read each one's key, tempo and Camelot code, with how sure the analysis is and the next best guess. Everything runs in your browser; your files never leave your computer.

  • Runs in your browser, nothing is uploaded
  • Free, no sign-up
  • Works on phones, tablets and computers

How to use it

  1. 01

    Add your audio

    Drop files on the box or choose them. MP3, WAV, AIFF, FLAC, M4A and OGG all work, as many as you like.

  2. 02

    Wait a moment

    Each file is decoded and analysed in your browser, a few seconds a song, one after another.

  3. 03

    Check the result

    Pick a row to see its waveform with the beat grid, play it against a click, and hear the key's chord.

  4. 04

    Export

    Download the table as a CSV for your DJ software, a spreadsheet or a sample library.

How the key is found

The analysis measures how much of each of the twelve notes there is across the whole song, a chromagram, after filtering out drums and the extremes of the frequency range. A song in C major has a lot of C, E and G and very little C♯, and every key has its own shape.

That shape is compared with a profile for each of the 24 major and minor keys. The best match is the key; the runner-up is shown as well, because it's often the relative minor or major, or the key a fifth away, which share most of their notes. Confidence is how far ahead the winner is.

How the tempo is found

The tool looks for the moments where new sounds start, onsets, by watching for sudden rises in energy across the spectrum. Then it measures how regularly those onsets repeat. The strongest repeat between about 70 and 180 BPM is the tempo, with a preference for the range most music is counted in, and the beat grid is lined up with the strongest onsets.

Electronic music with a steady kick comes out exactly. Live recordings with a drifting tempo get the average, and music with no clear beat, ambient or rubato piano, gets a low confidence. Half or double the figure is always a possibility; see the tap tempo page for why.

Camelot codes for harmonic mixing

DJs use the Camelot wheel to find tracks that mix in key. Each key has a number from 1 to 12 and a letter, A for minor and B for major. Tracks with the same code mix cleanly; one number up or down, or the same number with the other letter, also works. Two numbers up is the energy boost move.

CamelotMinor (A)Major (B)
1G♯ minorB major
2E♭ minorF♯ major
3B♭ minorD♭ major
4F minorA♭ major
5C minorE♭ major
6G minorB♭ major
7D minorF major
8A minorC major
9E minorG major
10B minorD major
11F♯ minorA major
12C♯ minorE major

Getting reliable results

Key and tempo detection is good, but it's not infallible. A few things help.

  • Use the full song rather than a short clip. Thirty seconds or more gives the key a fair hearing.
  • Songs that change key are given the key they spend longest in.
  • Modal music, Dorian or Mixolydian for example, is reported as the nearest major or minor key.
  • Detuned recordings, such as old tapes, still come out right: the analysis reads within a quarter tone.
  • When the two guesses are relative keys, like C major and A minor, the chords decide it. The song usually starts or ends on its home chord.

Your files stay on your computer

Most online key finders upload your audio to a server. This one doesn't. Files are decoded by your browser and analysed in a background thread on your own machine, so unreleased music, client work and sample packs stay private, and there's no upload wait or file size limit beyond your computer's memory.

Questions

How do I find the key of a song?

Drop the audio file on the key and BPM finder. The key appears in a few seconds, with the Camelot code and a second guess.

How accurate is it?

It agrees with the published key on most pop, rock and electronic music. Relative keys and keys a fifth apart are the usual mix-ups, which is why the second guess is shown.

Is my music uploaded?

No. Everything runs in your browser. You can disconnect from the internet after the page loads and it still works.

Can I analyse a whole folder?

Yes. Select or drop as many files as you like. They're analysed one after another and added to the table.

Can I use it for a song on YouTube or Spotify?

Only with an audio file. For a song you can only play, use tap tempo for the BPM and the pitch detector or chord finder to work out the key by ear.

What does the Camelot code mean?

It's the key's position on the Camelot wheel, used for harmonic mixing. Same code, or one step either way, mixes in key.

More free tools

All 13 tools

Take it into the DAW

We make audio plugins too, and three of them are free: Fat Pig, Holy Cow and Pretty Parrot. VST3 for Mac and Windows, and Audio Units on the Mac.

Free plugins