BPM finder for audio files

BPM finder: drop in an MP3, M4A or WAV – a few seconds later you see the tempo in beats per minute, for example 128 BPM ± 0.8, with half time (64) and double time (256) below. Honestly, with a ± range, because not all music has one clear tempo.

Source: D. P. W. Ellis: Beat Tracking by Dynamic Programming. Journal of New Music Research 36(1), 2007, pp. 51–60 (onset strength, tempo estimation, Section 3). Updated: .

Drag and drop files here or

Up to 20 audio files (MP3, M4A, WAV, OGG, FLAC …), up to 60 minutes each

Your files are processed only in your browser and never uploaded – they don’t leave your device.

Detected tempo

Choose an audio file – the tempo appears here.

Tap at least four times in time with the music – that settles half versus double tempo.

My Toolbox

Result

How it is calculated

DJs, dancers, musicians practising or runners matching music to their stride all want to know a track’s tempo. This tool estimates beats per minute (BPM) straight from the file – locally, without the music leaving your device. It looks for tempos between 40 and 240 BPM.

How it works

  1. Drop in or choose an audio file (up to 20 at once). Analysis starts automatically.
  2. The tempo is shown at the top, with the uncertainty (±) and how reliable the estimate is below.
  3. If a second tempo is shown, it is often half or double – tap along briefly to decide.

How it is calculated

The file is decoded by your browser and resampled to 11,025 Hz mono. A short-time spectrum yields an “onset curve” that rises at every attack. Its autocorrelation shows at which interval attacks repeat. As in D. P. W. Ellis, “Beat Tracking by Dynamic Programming” (Journal of New Music Research 36, 2007), it is weighted with a window centred on 0.5 s per beat (120 BPM) with a width of 1.4 octaves, because people tend to perceive tempi in that region; this also gives the second, alternative tempo. The result is refined over multiples of the beat period. The uncertainty comes from comparing 20-second sections of the track.

Worked example: a house track at 128 BPM

  1. Onset curve: the analysis steps through the audio in blocks of 64 samples, so the curve has 11,025 ÷ 64 = 172.3 values per second.
  2. Beat interval: at 128 BPM a beat comes every 60 ÷ 128 = 0.46875 s, that is 0.46875 × 172.3 = 80.75 steps of the curve. The autocorrelation peaks there – and again at twice the interval, which would be 64 BPM.
  3. Weighting: the perception window gives 128 BPM a weight of 0.998 and 64 BPM only 0.811. 128 BPM wins; 64 BPM appears as “also plausible”.
  4. Result: in our test with a 30-second click track at 128 BPM, the tool returned 128 BPM ± 0.8 with high confidence, half time 64 and double time 256.
  5. Check: tap along with “Tap the tempo”. Taps 470 ms apart give 60,000 ÷ 470 = 127.7 BPM – the detected 128 is confirmed.

BPM, beat length and the half/double trap

TempoOne beatHalf timeDouble timePerception weight
60 BPM1,000 ms30 BPM120 BPM0.775
70 BPM857.1 ms35 BPM140 BPM0.857
90 BPM666.7 ms45 BPM180 BPM0.957
100 BPM600 ms50 BPM200 BPM0.983
120 BPM500 ms60 BPM240 BPM1.000
128 BPM468.8 ms64 BPM256 BPM0.998
140 BPM428.6 ms70 BPM280 BPM0.987
174 BPM344.8 ms87 BPM348 BPM0.929

The weight is the Ellis window at that tempo (1 = most likely to be heard as the beat). A 70 BPM ballad and a 140 BPM track can have the same pattern of attacks; the closer their weights, the more likely the second tempo is shown as well.

Common mistakes when finding the BPM

Honest limits

Music without a clear beat – free-tempo classical, ambient, speech – gives an uncertain result or none. Half and double tempo often cannot be told apart by calculation. At most the first 6 minutes are analysed. We deliberately do not show a musical key, because we cannot determine it reliably enough.

Privacy

The file is processed only in your browser and is not uploaded.

Several files, sections and a cross-check

Next steps: practise along with the metronome at the tempo you found, or match two tracks with change audio speed. Only have a video? Extract the sound first with video to MP3.

Frequently asked questions

How do I find the BPM of a song?

Drop the audio file (MP3, M4A, WAV and more) into the tool – the tempo is calculated automatically and shown with its ± range. It is free, and nothing is uploaded.

Can I find the BPM of a YouTube or Spotify song?

Not by link: the tool needs an audio file on your device. For streamed music, tap along with “Tap the tempo” or use Tap BPM; four or more taps give the tempo.

Why does the tool sometimes show a second tempo?

Because half and double tempo can fit equally well, for example 70 and 140 BPM. Which one is meant depends on how you feel the basic beat.

How accurate is the BPM detection?

With steady beat patterns the error in our tests was below 1 BPM – a 128 BPM click track came out as 128 ± 0.8. For real music, the ± range and the confidence level show how certain each result is.

Is my audio file uploaded?

No. Your browser decodes and analyses the file on your device; it never leaves it.

Does it detect the key as well?

No. Key detection would not be reliable enough, so we leave it out.

Sources and legal basis

As of: · Editorial policy

Related tools