Browser-based music tool · audio → chords, key and tempo

Chord Finder from Audio

Drop a song and get its chords on a timeline that follows playback, a chord sheet in bars, the key and tempo, and a capo suggestion. Recognition is by beat-synchronous chroma and Viterbi smoothing, so treat the result as a first draft to check by ear.

Song

MP3, M4A, WAV, FLAC or OGG of up to 15 minutes.

Drop a song here or click to choose

.mp3, .m4a, .wav, .flac, .ogg

Now playing

Choose a song to see its chords here.

Chord Finder from Audio

Operator: Abdulla Al Fahad. How tools are built and checked

Working out the chords of a song by ear means stopping, rewinding and guessing whether that was an F or an Fmaj7, over and over. A computer can do the first pass: it splits the song into beats, measures which of the twelve notes are sounding on each beat, and picks the chord whose notes fit best. What it returns is a draft chart, good enough to play along with and to correct by ear, and this page says plainly where it goes wrong.

Drop an MP3, WAV, M4A, FLAC or OGG file of up to 15 minutes. The chords appear as a timeline that follows playback, as a chart in bars of four, and as files you can save.

Nothing in the analysis needs a lyric sheet or a score, only the recording.

Key features

  • Nine chord types on all twelve roots: major, minor, 7, maj7, m7, dim, aug, sus2 and sus4, plus a no-chord state for silence
  • Key by the Krumhansl-Schmuckler method and tempo from the same estimator BPM and Key Detector uses
  • A chord timeline you can click to jump, and a chart in bars of four with the downbeat shifted by 0 to 3 beats
  • A simplified mode that shows every chord as a plain major or minor triad, and a capo suggestion for frets 1 to 7
  • ChordPro, a MIDI file of the chords, and a CSV of start and end times

Which chords are recognised and how the answer is chosen

Any file the browser can decode works, up to 15 minutes; the length is read from the file before it is decoded, so an over-long file is refused without loading it into memory. The audio is mixed to mono and resampled to 22,050 Hz inside a worker.

ChordPro output has a title, key and tempo line, a capo line if one is chosen, and four bars per line with each chord in square brackets, so the file opens in ChordPro tools, including ChordPro Transposer. The MIDI file holds one note track at the song's detected tempo, with a bass note in the octave below middle C and the chord tones between C4 and B4 for each chord.

The CSV has one row per chord with its start and end in seconds, the chord name, its root as a pitch class from 0 (C) to 11 (B), its quality and a confidence between 0 and 1. The confidence is the margin of the winning chord over the runner-up on that stretch, not a probability.

Chord names use sharps or flats according to the detected key, so a song in F reads Bb and a song in E reads G#m.

How it works

The key is estimated first, and its tuning offset in cents is used to re-centre the analysis, so a recording slightly off A = 440 does not smear each note across two pitch classes. Frames of 8,192 samples, 0.37 seconds, are taken every 2,048 samples, and spectrum bins between 65 and 2,000 Hz are added into twelve pitch classes, with low bins counting for less and bins near a semitone centre counting for more.

Beats come from the tempo estimate plus the phase that puts the grid on the strongest onsets. Chroma is averaged over each beat, every frame counting equally so a loud drum hit cannot outvote the harmony. At fast tempi, one decision covers two beats, because chords rarely change that often.

Each beat is scored against 108 chord templates, one per root and type, and against a no-chord state. Rarer types such as sevenths and augmented chords have to fit the beat's chroma clearly better than a plain triad to win, and a chord that belongs to the detected key gets a small bonus.

A Viterbi pass then picks the best sequence rather than the best chord per beat: staying on a chord costs nothing and changing costs 2.4, so a single beat that looks like Dm inside a long C is smoothed away.

The capo suggestion counts how much of the song, by time, falls on 26 open-position shapes (C, D, E, G, A, Am, Dm, Em, the common sevenths and sus chords) for each fret from 0 to 7, and recommends a fret only if it beats no capo by at least 15 percentage points.

Common use cases

  • A guitarist learning a 3:40 acoustic track reads G, Em, C, D in bars of four and checks the capo hint against the key she can sing in.
  • A band leader drops a rehearsal recording of 11 minutes and saves ChordPro, then pastes it into a song sheet app that reads that format.
  • A pianist exports the MIDI chords, drops them into an editor, and plays the melody over the generated backing.
  • A teacher turns on simplified chords for a beginner class, so Cmaj7 and Am7 appear as C and Am.

How to use this tool

  1. Drop the song, wait for the analysis to finish, then press play and click any chord or bar to jump to it.
  2. Move the downbeat setting until the bar lines fall where the chords change.
  3. Save ChordPro, MIDI chords or the CSV.

Example

A recording like this: C, Am, F, G played three times at 100 BPM, one chord per bar, about 29 seconds

progression.wav, mono, 22,050 Hz

A reading like this

Key C major, tempo 100 BPM, 12 chords (11 changes), length 0:29
Chart: C | Am | F | G | C | Am | F | G | C | Am | F | G
The first row of the CSV is 0.000 to 2.375 seconds, C, pitch class 0, maj
Capo on fret 5: 100% of the song on open shapes (G, Em, C, D), against 75% without a capo, because F is not an open shape

Common pitfalls

Sevenths are the weak spot. A dominant seventh whose seventh is quiet is read as the plain triad, so a G7 shows as G.

The downbeat is not detected. Bars are counted in fours from the beat grid, so a song in 3/4 or 6/8 has bar lines in the wrong places even when every chord is right.

Only the harmony it can hear is analysed. Heavy distortion, a loud lead vocal or a drum-and-bass intro with no chords gives no-chord stretches or wrong roots.

One key is assumed for the whole song. A song that modulates favours the chords of its main key in the later part, where the key bonus works against the real chords.

The tempo is the single estimate for the song. A track that speeds up, or a live recording with a drifting beat, loses its beat grid late in the file, and the chords there are placed less accurately.

  • When the whole chart sits a bar early or late, change Beats before the first bar; the chords themselves are right and only the grouping is off.
  • Press the bar for a chord you doubt and listen to just that bar; a disagreement is usually a bass note the other instruments do not support.

Common errors and how to fix them

"live.mp3" is 17:42 long. The limit is 15 minutes; cut it first
Trim the file to 15 minutes or less, or analyse the song in two halves.
"voice.wma" is not in an audio format this page recognises
Convert it to MP3, WAV, FLAC or M4A. WMA, AMR and AC-3 do not decode in browsers.
No clear pitched sound was found
The file is silent, or under about 2 seconds long. Check the file in a player first.
The analysis worker stopped unexpectedly
Reload the page and try again; very long files on a low-memory device are the usual cause.

Best practices

  • Analyse the studio version rather than a live one when you have both; a steady beat gives the beat grid, and the chords are placed on it.
  • Compare the chart with the timeline for one verse before saving: if both agree on the verse, they will usually agree on the repeats.

How well it does, and how that was checked

The chord recogniser was run on six synthesised progressions at 90 to 130 BPM: C Am F G, Cmaj7 Am7 Dm7 G7, E A B, Am G F E, D Bm G A, and Dsus4 D Asus2 A, four beats to a chord with a light drum click and noise. Overall 96% of beats got the right chord. Five of the six were exact, and the sevenths progression scored 75%, with G7 read as G.

Synthesised tones are the easy case: they have steady harmonics, no vocals and no reverb. No accuracy figure is claimed for commercial recordings, where sevenths, extensions and slash chords are common, and the best use of the page is as a first draft.

Why 4 beats and not the real time signature

Finding a downbeat reliably needs a model of the song's rhythm that this page does not have. Rather than guess, it lays four beats to a bar and lets you move the starting point. Bars in a song with a time signature other than 4/4 are still correct as chord lists, because the chord times are exact.

Frequently asked questions

Can it find the lyrics' chord positions?

It finds chord start and end times, not words. The CSV lets you line the times up with a lyric file in a spreadsheet.

Is the key and tempo the same as in BPM and Key Detector?

Both tools run the same tempo and key estimators. Each analyses at its own sample rate, so the values can differ slightly for the same file.

Why does a chord flicker between two names?

Two chords that share most of their notes, such as C and Cmaj7, score almost the same. The change cost of 2.4 keeps short flickers out, but a long, ambiguous stretch can still alternate; simplified mode merges them.