How to play piano on a computer keyboard

You do not need a piano to start playing. A piano program turns the keys of your computer keyboard into piano keys, and with a sheet of letters you can play a real piece today.

Updated 14 November 2026

What you need

  • A computer and its keyboard. A laptop works, an external keyboard is often better (see the tips below).
  • Speakers or headphones.
  • A piano program that turns key presses into notes. Cantoza does this, and so do several web pages.

How the keys become notes

Most piano programs use the same layout, so letter sheets work in all of them. It fits 61 notes, five octaves, onto the number row and the letter rows. The lowest note, C, is the 1 key; the notes rise through the numbers and then along the letters. Middle C is t.

Lower-case letters and numbers are the white keys. The black keys are the same keys with Shift held: T is the black key just above middle C, and ! (Shift and 1) is the black key above the lowest C.

Letter sheets are written for the US keyboard layout. On other layouts a few keys sit elsewhere, for example y and z on a German keyboard, and the symbols on the number row differ, so check which key your piano program uses for each symbol.

How to read a letter sheet

  • Play the letters from left to right, like reading a sentence.
  • A capital letter or a symbol means: hold Shift and press that key.
  • Letters in brackets, like [tu], are played together, as a chord.
  • A dash or a space is a short pause. A bar line | marks where a new bar starts, which helps you keep your place.

Letter sheets do not show how long each note lasts, so listen to the piece first. That is why each song page here has a preview you can play next to its letters.

Your first piece, step by step

  1. Choose a slow piece with few notes at a time. Gymnopédie No. 3, Träumerei or the Prelude in E minor are good first choices.
  2. Listen to it once or twice, so you know how it should sound.
  3. Play only the first line of letters, slowly, until you can play it without looking for keys.
  4. Add the next line, then play both together. Short pieces of the tune repeated many times work better than long tries.
  5. Only when it is even and calm, play a little faster.

Tips for playing well

  • Many keyboards cannot register certain combinations of three or more keys at once, so some chords lose a note. If that happens, try another keyboard: gaming keyboards and most mechanical keyboards register many keys at once (look for n-key rollover).
  • A wired keyboard reacts faster than many wireless ones.
  • Sit up, keep your wrists loose and use several fingers, not just two. Your hands learn the layout surprisingly fast.
  • Close programs you do not need, so the sound starts the moment you press a key.

Playing in Cantoza

Cantoza plays your computer keyboard with a real piano sound and shows each key light up as you press it. In Practice it shows the notes falling toward the keys and waits for the right key, so you learn a piece at your own speed. Both are free. When you are ready for more, it also works with any MIDI keyboard.

Find a piece to play

Practice it in Cantoza

Falling notes that wait for the right key, a slower tempo, one hand at a time, and a score of how you did. Cantoza is in beta, and joining is free.

Join the beta

More guides