Virtual Piano
Play a two-octave piano keyboard online with your mouse, touchscreen, or computer keyboard — real sound, demo songs, and note labels, all in your browser.
Piano Keyboard
Computer keyboard: A S D F G H J K play the white keys C4–C5 (sharps on W E T Y U), and K O L P ; ' continue into the next octave. On mobile, drag the keyboard sideways to scroll. Everything is synthesized locally in your browser — nothing is recorded or uploaded.
Quick Answer
Our virtual piano is a free online piano keyboard you can play instantly in your browser — no download or sign-up. Click the keys with your mouse, tap them on a touchscreen, or use your computer keyboard (A for C4, W for C#4, and so on). You get two full octaves, natural decaying piano tones, note-name labels, built-in demo songs, and an octave shift — all running entirely on your device.
How It Works
Press any key with your mouse or finger — the first press unlocks sound and plays the note
Play melodies with your computer keyboard: A=C4, W=C#4, S=D4, E=D#4, with the white keys running along A S D F G H J
Use the octave shift buttons to move the computer-keyboard mapping up or down an octave
Toggle note names (C4 notation) and key hints to learn which key is which
Pick a demo song — Ode to Joy, Twinkle Twinkle, or Happy Birthday — and watch the keys light up
Key Facts
- Two full octaves (C4–C6): 15 white keys and 10 black keys
- Play with mouse, touchscreen, or computer keyboard using the standard A-W-S-E-D-F mapping
- Octave shift buttons move the computer-keyboard range up or down an octave
- Built-in demos — Ode to Joy, Twinkle Twinkle Little Star, Happy Birthday — with live key highlights
- Toggle C4 note-name labels and computer-key hints directly on the keys
- Polyphonic voices with natural decay: hold chords and notes ring out instead of cutting off
- 100% client-side: sound is synthesized in your browser, no sign-up, nothing uploaded
Frequently Asked Questions
Can I learn piano on a computer keyboard?
Yes, for the fundamentals. A computer-keyboard piano is a great way to learn note names, simple melodies, basic chords, and how songs are structured — the built-in demos show you exactly which keys to press. What it cannot teach is touch dynamics and finger strength, because computer keys have no weighted resistance. Once melodies feel natural, move to a real or MIDI keyboard for technique.
Which computer keys play which piano notes?
The mapping follows the standard layout: A plays C4, W plays C#4, S plays D4, E plays D#4, D plays E4, F plays F4, T plays F#4, G plays G4, Y plays G#4, H plays A4, U plays A#4, and J plays B4. The next section of the same row continues up: K plays C5, O plays C#5, L plays D5, P plays D#5, and semicolon plays E5. Use the octave shift buttons to move this range up or down.
Does the piano work on phones and tablets?
Yes. Every key is touch-enabled, so you can tap out melodies on any smartphone or tablet. On smaller screens the keyboard is horizontally scrollable — just drag it sideways to reach the full two octaves. Sound starts on your first tap.
Why does sound only start after my first click or tap?
That is the browser autoplay policy, not a bug. Chrome, Safari, Firefox, and Edge all block audio until you interact with the page, so the piano creates its audio engine on your first key press. Click or tap any key (or press a computer-keyboard key) once and sound works normally from then on.
How many notes can I play at the same time?
As many as you can hold. The synthesizer creates an independent voice for every key you press, so full chords work fine. Each voice decays naturally like a real piano string — when you let go, the note fades out instead of stopping dead, and released voices never drone on.
Is this virtual piano really free?
Completely. No sign-up, no limits, no watermark, and no audio or personal data leaves your device — every note is generated locally in your browser with the Web Audio API. Once the page has loaded, it even keeps working offline.