Play the Piano Using Your Computer Keyboard

No piano at hand? Your computer keyboard can play two full octaves of a real grand piano. Here is exactly which key plays which note.

The layout in one sentence

The bottom letter row is the lower octave and the top letter row is the upper octave; the row just above each one holds its black keys — exactly like the two rows of a piano keyboard.

Computer keyPiano noteKey
ZC3White
SC#3Black
XD3White
DD#3Black
CE3White
VF3White
GF#3Black
BG3White
HG#3Black
NA3White
JA#3Black
MB3White
QC4 (middle C)White
2C#4Black
WD4White
3D#4Black
EE4White
RF4White
5F#4Black
TG4White
6G#4Black
YA4White
7A#4Black
UB4White
IC5White

Moving up and down the piano

  • Press → to shift every computer key up one octave, and ← to shift down. The gold line above the piano shows which keys your keyboard is playing.
  • You can also use the arrow buttons next to “Keys on keyboard” under the piano.
  • The range goes from C1 up to C8, so every key of the 88-key piano can be reached.

Sustain, loudness and chords

  • Sustain: hold Space to keep notes ringing after you let go, just like the right pedal of a real piano. Release it to stop them.
  • Chords: press several keys together. A C major chord is Q E T (C, E, G), and A minor is N Q E (A, C, E).
  • Loudness: computer keys play at a medium strength. For full control over loud and soft notes, use the mouse (strike near the front of a key to play louder) or a MIDI keyboard.

Does it work with AZERTY or QWERTZ keyboards?

Yes. The online piano reads where a key is on the keyboard, not which letter is printed on it, so the layout is the same on any keyboard. In Chrome and Edge the labels on the piano keys even switch to the letters of your own layout.

When a chord doesn't sound

Most computer keyboards cannot report more than three or four keys at the same time, and some combinations fail even sooner. This is a hardware limit called key ghosting, not a fault of the piano. If a chord drops notes, play it with the mouse or touch screen, or connect a MIDI keyboard.

Keep practising

Put the chart to use with an easy song, or go back to the full virtual piano.