BPM Detector
Detect a song's tempo in beats per minute with onsets, confidence, half and double-time alternatives, plus tap tempo to confirm the beat by ear.
About the BPM Detector
The BPM Detector estimates the tempo of a song in beats per minute. Drop a track and the page shows Tempo, a Confidence rating, a Half / double pair and other candidates. Bar lines are drawn on the waveform, and a small indicator flashes on the beat during playback so you can check the result against what you hear.
Tempo detection is an estimate, not a property stored in the file. A song at 140 BPM can reasonably be counted as 70 BPM, and a live recording may drift. That is why the page offers alternatives and an ear check: under Check it by ear you can play the track and use Tap along to the beat. Tapping averages your recent intervals and resets after a two second pause.
You can also use the tap button without a file by starting from Or tap the tempo, which is handy when you only have a video playing elsewhere. Once you know the tempo, the Online Metronome can give you a click track, the Song Key Finder can find the key, and the Speed Changer can practise a section at a slower rate.
Why Use the BPM Detector?
Onset-based tempo search
The audio is mixed to mono, resampled to 11,025 Hz and reduced to a spectral-flux onset envelope with a 512-point FFT and a 5.8 ms hop. Autocorrelation is scored over 60 to 200 BPM on a 0.05 BPM grid.
Honest confidence
Confidence compares the best periodicity score with the median of all candidates. A steady electronic track scores high; rubato, ambient music and sparse percussion score low and are labelled accordingly.
Half and double time
Half and double tempo alternatives are always listed, along with other local maxima. A 140 BPM track can feel like 70 or 280 depending on how you count, and the page does not pretend one is certain.
Check it by ear
Bar lines on the waveform mark groups of four beats. The Tap along to the beat button accepts clicks, touches or the T key, averages up to twelve taps and shows a BPM value you can compare with the detection.
Processed locally in your browser
Your audio is decoded, processed and encoded on your own device in a background Web Worker. Aback Audio does not upload the audio for this operation.
Free, no sign-up, no watermark
Every tool is free with no account, no watermark and no daily limit. The only limit is your device's memory, and the tool warns you before anything risky.
Common Uses for the BPM Detector
DJ sets
Find the tempo of two tracks before you mix them. Compare the half and double alternatives as well, because the beat grid that sounds right in a mix is not always the first number reported.
Remixes and edits
Set your project tempo before you line up a sample. A wrong octave in the tempo guess is common, so tap along once before you build a grid around it.
Running playlists
Group songs by cadence. A value near 160 BPM suits a faster run, while 120 to 135 BPM is a common middle range; the displayed feel label gives a quick genre hint.
Dance practice
Know the count before you start. Use the waveform bar lines to find the first beat, then loop a phrase with the Audio Looper if you need repeated practice.
Video editing
Cut to the beat by reading the bar lines. For a precise guide, export a click track from the Online Metronome and line it up with the music.
Delay and reverb settings
Sync an echo to the track tempo. An eighth-note delay is half the beat interval, so a 120 BPM track takes 250 ms per eighth note.
Learning an instrument
Work out a song's speed before practising. Slow it to 0.75x with the Speed Changer while keeping the pitch, then build back to the original tempo.
How the BPM Detector Works
How to use it
- 1Drop a song on the drop zone, or click to choose one from your device.
- 2Read Tempo in BPM, Confidence, the Half / double pair and any other candidates.
- 3Press play and watch the waveform bar lines and beat indicator to see where the pulse lands.
- 4Under Check it by ear, press Tap along to the beat several times and compare your tapped value with the detected one.
- 5Press Copy BPM to keep the value, or use Or tap the tempo at the start if you have no file to upload.
From waveform to onset envelope
The stereo mix is summed to mono and resampled to 11,025 Hz. A 512-point Hann-windowed FFT runs with a hop of 64 samples, about 5.8 ms. Spectral magnitudes are log-compressed, positive changes are accumulated as flux, and a local mean over roughly 0.75 seconds is subtracted so steady tones do not register as beats.
Finding the pulse
An FFT-based autocorrelation of the onset envelope is scored with a harmonic comb at lags tau, 2*tau, 3*tau and 4*tau. The search covers 60 to 200 BPM in 0.05 BPM steps and applies a log-gaussian prior centred on 120 BPM, so implausibly slow or fast guesses need stronger evidence. The winner is refined with a weighted least squares fit of peaks up to 16 periods.
Confidence and beat phase
Confidence is the gap between the best score and the median score, normalised into the 0 to 1 range. The first beat is placed where an onset-weighted grid over the detected period sums highest. Once the period is known, the page can draw four-beat bar lines and flash the current beat during playback.
What tap tempo adds
The tap button records up to twelve tap times, clears them after a two second pause and divides the average interval into 60,000 milliseconds. It works with a mouse, touch, Enter, Space or the T key and is often more reliable than analysis for a song with a human drummer.
Privacy, security and availability
Files are opened with the browser's file APIs and processed in a background Web Worker on your device; the page has no upload endpoint and makes no network requests with your audio. Results are created as local files you download. Temporary data is released when you press Start over or close the tab.
Tips for Better Results
Tap before you trust
For live music, a tap check is worth more than a high confidence score. Tap eight beats and see whether your value matches the main result or one of the alternatives.
Use a clean section
A long ambient intro can confuse any detector. If the result seems wrong, analyse a short chorus with the Audio Cutter first.
Count in fours
Bar lines assume four beats per bar. If the song is in three or an unusual meter, trust your ears and tap instead of relying on the grid.
Keep the pitch when slowing down
The Speed Changer can lower tempo without changing pitch, which makes fast passages much easier to learn.
Limitations
- The estimate is a best guess. Half and double-time interpretations are often equally valid, and confidence is a measure of periodicity, not certainty about the musician's intent.
- Music without a steady pulse, such as free jazz, ambient textures and speech, may return no beat at all. The page then suggests tapping the tempo manually.
- The search is limited to
60to200BPM for the detected pulse. Half and double candidates can fall outside that range, and very short files may not contain enough onsets for a reliable result.
Guides for This Tool
- How to find the BPM of a song with a BPM detector (and check it by ear)Use a BPM detector or tap tempo to find the BPM of a song, fix half or double tempo errors, see typical BPM by genre and change a track's tempo in your browser.Read the guide
- How to find the key of a song with a key finder (and confirm it by ear)Use a key finder to find the key of a song from an MP3 or WAV, read its Camelot code for harmonic mixing, check it by ear and transpose it for your voice.Read the guide
Related Tools
Song Key Finder
Detect the key with Camelot codes for harmonic mixing.
Online Metronome
Precise metronome with accents and click-track export.
Audio Speed Changer
0.25x to 4x, keep the pitch or let it change.
Audio File Inspector
Codec, bitrate, sample rate, bit depth, levels and tags.
LUFS Loudness Meter
Integrated LUFS, true peak, LRA and platform checks.
Echo & Delay
Slapback to canyon echoes, with ping-pong stereo.
Audio Looper
Repeat a clip N times or to a length, seamlessly.
Audio Cutter
Select on the waveform and keep or remove that part.
Frequently Asked Questions
Why does it report half the tempo I expected?
Half and double speeds often fit the same onset pattern equally well. Check the Half / double values and tap along to decide which count matches the way you hear the song.
Does this work on every genre?
It works best with a steady beat in pop, dance, hip-hop and rock. Ambient, classical and heavily rubato music may have no regular pulse to detect.
What does confidence mean?
It compares the strongest periodic score against the median of all candidates. High means the onset pattern repeats consistently, not that the reported number is guaranteed to match the artist's tempo.
Can I use it without selecting a file?
Yes. The Or tap the tempo section appears before a file is loaded, so you can tap along to music playing on another device.
Why are bar lines drawn on the waveform?
They mark groups of four beats at the detected tempo, giving you a visual check on where the pulse should land. In a different meter they will not line up with the music.
How long does detection take?
A typical song takes a few seconds. The work runs in a background Web Worker with progress messages, and the Cancel button stops it.
Can I find the musical key as well?
Yes. The Song Key Finder uses a separate chromagram analysis and reports the key and Camelot code.
Why did a loud intro give a bad result?
A long sustained intro produces few onsets. Try analysing a chorus with the Audio Cutter or tap the tempo yourself.
Can I get a click track at this tempo?
Use the Online Metronome. Enter the BPM you measured, choose a subdivision and generate a WAV or MP3 click track.
Does the detector read BPM tags?
No. It measures the audio onsets. A BPM tag can be wrong or absent, which is why measuring the waveform is more useful.
Is the BPM Detector free?
Yes. It is free to use with no sign-up, no watermark and no usage limits.
Is my audio uploaded to a server?
No. Aback Audio is a static website: files are read and processed by your browser, on your device, using Web Audio, Web Workers and WebAssembly codecs. There is no upload endpoint.
Which browsers are supported?
Current versions of Chrome, Edge, Firefox and Safari on desktop and mobile. Opus encoding needs a browser with WebCodecs audio encoding; every other format works everywhere.