Auto BPM & Key Detector
Drop a track to estimate its tempo, key and Camelot code with confidence scores — no tapping, no upload.
Audio file
Tempo and key are estimated locally with an onset autocorrelation and chroma correlation — no upload, no tapping. Confidence scores are part of the result; half/double-time and ambiguous keys are reported rather than hidden.
Choose a song or load one of the pulse examples.
Detection
No analysis yet
Load a track and press Analyze.
Examples
120 BPM pulse
Synthesised 120 BPM example≈120 BPM with high confidenceA clean onset envelope verifies the tempo path.
80 BPM pulse
Slower pulse example≈80 BPMThe autocorrelation lag range covers 60–180 BPM.
Ambiguous ambient
No clear beat or tonal centreLow-confidence warningThe tool reports uncertainty rather than inventing a key.
About this tool
The Auto BPM & Key Detector analyses a track instead of asking you to tap along. Audio is downmixed to mono and resampled to 11.025 kHz; an FFT-based spectral-flux envelope captures onsets, and its autocorrelation over the 60–180 BPM range locates the pulse with sub-lag refinement.
Key detection folds FFT magnitudes into twelve pitch classes, takes the median chroma across frames and correlates it with Krumhansl-Kessler major and minor profiles. The best rotation yields a key, a mode and a Camelot code for harmonic mixing.
Confidence is part of every result: low-confidence tempo or key findings are called out, and the top alternatives are shown so ambiguous material is not presented as certain. Analysis is entirely local and the results can be exported as CSV.
What this tool does not do
- Analysis is capped at ten minutes per file and runs on an 11.025 kHz mono mixdown.
- No click-track overlay, waveform scrubber or batch queue is bundled.
- Results are estimates: live instrumentation, tempo drift and atonal material reduce accuracy.
How to use this tool
Load a track
Choose an audio file or load a built-in pulse example; the browser decodes it locally.
Run analysis
Press Analyze. The tool builds an onset envelope, autocorrelates it for tempo and correlates median chroma for key.
Read the confidence
Check the confidence percentages and alternatives. Half/double-time and atonal material are common sources of low confidence.
Export results
Download the CSV row containing the file name, BPM, both confidence values, key and Camelot code.
Use cases
DJ preparation
Get a tempo and Camelot code to plan harmonic, beat-matched transitions.
Transcription workflow
Start with candidate BPM and key before working out details by ear.
Library tagging
Export CSV rows for a set of tracks and review confidence before tagging.
Result fields
| Field | Meaning |
|---|---|
| BPM | Tempo from onset-envelope autocorrelation, one decimal place |
| BPM confidence | Peak prominence relative to the autocorrelation mean |
| Key / mode | Best Krumhansl-Kessler major or minor rotation |
| Camelot | Harmonic-mixing code derived from key and mode |
| Alternatives | Top three tempo and key candidates for ambiguous material |
Only the first ten minutes of long files are analysed, and that limit is reported in the warnings.
Common mistakes
Mistake:Analysing an entire long mix and expecting one stable tempo.
Fix:Analyse a short, representative section; the tool only reads the first ten minutes and reports that limit.
Mistake:Treating a half-time result as an error.
Fix:Check the alternatives: sparse percussion often autocorrelates at half or double the perceived BPM.
Mistake:Trusting a high-confidence number on purely percussive audio.
Fix:Key detection needs tonal content; percussion-heavy tracks are flagged with low key confidence.
Frequently asked questions
How accurate is BPM detection?
Clean, quantised material with a clear onset usually lands within a fraction of a BPM. Live performance, swung feels, ambient textures and heavy reverb make the onset envelope less regular, so the confidence score drops and alternative tempos are shown. Use the number as a starting point and verify by ear.
What is Camelot notation?
Camelot maps the twelve major and twelve minor keys to numbers 1A–12A and 1B–12B so neighbouring numbers represent harmonically compatible keys. A minor is 8A and F♯ minor is 11A, which is why DJs use it to plan smooth transitions.
Why do half-time or double-time BPM guesses happen?
Autocorrelation finds repeating patterns at any multiple of the underlying pulse. Sparse drums may emphasise every other beat, while fast hats may emphasise half-beats. The detector compares candidates and reports alternatives so you can pick the musically correct one.
How is key confidence computed?
Median chroma is correlated with all 24 Krumhansl-Kessler major/minor rotations. Confidence combines the strength of the best correlation with its margin over the runner-up; a close second place means the mode or tonic is ambiguous and the score stays low.
Is my file uploaded?
No. Decoding, FFT analysis, autocorrelation, chroma correlation and CSV export all run in this browser tab. Nothing is sent to a server or stored after the page is closed.
How long a track can I analyse?
The analyser reads up to ten minutes from the start of a file and states that limit in the warnings when it applies. Shorter, representative sections usually give more reliable results than long edits with multiple tempo changes.
Related tools
Ambient Noise Generator
Blend white, pink and brown noise live in your browser — focus masking, tinnitus relief and sleep, with a built-in sleep timer.
Audio BPM Tap & Tempo Detector
Tap a beat or detect tempo from audio sample onsets with robust local signal analysis.
Audio dBFS, dBu, dBV & Voltage Converter
Convert digital and analog audio levels with professional and consumer references
Audio Tone Generator
Play sine, square, saw and triangle tones from 1 Hz to 20 kHz with sweeps, panning and WAV export.
Binaural Noise Synthesizer
Create binaural beats with white, pink, or brown noise
Chord Progression Player
Type chord symbols like Am–F–C–G and hear them played on a WebAudio piano with tempo, voicings, rhythm styles and loop control.