The complete guide
Virtual Piano: The Complete Guide to Playing Piano in Your Browser
Everything you need to know about this free online piano — how to play it with your mouse, touchscreen, or computer keyboard, and how to get the most out of practicing without a physical instrument.
What Is a Virtual Piano?
A virtual piano is a playable piano keyboard that runs entirely in your browser, generating every note live with the Web Audio API — a free, built‑in technology supported by every modern browser. There’s nothing to install, no account needed, and no audio files to download; each key press synthesizes its tone on the spot, so you can start playing the moment the page loads.
How to Play
Click or tap any key with your mouse or touchscreen to hear it. You can also play using your computer keyboard, which is faster once you’re used to it and lets you play small chords with multiple fingers at once, just like a real keyboard:
| Row | Keys | Plays |
|---|---|---|
| Lower octave | Z S X D C V G B H N J M | C through B (white + black keys) |
| Upper octave | Q 2 W 3 E R 5 T 6 Y 7 U | Same pattern, one octave higher |
Toggle “Key labels” to show or hide these shortcuts directly on the keys. Use the octave buttons to shift the entire keyboard up or down when you need notes outside the visible range — your computer key bindings stay in the same physical positions, so muscle memory carries over.
Using Sustain and Volume
The Sustain toggle mimics a piano’s sustain pedal: with it off, notes stop quickly the moment you release a key; with it on, notes ring out and decay naturally even after you’ve let go, which is useful for chords, arpeggios, and anything that should blend together. The volume slider controls overall loudness — start low, especially with headphones, and adjust to taste.
What a Virtual Piano Is Good For
- Learning note positions. Seeing the full keyboard laid out helps connect note names to physical positions before you ever touch a real piano.
- Working out chords and melodies. Quickly test an idea, a chord voicing, or a chord progression without needing an instrument nearby.
- Ear-training support. Pair it with Tunerium’s Ear Trainer to play intervals and chords yourself and check your recognition against what you intended to play.
- Practicing anywhere. A laptop and a browser tab are all you need — useful while traveling or when you don’t have access to a physical keyboard.
Tips for Playing Comfortably
- Use the computer keyboard for faster playing and simple chords — it’s hard to click three notes at once with a mouse.
- Turn Sustain on for slow, expressive playing, and off for fast, clearly separated notes.
- Shift octaves rather than scrolling if you regularly play in a specific range — it keeps the on-screen keys wide and easy to hit.
- On a touchscreen, you can slide your finger across multiple keys for a quick glissando effect.
Frequently Asked Questions
How do I play this virtual piano?
Click or tap any key with your mouse or touchscreen, or use your computer keyboard — the Z through M row plays one octave, and the Q through U row plays the octave above. Use the octave buttons to shift the whole keyboard up or down.
Is this virtual piano really free?
Yes. Every note is synthesized live in your browser using the free, built‑in Web Audio API — there’s no app to install, no account, and no cost.
Can I use my computer keyboard to play?
Yes. The Z, S, X, D, C, V, G, B, H, N, J, M row plays one full octave, and Q, 2, W, 3, E, R, 5, T, 6, Y, 7, U plays the octave above it, matching the layout used by most virtual piano tools.
What does the sustain toggle do?
It mimics a piano’s sustain pedal. With sustain off, notes stop quickly once you release the key. With sustain on, notes continue ringing and decaying naturally even after you let go.