Skip to content
DeviceCheckHub

Online Piano

Play a real grand piano sound in your browser, with your computer keyboard, mouse or touch screen. No download and no sign-up.

C3 – C5
Last note: –
Press any key to start. The piano sound loads on your first note.

How to play the online piano

The keys work by position, so the layout is the same on QWERTY, AZERTY and other keyboards.

Finding the notes

The piano keyboard repeats the same pattern of twelve notes. The white keys are named C, D, E, F, G, A and B; the black keys are the sharps and flats in between, such as C♯ (also called D♭). Look for the groups of two and three black keys: the white key just left of each group of two is a C. The C in the middle of a full piano is called middle C, or C4, and the A above it, A4, is the note orchestras tune to at 440 Hz.

With labels set to note names, every white key shows its name and octave number. Start the visible keys at C4 with the Octave buttons to find middle C at the left edge.

Easy first melodies

These well-known tunes use only white keys, starting from middle C:

With the piano starting at C4, C is the A key, D is S, E is D, F is F, G is G and A is H on your computer keyboard.

Playing chords

A basic chord is three notes played together, using every other white key. C major is C, E and G (letters A, D and G). F major is F, A and C (F, H and K), and G major is G, B and D (G, J and L). Those three chords alone are enough to accompany a huge number of songs. A minor (A, C and E) adds a sadder sound. Hold the space bar while changing chords so they blend smoothly.

Scales to practise

Playing with both hands

On a real piano the right hand usually plays the melody and the left hand plays chords or bass notes lower down. On a touch screen you can do the same with two hands. On a computer keyboard, play the melody with your right hand on the letter keys and press the chord’s lowest note with your left, or hold the space bar for sustain and play the chord first, then the melody.

Online piano or a real piano?

An online piano is perfect for trying out melodies, working out the notes of a song, learning note names and chords, and quick practice when no instrument is nearby. A computer keyboard can’t play loud and soft, though, and it only covers about an octave and a half at a time. If you enjoy playing, a digital piano with 88 weighted keys and a sustain pedal is the next step: it feels like an acoustic piano, responds to how hard you play and can be used with headphones.

Practice tips

About the piano sound

The sound is a recording of a real Yamaha C5 grand piano: the Salamander Grand Piano by Alexander Holm, used under the Creative Commons Attribution 3.0 licence, here in a compressed MP3 version. Notes were recorded every few keys; each key plays the nearest recording, pitched up or down by at most a semitone. Only the notes near the visible keys are loaded, which keeps the page fast. If you hear nothing, check that your device isn’t muted and try the speaker test.

Frequently asked questions

How do I play the online piano with my computer keyboard?

The middle row of letters plays the white keys: A is C, S is D, D is E, F is F, G is G, H is A, J is B, then K, L and ; continue into the next octave. The row above plays the black keys: W, E, T, Y, U, O and P. Press Z or X to move down or up an octave, and hold the space bar for sustain.

Can I play it on a phone or tablet?

Yes. Tap the keys with your fingers; you can press several at once for chords and slide across the keys for a glissando. Held upright, a phone shows one octave with wide keys; turn it sideways to see more keys, and use the Octave buttons to reach higher or lower notes. Make sure the phone isn’t in silent mode.

Why is there a short delay when I press a key?

Every device needs a few milliseconds to turn a key press into sound. Bluetooth speakers and headphones add the most delay, often enough to notice; wired headphones or the built-in speakers respond fastest.

Where does the piano sound come from?

It is a real recording: the Salamander Grand Piano, a Yamaha grand sampled by Alexander Holm and shared under the Creative Commons Attribution 3.0 licence. Each key plays the closest recorded note, gently adjusted to the right pitch.

Can I connect a MIDI keyboard?

Yes, in Chrome, Edge, Opera and Firefox on a computer or Android. Plug in a USB or Bluetooth MIDI keyboard, press Connect MIDI keyboard and allow MIDI access. Every key plays, how hard you press changes the volume, and a sustain pedal works too. Safari does not support web MIDI, so the button does not appear there.

Does it work offline?

Once the page and the piano sound have loaded, the sound plays from your device, so short connection drops don’t interrupt playing. Moving to a new octave loads the notes for that part of the keyboard.

Last updated · About DeviceCheckHub