Virtual piano: play online

A full-size piano keyboard in your browser. Play with your computer keys, mouse or fingers, turn on note labels to learn the piano keys, hold notes with sustain and shift octaves.

Octave0
C3
C4
C5

Play with your mouse, touch or computer keyboard (Z to / and Q to ]). Hold Space for sustain.

How it works

How to play the virtual piano

  1. 1

    Bottom row

    Z, X, C, V… play the lower octave; S, D, G, H, J the black keys.

  2. 2

    Top row

    Q, W, E, R… play the next octave; 2, 3, 5, 6, 7 the black keys.

  3. 3

    Sustain

    Hold Space (or tap Sustain) to let notes ring.

  4. 4

    Shift octaves

    Use the – and + buttons to move up or down.

A piano wherever you are

Learn songs

Turn on key labels to see which computer key plays each note.

Write melodies

Try out a tune before you turn it into a song.

Touch friendly

Play chords with several fingers on a phone or tablet.

Nothing to install

Works in any modern browser.

Getting started with the online piano

Middle C is the C in the top row (the Q key) when the octave is at 0. White keys follow the letters of the musical alphabet: C D E F G A B, then C again. Black keys are the sharps and flats between them.

A full piano has 88 keys: 52 white and 36 black, from A0 at the bottom to C8 at the top. The black keys come in groups of two and three, and that pattern repeats every octave. The white key just left of each pair of black keys is C, so once you find one C you can name every note. Switch the labels to "Notes" to see the piano notes on every key.

To play a C major chord, press C, E and G together: Q, E and T on the top row. For A minor, try A, C and E: Y, I and P. Switch the labels to "Keys" to see every shortcut on the keyboard.

Easy piano songs to start with: Twinkle Twinkle Little Star (C C G G A A G), Ode to Joy (E E F G G F E D) and Mary Had a Little Lamb (E D C D E E E). Each uses only the white keys, so you can play them with note labels on.

Found a melody you like? Hum it into a phone memo, then describe it to the AI song generator, or find the key of a song you're learning with the key finder.

Frequently asked questions

Can I play the piano with my computer keyboard?

Yes. The bottom row (Z to /) and the top row (Q to ]) cover about two and a half octaves.

How many keys does a piano have?

A standard piano has 88 keys: 52 white and 36 black, covering seven octaves plus a few notes. This virtual piano shows about two and a half octaves at a time; shift octaves to reach the rest.

How are the piano keys labeled?

White keys are named C D E F G A B, repeating every octave. Black keys are sharps or flats: C♯ (D♭), D♯ (E♭), F♯ (G♭), G♯ (A♭) and A♯ (B♭). Turn on note labels to see the name on every key.

What are easy piano songs for beginners?

Start with Twinkle Twinkle Little Star, Ode to Joy and Mary Had a Little Lamb. They use only white keys and a few notes, so they are easy to play on the virtual piano.

Does it work on phones and tablets?

Yes. Tap the keys; several fingers play chords. Turn the phone sideways for more room.

Is there a sustain pedal?

Yes. Hold Space or press the Sustain button.

Is it free?

Yes. No download, no account and no ads in the way.

Make your first song free

Sign up and your first song is free. Then check in once a day for another, up to 10 a month.

Create a song

No credit card needed.