Online Virtual Piano — Scales, Chords, Recorder & 6 Voices
A free browser-based piano with 88 keys, computer keyboard mapping, sustain pedal, 6 instrument voices, scale highlighter, chord helper, octave shift, and a built-in note recorder. No download, no signup, no audio files — all sound synthesised in real time with the Web Audio API.
Play with keyboard, mouse or touch
Rate this tool
What makes this virtual piano different from virtualpiano.net and recursivearts
Getting started with the virtual piano
LazyTools vs other free online pianos
| Feature | LazyTools | virtualpiano.net | recursivearts | onlinepianist | online-piano.io |
|---|---|---|---|---|---|
| Scale highlighter | ✅ 7 scales | ❌ No | ❌ No | ❌ No | ❌ No |
| Chord helper (hear + highlight) | ✅ 9 chords | ❌ No | ❌ No | ❌ No | ❌ No |
| Built-in recorder | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
| Multiple voices | ✅ 6 voices | ❌ Piano only | ✅ Several | ✅ 30+ sounds | ✅ Several |
| No audio samples download | ✅ Synthesised | ❌ Samples | ❌ Samples | ❌ Samples | ❌ Samples |
| Sustain pedal | ✅ Space bar | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
| Octave shift | ✅ Tab key | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
| No signup required | ✅ Always | ✅ Yes | ✅ Yes | ❌ Account for features | ✅ Yes |
| Mobile multi-touch | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Piano scales and chords — quick reference for the virtual piano
| Scale | Intervals (semitones) | Notes in C | Best for |
|---|---|---|---|
| Major | 0-2-4-5-7-9-11 | C D E F G A B | Happy, bright melodies, most popular songs |
| Natural Minor | 0-2-3-5-7-8-10 | C D Eb F G Ab Bb | Sad, emotional pieces, rock, classical |
| Pentatonic | 0-2-4-7-9 | C D E G A | Improvisation, no wrong notes, rock solos |
| Blues | 0-3-5-6-7-10 | C Eb F F# G Bb | Blues, jazz, expressive bends and licks |
| Dorian | 0-2-3-5-7-9-10 | C D Eb F G A Bb | Jazz, funk, minor with brighter feel |
| Mixolydian | 0-2-4-5-7-9-10 | C D E F G A Bb | Rock, country, blues-rock, dominant sound |
Virtual Piano Guide — Scales, Chords, and Getting Started
A virtual piano is a browser-based instrument that lets you play piano sounds using your computer keyboard, mouse, or touchscreen. Unlike apps that require installation, a browser-based virtual piano loads instantly and runs entirely inside your browser using the Web Audio API. Sounds are synthesised in real time using oscillators — no large audio sample libraries need to be downloaded.
How to read the keyboard mapping
The QWERTY keyboard is arranged in rows, which happen to map naturally to the piano layout. The A–; row plays the white keys of the middle octave (C4 to B4). The W, E, T, Y, U keys above it play the black keys in that octave. The Q–P row plays the next octave up. The Z–M row plays the octave below. This gives you comfortable access to two-plus octaves at once. Press Tab to shift the entire mapping up or down an octave to reach higher or lower notes.
Using the scale highlighter to improvise
One of the hardest parts of learning piano is knowing which notes to play and which to avoid. The scale highlighter solves this by lighting up only the keys that belong to the chosen scale. Select C Major, for example, and only the seven white keys in each octave are highlighted. Play any highlighted key in any order and it will always sound musical — you literally cannot play a wrong note within the scale. This is exactly how many beginner-friendly piano apps and learning tools work, but here it is built directly into the keyboard display.
Understanding chord shapes on the piano
A chord is three or more notes played simultaneously. On the piano, the most common chords follow simple patterns. A major chord is the root note, plus 4 semitones up, plus 3 more semitones (intervals: 0, 4, 7). A minor chord replaces the 4 with 3 (intervals: 0, 3, 7). The Chord Helper shows these patterns for any root key and highlights the exact keys to press, so you can learn chord shapes visually before memorising them.
How the Web Audio API synthesises piano sounds
Each voice in this virtual piano uses a combination of oscillator nodes, gain nodes, and ADSR (attack, decay, sustain, release) envelopes created via the Web Audio API. The Grand Piano voice uses a triangle wave with a fast attack and long decay. The Organ holds a continuous tone with no decay. The Harp uses a plucked envelope that fades quickly. The Strings voice has a slow attack to simulate bowing. No pre-recorded samples are used, which means the page loads instantly and works fully offline once cached.
Virtual piano — 8 questions answered
A plays C4 (middle C). S, D, F, G, H, J, K, L play D, E, F, G, A, B, C5. W, E, T, Y, U play the black keys. Q-P plays the upper octave. Z-M plays the lower octave. Space = sustain. Tab = shift octave.
The sustain pedal (Space bar) keeps notes ringing after you release the keys. It simulates the damper pedal on a real piano and is essential for smooth, connected playing. Toggle it with the Space bar or the Sustain button.
Grand Piano, Electric Piano, Organ, Harp, Strings, and Vibraphone. Each uses different Web Audio API oscillator waveforms and ADSR envelopes. No audio sample downloads required.
Select a root note and scale type. Keys belonging to that scale light up blue. Play only highlighted keys to always stay in key. Great for improvisation and learning which notes go together.
It shows 9 common chords for the selected root key. Click any chord to hear it and see its keys highlighted green. Helps you learn chord shapes by seeing exactly which keys to press.
Yes. Click Record, play your melody or chords, click Stop, then click Play to hear it back. Every note and its timing are captured, including chords and sustain.
Yes. Tap keys directly on the touchscreen. Multiple keys can be tapped simultaneously for chords. The keyboard scrolls horizontally to reach all octaves. Works on iOS and Android browsers.
LazyTools Virtual Piano is 100% free with no download, no account, and no signup. All sound is synthesised in real time in your browser. No audio files are downloaded.