Online Song Key Detector — Find Key from Chords | LazyTools
Music Theory

Online Song Key Detector — Find the Key from Chords

Enter the chords you hear in a song — separated by commas or spaces — and the tool identifies the most likely musical key. It scores all 24 major and minor keys by how many of your chords fit each key. Furthermore, the ranked results show the top five candidates with percentage match scores — revealing whether the song is clearly in one key or uses borrowed chords from multiple keys. No audio file upload required.

Enter chords — no audio uploadAll 24 keys scoredTop 5 probability rankingMajor & minor detectionBorrowed chord insight

Enter the chords you hear in a song. The tool analyses which musical key best fits all the chords you enter.

How to use the Online Song Key Detector

1

Identify the chords in the song

Listen to the song and identify the chord names by ear, using a chord chart or looking them up online. Furthermore, you only need the root chord names — Am, F, C, G — not extensions like Am7 or Fmaj9, though the tool accepts them. Enter at least two chords for a meaningful result.

2

Type chords into the input field

Enter chords separated by commas, spaces or slashes. Furthermore, the tool accepts major chords (C, G), minor chords (Am, Em), seventh chords (G7, Dm7, Cmaj7) and augmented or diminished chords. Flat and sharp notation is supported (Bb, F#, Ab).

3

Click Detect Key

Click the Detect Key button to run the analysis. Furthermore, the tool scores all 24 major and minor keys by counting how many of your chords are diatonic (belonging naturally) to each key. Major chord matches score 1 point; minor chords in major key contexts score 0.7 points.

4

Read the results

The stat strip shows the most likely key, match percentage, number of chords analysed and mode (major/minor). Furthermore, the ranking panel shows the top five key candidates with percentage scores as visual bars. A clear winner indicates a strongly tonal song.

5

Interpret ambiguous results

When the top two keys score within 15% of each other, the tool notes this. Furthermore, ambiguous results often mean the song uses borrowed chords from a parallel or adjacent key — common in rock, jazz and modal music. Use the Circle of Fifths to explore the harmonic relationship between the top candidates.

Common chord entry formats

The key detector accepts most common chord notation styles. Furthermore, entering chords consistently — all in one format — produces the most reliable results.

FormatExampleAccepted?
Basic majorC, G, F, AmYes
Minor notationAm, Em, Dm, BmYes
Dominant seventhG7, D7, A7Yes
Major seventhCmaj7, Fmaj7, Gmaj7Yes
Minor seventhAm7, Dm7, Em7Yes
Flat notationBb, Eb, AbYes
Slash chordsG/B, C/EYes (root used)
SuspendedGsus4, Dsus2Yes

How the key detection algorithm works

The tool uses a scoring system based on diatonic chord membership. Furthermore, every key has seven diatonic notes — chords built on those notes are considered "in key." The algorithm checks each entered chord against the diatonic notes of all 24 major and minor keys.

Key score = Σ (match weight for each chord in that key)
Major chord match = 1.0 points (strong signal for major key)
Minor chord in major key = 0.7 points (common but slightly less certain)
Minor chord in minor key = 1.0 points
Match % = (key score ÷ total chords) × 100

Why multiple keys score similarly

Related keys share many diatonic notes. Furthermore, C major and G major share six of seven notes — many chord progressions fit both keys. When the top two candidates score within 15% of each other, the song likely sits at the boundary between adjacent keys on the Circle of Fifths. Moreover, this ambiguity is musically intentional in many songs — the composer deliberately exploits the overlap for harmonic interest.

Worked example: detecting the key of a pop song

A musician hears the chords G, D, Em, C in a song. Entering these into the detector:

ChordIn G major?In C major?In D major?
GYes (I)Yes (V)Yes (IV)
DYes (V)YesYes (I)
EmYes (VI)YesYes (II)
CYes (IV)Yes (I)No
G major scores 4/4 (100%) — all four chords are diatonic. Furthermore, C major also scores 4/4 because these same chords exist in both keys. D major scores 3/4 because C is not diatonic to D major. The tool selects G major as the key based on the starting chord pattern (I–V–VI–IV from G), confirmed by the absence of F# chords that would suggest D major more strongly.

What is the musical key of a song?

The key of a song is the tonal centre — the note the music resolves toward. Furthermore, most Western music has a clear key that determines which chords feel resolved and which feel tense. Identifying the key enables musicians to improvise solos, choose appropriate scales and understand why certain chords fit together.

The key determines which chords naturally belong together. Furthermore, in G major, the diatonic chords are G, Am, Bm, C, D, Em and F# diminished. These chords share notes from the G major scale. Moreover, using outside chords creates tension — a technique called chord borrowing.

Why songs can have ambiguous keys

Many songs use chords from more than one key. Jazz compositions modulate between multiple keys throughout a single song. Moreover, modal music deliberately avoids a clear tonic, creating an ambiguous floating quality. The key detector identifies the closest match — acknowledging ambiguity when two keys score similarly.

Why knowing a song's key matters

Knowing the key unlocks improvisation and arrangement decisions. Furthermore, a guitarist immediately knows which scale to use once the key is identified. Moreover, identifying the key of a song you want to cover tells you which chords to look for and which substitutions will sound natural.

Transposing requires knowing the key. Furthermore, singers often move a song to a more comfortable range — from G to D, for example. Transposition maps each chord to the equivalent in the new key using the Circle of Fifths.

Key detection in music production

Producers mixing multiple tracks need all elements in a compatible key. Furthermore, mixing a vocal sample in G major with a beat in F# major creates dissonance unless timestretched to match. Auto-tune and pitch correction tools require the target key as input. Moreover, identifying the key of a sample before using it in a production prevents harmonic clashes that are difficult to fix at the mixing stage.

Frequently asked questions

No — this tool works from chord names only. Furthermore, you identify the chords by ear, from a chord chart or by looking them up, then type them in. This approach works for any song regardless of format or source. Moreover, it also teaches you to recognise and name chords by ear — a foundational music theory skill that improves with regular practice.
When two keys score within 15% of each other, both are strong candidates. Furthermore, this usually means the chords you entered are shared between two adjacent keys on the Circle of Fifths. Try adding more chords from the song — especially the last chord before a chorus or verse — to clarify which key is the tonic. Moreover, the chord that feels most "final" or resolved is usually the I chord of the correct key.
Borrowed chords come from the parallel minor or major key — a key with the same root but different mode. Furthermore, in C major, the Bb major chord is borrowed from C minor (where Bb is the bVII chord). These borrowed chords appear in the detector as lower-scoring matches — they slightly reduce the confidence of the primary key rather than suggesting a completely different key. Moreover, they are extremely common in pop and rock music.
Yes — the tool accepts seventh chords like Dm7, G7 and Cmaj7. Furthermore, enter the root chord names as you know them and the algorithm uses just the root note for key matching. For jazz standards that modulate through multiple keys, the result will show the overall tonal centre with moderate confidence. Moreover, for songs that are clearly in multiple keys (a jazz medley or rhapsody), identify each section separately for better accuracy.
Major keys use the major scale (cheerful, bright character). Furthermore, the same root note can have both a major and minor key — C major and C minor both exist. The detector scores both separately based on the chord qualities you enter. Minor chords in your input push the score toward minor keys. Moreover, many songs sit ambiguously between a major key and its relative minor (which share the same notes) — A minor and C major, for example.

Related music tools

Circle of Fifths

See all chords for any detected key. Furthermore, click any key to hear its chord played immediately.

Chord Progression Library

Browse progressions by genre once you know the key. Furthermore, one-click playback lets you hear any progression instantly.

Virtual Piano

Play detected chords on a browser piano. Furthermore, live chord detection confirms the names as you play.

Guitar Tuner

Tune to the key of the song before playing. Furthermore, 15 alternate tunings open different voicing options.

Auto BPM Counter

Detect the BPM alongside the key. Furthermore, confidence meter shows detection reliability.

Waveform Visualizer

Visualise the audio waveform of the song. Furthermore, export the waveform as a PNG for documentation.

Rate this tool

4.4
out of 5
446 ratings
5 ★
66%
4 ★
23%
3 ★
4%
2 ★
3%
1 ★
4%
How useful was this tool?