Browser Instrument

Free Online Piano Keyboard

An online piano keyboard is a virtual instrument you can play with touch, mouse, or computer keys. Practice notes, build chords, shift octaves, and use sustain instantly—no download or account needed.

Play the virtual piano

Click a key to start audio. Use the labels to play from your computer keyboard.

C octave 4

Audio

Tap a key to begin

Playing now

No notes

Recent notes

Your melody appears here

Quick start

How to play piano online

  1. 1

    Start the piano

    Click or tap a piano key once to allow browser audio.

  2. 2

    Play notes and chords

    Use the on-screen keys or the matching computer-key labels.

  3. 3

    Shape the sound

    Adjust the octave, volume, and sustain controls while you play.

  4. 4

    Release the instrument

    Turn off sustain or select Stop all notes to silence every note.

Computer keyboard map

The lower row plays white keys and the upper row fills in the black keys. Hold several at once to make a chord.

A
W
S
E
D
F
T
G
Y
H
U
J
K
O
L
P
;

Online piano keyboard FAQ

What is an online piano keyboard?

An online piano keyboard is a browser instrument that turns clicks, touches, or computer-key presses into piano notes. It lets you practice notes and chords without downloading software or owning a physical keyboard.

Which computer keys play the virtual piano?

Use A, S, D, F, G, H, J, K, L, and semicolon for white keys. Use W, E, T, Y, U, O, and P for the black keys, following the same pattern as a piano.

Can I play chords on this online piano?

Yes. The instrument is polyphonic, so you can hold several computer keys or touch multiple piano keys at once to play chords.

How does sustain work?

Turn on Sustain or press the Space bar. Notes will keep ringing after you release them until sustain is turned off or you use Stop all notes.

Does the piano record or upload what I play?

No. Sound is generated with the Web Audio API in your browser. Your notes are not recorded, uploaded, or saved.

Keep learning and creating with Zap Code.

Build your own music app