Online piano
A virtual piano keyboard that tells you the chord.

The short answer
A free online piano you play with a mouse, touch, your computer keyboard or a MIDI keyboard. It shows two or three octaves, can label the keys, sustain notes, switch to a harmonium sound, and names the chord you hold.
Hold a few keys
Tap, click or use your computer keyboard.
The piano needs JavaScript to play.
Turn off silent mode to hear it.
How to play this online piano
Pick whichever way suits your device. They all work at the same time, so you can mix them.
- Mouse. Click a key to play it. Hold the button and drag across the keys to slide through them.
- Touch. Tap with as many fingers as you like. Turn a phone on its side for wider keys.
- Computer keyboard. The row of letters is laid out like a piano, shown below.
- MIDI keyboard. In desktop Chrome or Edge, choose Use a MIDI keyboard and allow access. How hard you press changes the volume.
- A S D F G H J K play the white keys, from C.
- W E T Y U play the black keys between them.
- Z moves down an octave and X moves up. Space holds the sustain while you press it.
Switch on Note names to see a letter on every key. Flats shows the black keys as D flat and E flat instead of C sharp and D sharp. Sustain keeps notes ringing after you let go.
What the chord names mean
Hold three or four notes at once and the piano names the chord. A major chord sounds bright and a minor chord sounds darker. The name is the root note plus the type, for example C major or A minor, and it also knows seventh, diminished, augmented and suspended chords.
When the lowest note is not the root, the chord is inverted. First inversion has the middle note at the bottom, and second inversion has the top note at the bottom. It is the same chord, just stacked differently. Any other group of notes shows only its note names. To see the symbol and every chord it knows, open the chord identifier.
Using the harmonium sound
Choose Harmonium in the Sound menu to play a reed organ tone. It is built in your browser from a few detuned reeds, with a gentle swell in as you press and a quick fade as you let go. Use Sustain to hold a drone under a melody, and move down an octave for the deep, round register.
Questions
Can I play piano online for free?
Yes. This online piano is free, needs no account and no download, and works in any modern browser on a phone, tablet or computer.
Can I use my computer keyboard?
Yes. The keys A to K play the white keys and W, E, T, Y and U play the black keys, starting from C. Z and X move down and up an octave, and Space holds the sustain.
Does it work with a MIDI keyboard?
Yes, in desktop Chrome and Edge. Plug in a USB MIDI keyboard, choose Use a MIDI keyboard, and allow access when the browser asks. iPhone and iPad browsers do not offer web MIDI.
Is there a harmonium?
Yes. Choose Harmonium in the Sound menu. It is a synthesized reed sound made in your browser, with a slow swell in and a steady tone while you hold a key.
How does the piano name a chord?
Hold three or four different notes that make a major, minor, seventh, diminished, augmented or suspended chord, in any order or octave, and it shows the root, the type and the inversion, for example D flat major, first inversion. Any other group of notes shows only the note names, never a guess.
Keep going
- See every chord with its fingering in piano chords.
- Learn the notes of every key in piano scales.
- See how the keys relate on the circle of fifths.
- Test your note reading in Name the note.
Practise chords with feedback in PlayPiano, a piano practice app for iPhone and iPad.
Play it in the app