Virtual piano
A 25-key piano you can play with your computer keyboard, mouse or fingers. Chords, octave shift and a sustain pedal.
Click or tap the keys, or use your computer keyboard: A W S E D F T G Y H U J K.
How to play
- Tap or click a key. You can press several at once on a touch screen to play chords.
- On a computer, the middle row of letters plays the white keys (A is C, S is D, D is E …) and the row above plays the black keys (W is C♯, E is D♯, T is F♯ …).
- Change Lowest C to move the keyboard up or down an octave. C4 is middle C.
- Turn on Sustain pedal to let notes ring after you lift your finger, like holding the right pedal on a real piano.
- Turn off note names when you want to practise reading the keyboard by ear.
First chords and scales
- C major: C E G. F major: F A C. G major: G B D. These three play thousands of songs.
- A minor: A C E, the sad-sounding partner of C major.
- C major scale: all white keys from C to the next C. Thumb on C, cross under after E.
- Twinkle Twinkle: C C G G A A G, F F E E D D C.
About the sound
The tone is synthesised in your browser with the Web Audio API, so the page loads fast and nothing is downloaded. It is a practice instrument, not a sampled concert grand. For realistic piano, drum and xylophone sounds on your phone, use the app.
Questions
Can I play the piano with my computer keyboard?
Yes. A S D F G H J K play the white keys from C, and W E T Y U play the black keys. Use the Lowest C list to change octave.
Does the virtual piano work on a phone?
Yes. Tap the keys; multi-touch lets you play chords. Turn the phone sideways for wider keys.
Why is there no sound on my iPhone?
Tap a key once to start audio, and turn the volume up. The page asks iOS for media playback, so the silent switch should not mute it.
Can I record what I play?
Not on this page. Drums n Piano for iPhone has instruments with more realistic sounds.
Is there a sustain pedal?
Yes. Tick Sustain pedal and notes keep ringing until you untick it.
From the same developer
- Drums n Piano: piano, drums and xylophone on iPhone.
- Online drum machine: build a beat to play along with.