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: .
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
- Drop in or choose an audio file (up to 20 at once). Analysis starts automatically.
- The tempo is shown at the top, with the uncertainty (±) and how reliable the estimate is below.
- 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
- 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.
- 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.
- 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”.
- 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.
- 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
| Tempo | One beat | Half time | Double time | Perception weight |
|---|---|---|---|---|
| 60 BPM | 1,000 ms | 30 BPM | 120 BPM | 0.775 |
| 70 BPM | 857.1 ms | 35 BPM | 140 BPM | 0.857 |
| 90 BPM | 666.7 ms | 45 BPM | 180 BPM | 0.957 |
| 100 BPM | 600 ms | 50 BPM | 200 BPM | 0.983 |
| 120 BPM | 500 ms | 60 BPM | 240 BPM | 1.000 |
| 128 BPM | 468.8 ms | 64 BPM | 256 BPM | 0.998 |
| 140 BPM | 428.6 ms | 70 BPM | 280 BPM | 0.987 |
| 174 BPM | 344.8 ms | 87 BPM | 348 BPM | 0.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
- Taking the first number for granted: half and double time often fit equally well. If 140 feels wrong, the song may be 70 BPM – the second value is shown for exactly this reason.
- Analysing a track with an intro: a free-tempo intro or a breakdown lowers the confidence. Use “Section from second” to analyse just the main part (at least 6 seconds).
- Expecting one tempo for a live recording: bands speed up and slow down. If the tool reports that the tempo varies, the value is an average.
- Ignoring “low” confidence: then tap along – four taps or more settle it.
- Looking for the key: this tool deliberately reports tempo only, not the musical key.
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
- Batch: up to 20 files are analysed one after another; from the second file on, a table lists BPM, ± range, confidence and half/double time, and you can save it as CSV. Click a file name to show that file at the top.
- Section: if a track changes tempo, enter a start second and a length and recalculate – at least 6 seconds are needed. To save just that part, use the MP3 cutter.
- Half or double: both readings are always shown below the result; for 128 BPM that is 64 and 256 BPM.
- Listen back: “Play with metronome click” plays the file with a click at the detected tempo on top. If click and music drift apart, the estimate is off. “Tap the tempo” lets you check the result by hand.
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
- 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)
- MDN – BaseAudioContext.decodeAudioData()
- MDN – OfflineAudioContext (Web Audio API)
As of: · Editorial policy
Related tools
- Tap BPM: tap along to find the tempoTap BPM online: tap the pad or any key in time with the music and instantly see the BPM, how steady your timing is, plus half and double tempo.
- MP3 cutterCut and trim MP3 online: waveform view, exact start and end, fade in and fade out, export as MP3 or WAV. Free, in your browser, nothing uploaded.
- Online metronomeFree online metronome: 20–300 BPM, time signatures from 2/4 to 12/8, accents per beat, subdivisions and tap tempo. Sample-accurate, no app needed.
- Convert video to MP3Save the audio of a video as MP3: convert MP4, MOV or WebM to MP3 or WAV, with bitrate and trimming. No upload, right in your browser, free to use.
- QR Code Generator – free and permanentQR code generator for links, Wi-Fi, contacts (vCard), email, SMS or phone – add colors and a logo, download PNG or SVG. Never expires, no tracking, no sign-up.
- DOCX to TXT converterConvert DOCX to TXT: choose a Word file and copy or save the content as plain text or Markdown. Free, no upload, right in your browser.
- Rotate Video OnlineRotate video online: turn a sideways clip 90° left, 90° right or 180° with no quality loss, in seconds, free and without uploading your file.
- Merge and compress PDF files in one stepMerge and compress PDF files in one pass: order PDFs and photos, combine them, shrink the file and add page numbers. Runs in your browser, no upload.
- Paper weight calculatorPaper weight calculator from size and gsm: weight per sheet, stack and ream, gsm from a weighed stack, and how many sheets fit under 20 g. Free to use.