Skip to main content

Audio BPM & Tempo Detector

Estimate song tempo (BPM), confidence, and half/double-time alternatives locally in your browser.

100% Local ProcessingFiles stay on your device and are never uploaded to a server.

How to use

  1. Drop or select one or more audio files (WAV, MP3, M4A/AAC, OGG, FLAC, or WebM, depending on browser codec support).
  2. Click Detect BPM to decode the audio locally and analyze up to the first 120 seconds.
  3. Review the estimated BPM, confidence indicator, and half-time or double-time alternatives.

Key capabilities

  • 100% client-side tempo estimation using the Web Audio API with zero server uploads
  • Onset-strength envelope and autocorrelation over 60-200 BPM with parabolic peak refinement
  • Displays confidence score alongside half-time and double-time tempo alternatives

How browser-based BPM estimation works

After your browser decodes the audio file into PCM samples, the detector mixes all channels down to mono and analyzes up to the first 120 seconds. It computes log-compressed RMS energy across 10 ms frames and takes the positive frame-to-frame difference, followed by light 3-tap smoothing, as an onset-strength envelope.

Autocorrelation is evaluated across lags corresponding to 60 through 200 BPM. Parabolic interpolation around the strongest autocorrelation peak refines the lag to sub-frame precision, and the resulting tempo estimate is rounded to 0.1 BPM alongside a normalized confidence score (High at 35% or above, Medium at 15% to 34%, and Low below 15%).

Why half-time and double-time alternatives are shown

Periodic beats repeat at integer multiples of the underlying pulse, so a 120 BPM groove also correlates at 60 BPM (half-time) and 240 BPM (double-time). Depending on drum accents, basslines, or rhythmic subdivisions, the strongest autocorrelation peak can land on a half-time or double-time multiple.

Showing both half-time and double-time estimates in the results table makes it easy to pick the musical feel you want when prepping DJ sets, click tracks, or DAW projects.

When tempo estimation is unreliable

Autocorrelation assumes a steady, periodic pulse within the 60 to 200 BPM window. Tracks with rubato (free tempo), dramatic tempo changes, sparse ambient pads, or long unpulsed intros often produce low confidence scores or inaccurate estimates.

If a file has no clear rhythmic transients, such as silence, a sustained drone, or a clip shorter than the minimum lag window, the detector reports No tempo detected rather than forcing a guess.

Browser decoding, caps, and privacy

Decoding uses your browser's AudioContext.decodeAudioData API, so format support (WAV, MP3, M4A/AAC, OGG, FLAC, and WebM) depends on your browser and operating system. If one file fails to decode, remaining files in the queue continue processing normally.

Individual files are capped at 50 MB, total batch input at 150 MB, and total decoded duration at 20 minutes per run, with analysis capped at the first 120 seconds per track. All decoding and tempo estimation stay in browser memory with zero network uploads.

Frequently asked questions

Are my audio files uploaded to a server?
No. Your browser decodes and analyzes every file locally in tab memory using the Web Audio API, so your audio never leaves your device.
Why does the detector sometimes show half or double the expected BPM?
Rhythmic patterns correlate at both the main beat period and its integer multiples or subdivisions. Check the Half / Double column whenever the primary reading feels twice as fast or half as fast as the groove.
Does this work on ambient, classical, or live rubato recordings?
Usually not. This is a steady-tempo estimate over the first 120 seconds, so tracks without a consistent percussive pulse or with shifting tempo will have low confidence or inaccurate results.
What file sizes and formats are supported?
Files up to 50 MB each (150 MB total input, 20 minutes total decoded audio) are supported. Format decoding relies on your browser's built-in codecs, which typically include WAV, MP3, AAC/M4A, OGG, FLAC, and WebM.