Online Piano — Free Virtual Piano Keyboard

Play piano instantly in your browser. 5 instrument sounds, computer keyboard support, record and playback. No download required.

Octave 3
Vol
ZC3
XD3
CE3
VF3
BG3
NA3
MB3
QC4
RD4
FE4
IF4
OG4
PA4
;B4
KC5
LD5
E5
S
D
G
H
J
W
E
T
Y
U

Use your computer keyboard to play. Z-M = lower octave, Q-L = upper octave. Space = sustain.

Pro Tips

  • Keyboard shortcuts: Bottom row (Z-M) plays the lower octave, top row (Q-P) plays the upper octave. Black keys are on S, D, G, H, J (lower) and W, E, T, Y, U (upper).
  • Sustain pedal: Press spacebar to toggle sustain on/off. With sustain on, notes ring out for much longer, just like a real piano's damper pedal.
  • Record your melodies: Hit Record, play your piece, then Stop. Use Play to hear it back with visual key highlights. Great for practice and composition.
  • Try different instruments: Each instrument has a unique tone color. The organ sustains endlessly, the marimba has a sharp percussive attack, and the electric piano adds a bright Rhodes shimmer.
  • Octave shifting: Use the octave buttons to move the keyboard up or down. The full range spans C1 to C7, covering the entire piano range.

Last updated: March 2026

Play Piano Online for Free

Over 5 million people search for "online piano" every month. Whether you're a beginner learning your first scales, a musician away from your instrument, or just looking to unwind with some music, a browser-based piano gives you instant access to a playable keyboard without installing anything.

This virtual piano uses Tone.js, a professional-grade Web Audio library, to generate rich, responsive sound directly in your browser. Unlike MIDI-based solutions that rely on pre-recorded samples, synthesized sound means zero loading time and instant response to every key press. The five instrument voices — Grand Piano, Electric Piano, Organ, Synth, and Marimba — each use different synthesis techniques to produce distinct tonal characteristics.

The keyboard spans 2.5 octaves by default (C3 to E5), which covers the most commonly played range for melodies and basic chord progressions. Octave shift buttons let you move the entire keyboard up or down to access the full C1 to C7 range, giving you the same span as a standard 88-key piano.

How to Use the Computer Keyboard

Your QWERTY keyboard becomes a musical instrument. The bottom row (Z through M) maps to the white keys of the lower octave: Z=C, X=D, C=E, V=F, B=G, N=A, M=B. The keys above them (S, D, G, H, J) play the corresponding sharps and flats.

The upper row starts at Q for the next octave's C, continuing through the alphabet. Black keys in this range use W, E, T, Y, and U. This two-row layout mimics the spatial relationship of a real piano — lower notes on the left, higher notes on the right, with sharps positioned "above" their naturals.

Press spacebar to toggle sustain. When sustain is active, notes ring out for much longer after you release the key, just like pressing the damper pedal on a real piano. This is essential for creating smooth, connected chord progressions and legato passages.

Understanding the Five Instrument Sounds

Grand Piano uses a triangle wave oscillator with a warm, natural envelope — a quick attack with a long, gentle decay that mimics how a hammer strikes a piano string and lets it resonate. This is the most versatile sound for classical pieces, pop songs, and general practice.

Electric Piano is built on FM synthesis, producing the bright, bell-like tone associated with the Fender Rhodes and Wurlitzer electric pianos. It excels at jazz chords, neo-soul progressions, and lo-fi beats. The modulation creates harmonic overtones that give the sound its characteristic shimmer.

Organ uses AM synthesis with high sustain, creating a continuous, warm tone perfect for held chords and hymn-style playing. Synth employs a sawtooth wave for that classic synthesizer sound, great for lead lines and electronic music. Marimba has the sharpest attack and quickest decay of all five, producing a percussive, wooden tone ideal for melodic patterns and rhythm exercises.

Frequently Asked Questions

Can I use my computer keyboard to play?

Yes, your QWERTY keyboard maps directly to piano keys. The bottom row (Z through M) plays the lower octave white keys, while the top row (Q through L) plays the upper octave. Black keys are mapped to S, D, G, H, J for sharps in the lower octave, and W, E, T, Y, U for the upper octave. Hold a key to sustain a note, release to stop.

What instruments are available?

There are five instruments to choose from: Grand Piano (warm, classic tone), Electric Piano (bright Rhodes-style sound), Organ (sustained, warm chords), Synth (modern sawtooth wave), and Marimba (sharp percussive attack with quick decay). Switch between them instantly using the instrument buttons above the keyboard.

Can I record what I play?

Yes, the built-in recorder captures every note you play along with its timing and duration. Press Record to start, play your piece, then press Stop. Press Play to hear it back — the piano keys will light up during playback so you can see exactly what was played. You can record as many times as you like.

Does it work on phones and tablets?

Yes, the piano is fully touch-enabled. On mobile devices, the keyboard automatically adjusts to 1.5 octaves with octave shift buttons to access the full range. Multi-touch is supported, so you can play chords by pressing multiple keys simultaneously. The keys are sized for comfortable finger tapping.

Do I need to install anything?

No installation required. The piano runs entirely in your browser using Tone.js, a professional Web Audio library. It works on Chrome, Firefox, Safari, and Edge. Just open the page and start playing — the sound engine initializes on your first click or keypress.

Related Tools