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 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
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.
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).
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.
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.
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.
| Format | Example | Accepted? |
|---|---|---|
| Basic major | C, G, F, Am | Yes |
| Minor notation | Am, Em, Dm, Bm | Yes |
| Dominant seventh | G7, D7, A7 | Yes |
| Major seventh | Cmaj7, Fmaj7, Gmaj7 | Yes |
| Minor seventh | Am7, Dm7, Em7 | Yes |
| Flat notation | Bb, Eb, Ab | Yes |
| Slash chords | G/B, C/E | Yes (root used) |
| Suspended | Gsus4, Dsus2 | Yes |
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.
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:
| Chord | In G major? | In C major? | In D major? |
|---|---|---|---|
| G | Yes (I) | Yes (V) | Yes (IV) |
| D | Yes (V) | Yes | Yes (I) |
| Em | Yes (VI) | Yes | Yes (II) |
| C | Yes (IV) | Yes (I) | No |
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
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.