Play piano. Anywhere.

A free online piano — seven instruments, no install, no sign-up. Just play.

Tap a key to play
Sustain · Space
Octave 0
Transpose 0
Key Layout

Tap any heading below to open its guide.

How to play the online piano

You can play this online piano three ways: click the keys with your mouse, tap them on a touchscreen, or press the keys on your computer keyboard. Every key sounds the moment you trigger it — there is nothing to load, install, or sign up for. The whole instrument lives on a single page: choose a sound from the tabs above, and the one keyboard below serves all seven instruments. To get started, the middle of the piano keyboard is mapped to the middle of your computer keyboard, so the note C4 sits under M and the surrounding notes sit under the surrounding keys. Hold a key and the note sustains; let go and it rings out and fades on its own, the way a real instrument does.

Computer keyboard to piano notes: how it maps

This virtual piano maps the physical keys of your computer keyboard onto three octaves, from C3 up to B5 — 21 white keys and 15 black keys. It reads the physical key you press, not the character it types, so the mapping is identical whatever your language or keyboard layout. On the default Wide1 layout the middle octave lands under your right hand: C4 = M, D4 = , or Q, E4 = . or W, F4 = / or E, G4 = R, A4 = T and B4 = Y. The octave above keeps going with C5 = U, D5 = I and E5 = O, while the lower octave falls under the left hand from C3 around Z, X, C and V.

Three layouts are available through the Key Layout control at the bottom of the page. Wide1 and Wide2 spread the full three octaves across the whole keyboard for two-handed playing, while Narrow focuses on a single octave, C4 to F5, under the home-row keys A through ' — friendlier for beginners. Switch layouts and the label on every key updates to match. To see exactly which keys form a given sound, the piano chords and piano scales pages highlight the keys for each chord and scale on this same keyboard.

Octave and transpose

Two controls below the keyboard shift the whole instrument at once. Octave moves every key up or down by a full octave — twelve semitones — in a single step. Reach for it when a melody runs past the top or bottom of the visible keys, or to drop a bass line an octave lower. Transpose shifts every key by one semitone at a time; twelve steps of transpose equal one octave. Transposing is how you play piano online in a different key without relearning the fingering, or accompany a singer whose comfortable range sits a few steps away from the original. Each control shows its current value in the centre, and all seven instruments and all three layouts follow it together.

The sustain pedal (hold Space)

A real piano has a sustain pedal that lets notes keep ringing after your fingers leave the keys. Here you get the same effect by holding down the Space bar — it works as the right pedal. With Space held, a note you play will not stop the moment you release its key; it keeps ringing and slowly fades, exactly as it would with the pedal down on an acoustic piano. Let go of Space and released notes stop promptly again. It is ideal for slow, flowing passages and for letting one chord melt into the next. The Sustain indicator lights up gold the instant the pedal engages, so you always know its state.

Seven real instruments

Where a toy synthesizer fakes every sound with a single waveform, this online piano plays seven real, sampled instruments drawn from a General MIDI soundfont, each chosen for a different mood:

Piano

A clear, even grand piano. The default, and the right pick for almost anything.

Rhodes

A warm electric piano with a bell-like attack and a soft, woolly body. The voice of jazz, neo-soul and seventies funk.

Organ

A sustained tonewheel organ that holds a note for as long as you hold the key, with no decay. Built for gospel, rock and filling out a mix.

Music Box

A delicate plucked-metal tinkle that fades fast. Whimsical, and perfect for lullabies and gentle tunes.

Synth

A bright, sustained lead. Modern and flexible, for pop hooks and ambient pads.

Harp

Plucked strings with a long, shimmering decay. Lyrical and cinematic.

Marimba

Wooden bars with a soft, woody attack and a gentle ring. Bright, percussive and playful.

Tap a tab above to switch instruments in an instant — the keyboard and every note you have learned stay exactly where they are; only the tone changes. To hear real melodies on each, try the easy piano songs, where every piece plays back note by note, or read the blog for longer guides.

Record and download your performance

Everything you play can be captured. Press Record and the online piano recorder starts saving your performance — the timer counts up while it listens. Play freely: run a chord progression, improvise over a scale, or keep time with the metronome. Press Record again to stop, then Play to hear it back before you commit. Happy with the take? Press Download to save it as an MP3 file on your device.

Recording happens entirely inside your browser. The audio is encoded to MP3 on your own machine and is never uploaded to any server, so what you play stays private — see the privacy policy for the full details. Whatever you record belongs to you.

Frequently asked questions

Do I need to install anything to play?

No. Keyboard Play runs entirely in your browser. There is no app to install and no account to create — open the page and play.

Can I really play piano with my computer keyboard?

Yes. The keys of your computer keyboard are mapped onto the piano, so you can play piano with your computer keyboard just as easily as with a mouse. The default Wide1 layout puts the middle octave under M, R, T and the keys around them.

Does it cost anything?

Nothing. The online piano is free to play, and exporting your recordings as MP3 is free too.

Does it work on a phone or tablet?

Yes. On a touchscreen you tap the keys directly, and on a computer you can use the mouse, touch or the computer keyboard. The layout adapts to small screens.

What is the best way to learn a song?

Open a song on the songs page, press Play song to hear it, then follow the letter notes — each box is one key on your keyboard — and play along at your own speed.

Can I play with a MIDI keyboard?

Yes. In supporting browsers such as Chrome and Edge, you can connect an external MIDI keyboard and play with real velocity — the keys you press sound the moment you press them, just like the on-screen keyboard. On browsers without Web MIDI support, the mouse, touch and computer keyboard all work as usual.