DaTracks › Tools

BPM & key finder

Drop a song to find its tempo, musical key and Camelot code for DJ mixing. The file is analysed on your device, so nothing is uploaded and it works offline once the page has loaded.

Tap along

Play the song and tap to the beat to double-check the BPM.

– BPM

How the BPM and key finder works

When you drop a file, your browser decodes it to raw audio and the analysis runs on your own device. Two separate measurements are made.

Finding the tempo

The finder tracks how much the sound changes from one moment to the next, which produces a spike at every drum hit and strummed chord. It then looks for the time gap that repeats most often between those spikes. That gap is the beat, and dividing one minute by it gives the BPM. Most songs sit between 70 and 180 BPM, so results are folded into that range. If a hip-hop track shows 170 when you feel it at 85, the half-time value is listed right underneath.

Finding the key

The finder measures how strongly each of the 12 notes appears across the song, shown in the pitch profile chart. That profile is compared with typical profiles of all 24 major and minor keys, a method developed by music psychologists Carol Krumhansl and Mark Schmuckler. The closest match is the key. Relative keys such as C major and A minor share the same notes, so the second guess is shown as well.

Camelot codes for DJs

The Camelot system numbers the 24 keys around a wheel from 1 to 12, with A for minor and B for major. Tracks mix smoothly when their codes are the same, one step apart (8A to 9A), or switch letter at the same number (8A to 8B). Open the Camelot wheel to plan a whole set.

Tips for accurate results

  • Use the full song or a long clip. A few seconds of intro without drums gives the tempo detector little to work with.
  • Songs that change key or tempo, or have no clear beat (ambient, classical), give less reliable results.
  • Electronic and pop music with steady drums is detected most reliably.
Questions

Good to know

Are my songs uploaded?

No. The file is read and analysed inside your browser. Nothing is sent to any server.

Which formats are supported?

Anything your browser can play: MP3, WAV, M4A/AAC, OGG and usually FLAC. Very long files take a little longer to decode.

Why is the BPM half or double what I expected?

Tempo is ambiguous by nature: a track at 140 BPM can feel like 70. The finder shows the half and double values so you can pick the one that matches how you count it.

How accurate is the key detection?

For most pop, rock and electronic music the detected key or its relative key is correct. Songs with key changes, heavy distortion or modal harmony can confuse any automatic detector, so trust your ears too.

More free tools

Keep making music