BPM Finder and Tap Tempo

Find the tempo of any song two ways: tap along and this BPM counter reads the beats per minute, or drop an audio file and the BPM detector measures it, with the song's musical key, its Camelot and Open Key codes for harmonic mixing and its tuning. An online metronome keeps time at the tempo you found, and a table turns BPM into milliseconds for delay and reverb settings. Files are analyzed in your browser and never uploaded.

Before you start: the file reading below is a demo loop made in your browser, at 120 BPM in A minor. Choose your own song to replace it, or start tapping.

Tap tempo

Tap the button on each beat, or press the space bar. Four taps give a first reading, and it steadies as you go on.

0.0 BPM

No taps yet.

A song's BPM and key

Demo loop · made in your browser, 44.1 kHz, 16 s

Tempo
120.0 BPM
Half time 60.0, double time 240.0
Key
A minor
Camelot 8A, Open Key 1m

The beat repeats strongly through the file, so this is a firm reading. If it feels twice too fast or too slow, the half or the double is the tempo you are counting.

The notes fit A minor best. Its relative, C major, uses the same seven notes and is the likeliest other reading. The second-best match was A major.

Tuning: at A4 = 440 Hz, to within 10 cents.

Analyzed in your browser. The file never leaves your device.

Metronome

At 120.0 BPM a quarter note lasts 500 ms, a dotted eighth 375 ms, an eighth 250 ms and a sixteenth 125 ms.

Turn your volume down before you start. The first beat of each bar is the higher click. Esc stops it.

BPM to milliseconds

The length of each note at a tempo, for setting a delay, a reverb pre-delay or a compressor's release in time with the music. A quarter note lasts 60,000 ms divided by the BPM; the other columns are fractions of it.

BPMQuarter noteDotted eighthEighthEighth tripletSixteenthBar of 4/4
601,000 ms750 ms500 ms333 ms250 ms4.00 s
70857 ms643 ms429 ms286 ms214 ms3.43 s
80750 ms563 ms375 ms250 ms188 ms3.00 s
90667 ms500 ms333 ms222 ms167 ms2.67 s
100600 ms450 ms300 ms200 ms150 ms2.40 s
110545 ms409 ms273 ms182 ms136 ms2.18 s
120500 ms375 ms250 ms167 ms125 ms2.00 s
128469 ms352 ms234 ms156 ms117 ms1.88 s
140429 ms321 ms214 ms143 ms107 ms1.71 s
150400 ms300 ms200 ms133 ms100 ms1.60 s
160375 ms281 ms188 ms125 ms93.8 ms1.50 s
174345 ms259 ms172 ms115 ms86.2 ms1.38 s

Keys with Camelot and Open Key codes

Both systems number the 24 keys round the circle of fifths, so two tracks mix harmonically when their codes share a number (a major key and its relative minor) or sit one number apart with the same letter. On the Camelot wheel A is minor and B is major; in Open Key notation m is minor and d is major.

Minor keyCamelotOpen KeyRelative majorCamelotOpen Key
G# minor1A6mB major1B6d
Eb minor2A7mF# major2B7d
Bb minor3A8mDb major3B8d
F minor4A9mAb major4B9d
C minor5A10mEb major5B10d
G minor6A11mBb major6B11d
D minor7A12mF major7B12d
A minor8A1mC major8B1d
E minor9A2mG major9B2d
B minor10A3mD major10B3d
F# minor11A4mA major11B4d
C# minor12A5mE major12B5d

How tempo and key are found

Tempo is how many beats pass in a minute. A person finds it by feeling the pulse and counting; a program has to find the pulse first. This page looks for the moments where sounds start, such as drum hits, plucked notes and chord changes, and measures how regularly they come round. The spacing that repeats most strongly is taken as the beat, and 60 divided by that spacing in seconds is the BPM.

A beat has no single correct level. A song counted at 87 BPM can be counted at 174 by someone tapping twice as fast, and both fit the music. The page picks the reading nearest the middle of the range most music sits in and prints the half and the double beside it, so the one that matches how you count is always on screen.

A key is the set of notes a piece is built from and the note it comes home to. To find it, the page adds up how much sound the recording holds on each of the twelve notes, in every octave together, and compares that pattern with the pattern each of the 24 major and minor keys tends to produce, as measured in listening experiments by Krumhansl and Kessler. The closest fit is the key it names.

The ideas behind the controls

BPM
Beats per minute. At 120 BPM a beat lasts half a second; at 60 BPM, one second.
Onset
The start of a sound. A row of onsets at even spacing is what a beat looks like to a program.
Half time and double time
The same music counted at half or twice the speed. Tools disagree on these far more often than on the tempo itself.
Relative key
The major and the minor key that share all seven notes, such as C major and A minor. They differ in which note feels like home.
Camelot and Open Key
Two ways of numbering the 24 keys round the circle of fifths, so that keys which mix well sit next to each other.
Cent
A hundredth of a semitone. A recording 30 cents sharp sounds in tune with itself and out of tune with an instrument at concert pitch.

BPM finder FAQ

  1. How do I find the BPM of a song?

    There are two ways on this page. Play the song and tap the Tap button, or the space bar, on each beat: after about eight taps the reading is steady. Or press Choose an audio file and pick the song, and the page measures the tempo from the recording in a few seconds and shows the half and the double beside it. To check either answer, set the metronome to it and listen for the click staying on the beat.

  2. How does tap tempo work?

    Each tap is timed to the millisecond, and the tempo is 60,000 divided by the average gap between taps in milliseconds. The page fits a straight line through your last 16 taps, which one early or late tap moves very little, and starts a new count when you pause for more than two and a half seconds.

  3. How do I find the key of a song?

    Choose the audio file. The page adds up how strongly each of the twelve notes sounds through the recording and compares that pattern with all 24 major and minor keys. It names the best fit, gives its Camelot and Open Key codes and the relative key, and says so when no key fits well.

  4. Why does the BPM show as half or double what I expected?

    Because both describe the same music. A beat can be counted at more than one level, so a track most people call 140 BPM also repeats at 70, and one at 87 also at 174. The detector picks the level nearest the middle of the usual range and prints the other two beside it. Use the one that matches how you count the song.

  5. What are Camelot and Open Key codes?

    They are two numbering systems DJs use for the 24 musical keys. Both arrange the keys round the circle of fifths and number them 1 to 12, with a letter for major or minor: on the Camelot wheel A is minor and B is major, and in Open Key notation m is minor and d is major. Tracks mix harmonically when their codes share a number or sit one number apart with the same letter. The table on this page lists every key with both codes.

  6. How accurate is the BPM detection?

    On music with a steady, clear beat, such as most electronic, pop and rock recordings, the tempo is read to about a tenth of a BPM, although it may be the half or the double of the figure you expect. Music without drums, live recordings that drift and pieces that change tempo give a weaker reading or none, and the page says which. The metronome is the test: a correct tempo keeps the click on the beat.

  7. How do I convert BPM to milliseconds for a delay?

    Divide 60,000 by the BPM to get the length of a quarter note in milliseconds: 500 ms at 120 BPM. Halve it for an eighth note, take three quarters of it for a dotted eighth and a quarter of it for a sixteenth. The line under the metronome does the arithmetic for the tempo you set, and the BPM to milliseconds table lists common tempos.

  8. Can I use it as a metronome?

    Yes. Set a tempo from 30 to 300 BPM, choose how many beats are in a bar and press Start. The first beat of each bar is a higher click, and the lights show which beat is sounding. The buttons under the tap counter and the file reading set the metronome to the tempo they found.

  9. Is my audio file uploaded?

    No. The file is decoded and analyzed by your own browser on your device. Nothing about it is sent anywhere or stored, and closing the tab clears it.

  10. Which audio files does it read?

    MP3, FLAC, WAV, AAC, M4A, ALAC, OGG and AIFF files in current browsers, and DSD files (DSF and DFF), which are converted to PCM first. DRM-protected files from a streaming app cannot be read. The first ten minutes of a long file are analyzed.