Reading key signatures
A key signature tells a player which notes are always sharp or flat in a piece. Sharps are added in the order F, C, G, D, A, E, B and flats in the reverse order, B, E, A, D, G, C, F. D major has two sharps, F# and C#; F major has one flat, B♭.
Each minor key shares its signature with its relative major, three semitones higher. D minor has one flat, like F major, and A minor has none, like C major.
Remembering the pattern
Moving up a fifth adds a sharp, and moving down a fifth adds a flat. This is the circle of fifths: C, G, D, A, E, B and F# on the sharp side, and F, B♭, E♭, A♭, D♭ and G♭ on the flat side.
Frequently asked questions
Why is F# major shown with sharps and not G♭?
Both are correct and sound the same; the tool shows the more common spelling.
Do accidentals in the music change the key?
No. Individual sharps, flats or naturals in a bar are temporary changes.
Is anything saved?
No. The lookup runs in your browser.