Page Icon

Online Piano

Play the piano in your browser – use your computer keyboard, mouse or touchscreen.

W
AC4
E
SD4
DE4
T
FF4
Y
GG4
U
HA4
JB4
O
KC5
P
LD5
;E5
'F5
Computer keyboard: white keys A S D F G H J K L ; ' and black keys W E T Y U O P. Click or tap the keys on a touchscreen.

A free piano keyboard that runs entirely in your browser. Play melodies with your computer keyboard, mouse or fingers, switch octaves, add sustain and see the note names. The tone is synthesised on your device, so there is nothing to download.

What is an online piano?

An online piano is a virtual keyboard that plays piano-like notes in the web browser. It is handy for picking out a melody, checking a pitch, practising scales, teaching children the notes, or just playing for fun without an instrument at hand.

The sound is generated with the Web Audio API by combining several harmonics with a fast attack and a natural decay, so you get a soft piano-like tone on any device. It is a simple synthesised piano, not a sampled concert grand.

How to play

  1. Click or tap the keys, or press the letters shown on the keys on your computer keyboard.
  2. Use the octave buttons to move higher or lower, and the volume slider to adjust loudness.
  3. Turn on Sustain to let notes ring after you release them, and Do-Re-Mi names to see solfège instead of letters.

Frequently asked questions

Can I play with my computer keyboard?
Yes. The letters A S D F G H J K L ; ' play the white keys and W E T Y U O P play the black keys. The mapping uses key positions, so it works on QWERTY, AZERTY and other layouts.
Why is there no sound?
Browsers only start audio after you click or press a key on the page. Press any key once, and check that your device volume and the page volume slider are up.
Does it record or upload anything?
No. Sound is generated locally in your browser and nothing is sent to a server.