MT Music Tools

Key & BPM Finder

Find the musical key, Camelot code and tempo (BPM) of any song from an audio file. Free, private and 100% in your browser — no uploads.

🔒 Runs entirely in your browser — nothing is uploaded

Drop an audio file here or click to choose

MP3, WAV, OGG, M4A, FLAC — analysed locally, never uploaded

Advertisement

Find the key and tempo of any song

Knowing the key and tempo of a track is useful for almost every kind of musician. DJs use it to plan harmonic mixes, producers need it to add samples or vocals that fit, singers use it to pick a comfortable pitch, and players want to know which scale to improvise over. This Key & BPM Finder reads an audio file you already have on your device and estimates both values in a few seconds. It shows the key name (for example A minor), its Camelot code, the relative key, a confidence score and the tempo in beats per minute, plus the half-time and double-time alternatives that tempo detectors commonly confuse.

How the analysis works

The file is decoded with the Web Audio API and mixed down to mono. For key detection, the audio is split into short overlapping frames and each frame is passed through a fast Fourier transform. The energy of every frequency bin is folded into one of the twelve pitch classes (C, C♯, D … B), producing a chromagram that describes how much each note is used throughout the song. That twelve-value profile is then compared with the Krumhansl–Schmuckler key profiles — listener-derived weightings of how strongly each scale degree belongs to a major or minor key — for all 24 keys. The key with the highest correlation wins, and the gap to the runner-up feeds into the confidence score. The chromagram chart lets you see which notes dominate the recording.

Tempo is estimated separately with the open-source web-audio-beat-detector library. It low-pass filters the signal to emphasise kick drums and bass, finds strong peaks, measures the intervals between them and picks the most common interval, which is converted to beats per minute.

Tips for reliable results

Automatic key detection is an estimate, not a certainty. Songs that modulate, use modal harmony or are mostly percussion are harder to classify, and a major key is easily confused with its relative minor because they share the same notes. When the confidence is low, listen to the track, check the alternatives listed below the result and trust your ears. For tempo, compare the result with the half- and double-time values and tap along if needed. Everything runs locally: the file is never uploaded, so you can analyse unreleased mixes and private recordings with complete peace of mind.

How to use

  1. Choose an audio fileDrop an MP3, WAV, OGG, M4A or FLAC file onto the box, or click it to browse.
  2. Wait for the analysisThe file is decoded and analysed in your browser; a typical song takes a few seconds.
  3. Read the resultsSee the estimated key, Camelot code, relative key, key confidence and tempo in BPM.
  4. Double-check by earUse the built-in player to listen and compare the result with the half- and double-time tempo hints.

Frequently asked questions

How is the musical key detected?
The tool builds a chromagram — the energy of each of the 12 pitch classes across the whole track — using a Fourier transform, then correlates it with the Krumhansl–Schmuckler major and minor key profiles. The best-matching profile is reported as the key.
How accurate is the BPM?
Tempo is estimated with the web-audio-beat-detector library, which looks for regularly spaced peaks in a filtered version of the signal. It works best on music with a clear beat. Some songs are reported at half or double their felt tempo, so both alternatives are shown.
What is the Camelot code?
The Camelot wheel numbers keys 1–12 with A for minor and B for major. DJs use it for harmonic mixing: keys with the same number, or a number one step away, usually blend smoothly.
Why does it sometimes show the relative major or minor?
A major key and its relative minor share exactly the same notes, so their pitch profiles are very similar. If the confidence is low, check the relative key listed next to the result.
Is my audio uploaded?
No. Decoding and analysis happen entirely in your browser with the Web Audio API. The file never leaves your device.
Advertisement