How music notes correspond to piano keys
Each written staff position names a pitch, and every piano key produces one pitch. White keys repeat the letter names A through G; black keys are named with a sharp or flat depending on musical context. This music notes to piano keys tool uses MIDI as a shared reference, so the staff, keyboard, note name, and frequency always stay synchronized.
Select a line or space above to see its matching key. Select a white or black key to reverse the process and place the note on the appropriate staff.
Treble clef and bass clef notes
The treble clef is commonly used for notes around and above middle C. Its five lines are E4, G4, B4, D5, and F5; its spaces are F4, A4, C5, and E5.
The bass clef covers lower notes. Its five lines are G2, B2, D3, F3, and A3; its spaces are A2, C3, E3, and G3. Ledger lines extend both staves beyond those ranges.
Where is middle C on piano and staff?
Middle C is C4, MIDI note 60, at about 261.63 Hz. On a standard piano it is the C near the physical center of the keyboard. On written music, middle C sits on the first ledger line below the treble staff or the first ledger line above the bass staff.
This page starts on middle C so you can use it as a visual anchor. It stays silent until your first interaction, avoiding unexpected audio.
Note names and Do Re Mi
Letter names identify pitches as A, B, C, D, E, F, and G, often followed by an octave number such as C4. Solfege names the same scale degrees Do, Re, Mi, Fa, Sol, La, and Si (or Ti in some systems). In fixed-Do solfege, C is Do, D is Re, and so on.
Sharps raise a written note by one semitone and flats lower it by one semitone. A black key can therefore have two equivalent names, such as C♯4 and D♭4.