Virtual Piano: Play Right in Your Browser

A 3-octave piano ready to play with your mouse, on a touchscreen or with your computer keys. "Learn a song" mode guides you note by note through Twinkle, Twinkle, Little Star, Frère Jacques or Ode to Joy.

  • 3 octaves
  • Computer keyboard
  • MIDI compatible
  • 6 songs to learn
Octave
Note names

Learn a song

Play with your mouse, your fingers (several notes at once) or your keyboard: bottom row for the lower octave, top row for the next octave. In song mode, the key to play lights up in yellow.

100% private — Everything is processed directly in your browser: your files, voice, and image are never sent to Chatzam's servers.

How to play piano online

  1. Choose how to play

    Click the keys, touch the screen with several fingers, use your computer keyboard or plug in a MIDI keyboard.

  2. Set up the piano

    Show note names on the keys, shift the octave, adjust the volume and hold the space bar for the pedal.

  3. Learn a song

    Pick a song: the key to play lights up, and the song moves on each time you play the right note.

A real piano keyboard in your browser

Computer keyboard

The keys are laid out like a piano's, in QWERTY or AZERTY, detected automatically.

Touch and MIDI

Several notes at once on a touchscreen, and MIDI keyboards recognized in Chrome and Edge.

Pedal and octaves

Sustain pedal on the space bar, octave shift and volume control.

Guided songs

Au Clair de la Lune, Frère Jacques, Twinkle, Twinkle, Little Star, Ode to Joy, Happy Birthday, Jingle Bells.

Finding your way around a piano keyboard

A piano keyboard repeats the same pattern every octave: 7 white keys and 5 black keys, or 12 notes. The black keys come in groups of 2 and then 3, and that's how you find your way: C is always the white key just to the left of a group of 2 black keys. Starting from that C, the white keys are C, D, E, F, G, A, B, then the next C, one octave higher. The black keys are the sharps and flats: the one between C and D is called C sharp or D flat. There's no black key between E and F, or between B and C.

Piano note names: C D E or Do Re Mi

In English, notes are named with letters, the ones you'll find in chord charts and most tutorials: C, D, E, F, G, A, B. Many other countries, like France, Italy or Spain, use solfège names instead: C = Do, D = Re, E = Mi, F = Fa, G = Sol, A = La, B = Si (or Ti). The online piano shows the letter names on the keys, with the octave number (C4, D4…) if you choose, which helps you follow a video or sheet music. A few easy melodies to try: Twinkle, Twinkle, Little Star starts with C C G G A A G, Frère Jacques with C D E C, C D E C, and Au Clair de la Lune with C C C D E D.

Getting started with a virtual piano

For your first songs, "Learn a song" mode is the easiest: the next key lights up and the melody only moves on when you play the right note, at your own pace. Start with Twinkle, Twinkle, Little Star or Frère Jacques, which only use a few notes, then move on to Ode to Joy. On a computer, the keyboard lets you play faster than with the mouse and play two notes at once. The sustain pedal, on the space bar, makes the notes ring on: release it when the harmony changes, or the sounds blur together. If you have a MIDI keyboard, plug it in and open the page in Chrome or Edge to play on real keys.

Frequently Asked Questions

How do I play piano with my computer keyboard?

Your keyboard keys are laid out like a piano's, and each note's name is shown on the on-screen keyboard. The QWERTY or AZERTY layout is detected automatically.

Can I connect a MIDI keyboard?

Yes, in Chrome and Edge: plug in your MIDI keyboard and play, the notes are picked up directly by the piano on the page.

Where is middle C on a piano?

Every C is the white key just to the left of a group of 2 black keys, and there's one in each octave. Middle C (C4) is the one closest to the middle of the keyboard.

What are the piano notes for Twinkle, Twinkle, Little Star?

It starts C C G G A A G, F F E E D D C. "Learn a song" mode shows you every note to play, all the way to the end.

Does the online piano work on a phone?

Yes, on phones and tablets you play with your fingers, and you can press several notes at once to play chords.

Other free tools

See all free tools →