About the Online Piano
Online Piano is a playable keyboard that opens at once in your browser. It has two octaves of white and black keys that you can play with a mouse, a touchscreen or the keys of your computer keyboard. Choose the octave, pick a soft, mellow, hollow or bright sound, change the volume, turn sustain on to let notes ring and show or hide the key labels. The notes are made by your browser with the Web Audio system, so there is nothing to download and nothing is recorded or uploaded.
Updated October 2026
How to use the Online Piano
- 1Open the page and tap or click a key. The first touch wakes up the sound.
- 2Or press A, S, D, F, G, H, J on your keyboard for the white keys and W, E, T, Y, U for the black keys.
- 3Pick the octave and the sound you like.
- 4Turn on Sustain to let notes ring after you let go.
- 5Turn the key labels off once you know the layout.
Finding your way around the keys
A piano repeats the same pattern of twelve notes: seven white keys and five black keys. The black keys come in groups of two and three, and the white key just to the left of a group of two is always C. Turn the labels on to see the letters of the computer keys while you learn.
Try a simple tune
With the octave set to C4, press A A G G H H G for the first line of Twinkle, Twinkle, Little Star (the notes C C G G A A G), then F F D D S S A for the second line (F F E E D D C). Practise slowly, and use the Online Metronome to keep a steady beat.
- Twinkle, Twinkle: A A G G H H G, then F F D D S S A
- Mary Had a Little Lamb: D S A S D D D
- Use the Online Metronome to stay in time
Sounds and octaves
Soft (sine) is gentle and pure. Mellow (triangle) is warm and a good default. Hollow (square) sounds like an old video game, and Bright (sawtooth) is buzzy and sharp. Lower octaves give deep bass notes, higher octaves give bright, thin notes. Playing across octaves is a good way to hear how pitch works.
Tune and keep time
Use the Online Tuner to check a real instrument against the notes here, the Tone Generator to hear single pitches, and the BPM Detector to find the speed of a song you want to learn. All of them work in the browser.
Play on a phone
Turn the phone sideways for larger keys. Touch several keys at once for chords, and keep the volume up. If notes stick when you slide your finger, lift it fully before the next press.
Features
- 25 keys: two octaves plus the top C
- Mouse, multi-touch and computer keyboard play
- Four sounds: soft, mellow, hollow and bright
- Octave selector from C1 to C8
- Sustain and volume controls
- Key labels for learning
Frequently asked questions
Can I play chords?
Yes. Press several keys at once on a touchscreen, or hold several computer keys together. Notes keep sounding while their keys are held.
Which computer keys play which notes?
In the first octave, A S D F G H J are C D E F G A B, and W E T Y U are the black keys C#, D#, F#, G# and A#. K O L P ; ' continue into the second octave.
Why is there no sound at first?
Browsers wait for a tap or key press before playing audio. Press a key once and the sound starts. Also check that your device is not muted.
What is sustain?
It lets notes keep sounding after you release the keys, as if the sustain pedal of a piano were pressed. Turn it off to stop notes as soon as you let go.
Does it sound like a real piano?
It is a simple synthesiser, not a recording of a piano. The sounds are clean and good for learning notes, finding melodies and fun, but they will not match a real instrument.
Can I record my playing?
Not in this tool. Use the Voice Recorder to record your device while you play.
Is it good for learning piano?
It helps you find notes, learn the layout and practise simple tunes. For real technique, a real keyboard and a teacher help far more.
Does it work offline or use data?
It needs the internet only to load the page. After that the notes are made on your device.