Key Signature Finder
This key signature finder detects the tonal center of any song from live audio, chord progressions, or selected pitch classes. Use it as a key detector to find song key from a live microphone feed, an uploaded audio file, or a typed chord sequence — making it a practical chord key finder and key finder online in one tool. See the key signature with confidence score, diatonic chords, relative and parallel keys, a capo chart for guitar, and treble-clef staff notation. Useful for music transcription, songwriting, and ear training. 100% browser-based — no downloads, no data uploaded. Once the key is identified, you can pair the result with a scale generator to visualize every mode and scale that belongs to that tonal center.
Key Signature Finder Tool
Pitch Class Histogram
📂 Drag & drop an audio file here, or browse
Supports MP3, WAV, OGG, FLAC, M4A
Supported: C, Cm, C7, Cmaj7, Cm7, Cdim, Caug, Csus2, Csus4, C#m, Bb, Ebm7, etc.
Select the notes present in the music:
Diatonic Chords
Guitar Capo Suggestions
| Capo Fret | Play As | Open Chords |
|---|---|---|
| Detect a key to see capo suggestions | ||
All 24 Keys Ranked by Confidence
How to Use the Key Signature Finder
Choose Input Mode
Select Listen to detect from live audio or a file, Enter Chords to type a chord progression, or Enter Notes to pick pitch classes manually.
Provide Musical Data
In Listen mode, play music near your mic or upload a file. In Chord mode, type chords like "C Am F G". In Note mode, check the notes you hear in the song.
View Detected Key
The tool analyzes pitch-class distribution using the Krumhansl-Schmuckler algorithm and shows the most likely key with a confidence percentage. The pitch class histogram updates in real time, making it easy to spot the tonal center as note energy accumulates.
Explore Results
See diatonic chords (with roman numerals), key signature staff notation, relative/parallel keys, guitar capo suggestions, and all 24 keys ranked by correlation. Copy or export your results as CSV for further analysis.
Frequently Asked Questions
How does the key detection algorithm work?
The tool uses the Krumhansl-Schmuckler key-finding algorithm, a scientifically validated method from music cognition research. It builds a histogram of how often each of the 12 pitch classes (C, C#, D, ..., B) appears in the music, then computes a correlation coefficient against 24 key profiles (12 major + 12 minor). The key profile with the highest correlation is the detected key. The profiles are based on empirical data from probe-tone studies by Krumhansl and Kessler (1982). For chord-based input, each chord is weighted by its diatonic function within a potential tonal center, making this method robust even for short chord sequences.
How accurate is the key detection?
Accuracy depends on the input. With 30+ seconds of clear audio containing a variety of notes, accuracy is typically 85-95%. Short clips or songs that modulate between keys may produce lower confidence. Chord input is often the most reliable method since chord progressions strongly imply a key. Songs in minor keys may sometimes show the relative major as a close second.
What is the difference between relative and parallel keys?
Relative keys share the same key signature (same sharps/flats) but have different tonics — for example, C Major and A Minor are relative keys (both have zero sharps/flats). Parallel keys share the same tonic but differ in mode — for example, C Major and C Minor are parallel keys (same root note, different quality).
How do guitar capo suggestions work?
The capo table shows how placing a capo on different frets transposes the song to keys with more open-chord-friendly shapes. For example, if the detected key is Eb Major, capo 1 lets you play D Major shapes, and capo 3 lets you play C Major shapes. The tool highlights positions that produce the easiest open chord keys (C, G, D, A, E, Am, Em, Dm).
Can I detect the key from a chord progression?
Yes! Switch to the Enter Chords tab and type your chord progression (e.g., "Am F C G"). The tool scores each chord against all 24 keys: +2 points for a diatonic chord, +1 for a secondary dominant, and -1 for a non-diatonic chord. This method is often the most reliable since chord progressions provide strong key information.
Is my audio data private?
Yes, 100% private. All key detection runs entirely in your browser using the Web Audio API. No audio is recorded, stored, or transmitted to any server. The tool works completely offline once loaded.
Why does the tool keep detecting the relative major instead of the minor key I expect?
This is a known limitation of pitch-class-based key finding. A minor key and its relative major share the same seven notes — for example, A minor and C major both use C, D, E, F, G, A, B. The algorithm uses note frequency to distinguish them, so the tonic chord or leading-tone resolution carries the most weight. To improve minor-key detection: let the audio run longer (the tonic note tends to land on strong beats), or use the Enter Chords tab and include the i and v chords — the tool will correctly score those as favouring the minor key.
Can I use this tool to figure out what key to transpose a song to for my vocal range?
Yes — that's one of the most practical uses. First detect the song's current key, then use the online transpose tool to shift up or down by semitones until the melody fits your comfortable singing range. The key signature finder shows you the starting point; the transposer handles the math. Guitarists can also use the capo suggestions table here directly to find the fret that puts the song in an easier key without changing tuning.
What does the confidence percentage actually mean, and when should I trust it?
The confidence score is the Pearson correlation coefficient between the detected pitch-class histogram and the best-matching key profile, scaled to a percentage. A score above 75% generally means the key is reliable; 50–75% indicates a plausible result worth cross-checking; below 50% means the audio is too short, too noisy, or the piece genuinely modulates between keys. If confidence is low, check the "All 24 Keys Ranked" section — a close second key may be a valid modulation target. Atonal or modal music may never produce high confidence against any standard major/minor profile.
Can I find the key of a song to help with music transcription or songwriting?
Absolutely. Knowing the key is the first step in transcription because it tells you which scale positions to expect, which accidentals are part of the key signature, and which notes are chromatic passing tones. For songwriting, once you know the detected key you can use the diatonic chords panel to see every naturally occurring chord — the I, ii, iii, IV, V, vi, and vii° — and combine them with the chord progression generator to build or extend your arrangement.
Related Tools
Scale Generator
Generate any scale in any key with notes, intervals, and piano/fretboard diagrams.
Try it →Chord Progression Generator
Generate chord progressions in any key with playback, roman numerals, and voicings.
Try it →Transpose Tool
Transpose chords and notes between any two keys with capo calculation.
Try it →