BPM and key finder

Find the BPM and musical key of a song from an audio file. The analysis runs in your browser, so the file is never uploaded.

How to find the BPM and key of a song

  1. Choose an audio file, or drag it onto the box above.
  2. Wait while your browser reads and analyses it. Longer files take longer, and older phones are slower.
  3. Read the tempo, the key and the Camelot code. Use the half or double button if the tempo feels twice too fast or too slow.

How BPM detection works

BPM means beats per minute. The tool first listens for onsets, which are the moments where new energy appears in the sound: a kick drum, a strummed chord, a picked note. It turns the song into a curve that spikes at each onset. Then it compares that curve with delayed copies of itself. If the spikes line up well when delayed by half a second, there is a strong pulse at 120 BPM. It tests tempos from 60 to 200 BPM and keeps the one that explains the repeating pattern best.

To keep things quick, it analyses up to two minutes taken from the middle of the file. The middle is usually where the full band is playing, so it tends to say more about the song than a quiet intro or a long fade out.

Half time and double time

A song counted at 87 BPM and one counted at 174 BPM can contain exactly the same hits. Both counts are musically defensible, and people often disagree about which is right. Drum and bass, trap and slow ballads are the usual cases. The tool has to pick one, and it leans towards tempos in the middle of the range. If its choice does not match how you would count the song, press half or double. You can also check it by ear with our tap tempo tool.

How key detection works

The tool measures how strongly each of the twelve notes (C, C sharp, D and so on) appears across the analysed audio, ignoring which octave each one is in. It then compares that pattern with the typical note patterns of all 24 major and minor keys, using profiles from music research by Krumhansl and Schmuckler. The closest match is shown as the key, and the second closest is listed underneath.

The second guess is worth reading. The most common confusion is between a key and its relative: C major and A minor use the same notes. Neighbouring keys such as C major and G major share all but one note. Songs that change key partway through, use many borrowed chords, or are mostly drums and speech can produce a weak or misleading result. Treat the answer as a well-informed starting point and confirm it with an instrument: the home chord is the one where the song sounds finished.

Camelot wheel and harmonic mixing

The Camelot wheel gives every key a short code, a number from 1 to 12 followed by A for minor or B for major. DJs use it to pick tracks that will blend. Tracks with the same code usually sit well together. So do tracks one number apart with the same letter, such as 8A with 7A or 9A, and tracks with the same number and the other letter, such as 8A with 8B. It is a guide rather than a rule, so trust your ears on the actual transition.

What to do with the result

Getting a better reading

Use the cleanest copy of the song you have. Heavy compression, crowd noise and phone recordings blur both the beats and the notes. If a song speeds up and slows down, as live performances often do, a single tempo figure is only an average. In that case, cut out the section you care about with the audio cutter and analyse that part on its own.

Questions and answers

How do I find the BPM of a song?

Choose the audio file in the box at the top of this page. The tempo appears when the analysis finishes. If you do not have the file, play the song anywhere and use the tap tempo tool.

How do I find the key of a song?

The same analysis shows the key. Check the second guess too, and confirm by finding the chord on which the song sounds resolved.

How accurate is it?

It works best on recordings with a steady beat and clear chords. We have checked it on test signals, not on a large set of real songs, so we do not quote an accuracy percentage.

Does it upload my file?

No. Your browser decodes and analyses the file on your own device.

Which files work?

Any audio format your browser can play, which usually includes MP3, WAV, M4A, FLAC and OGG. Support for some formats differs between browsers.