Virtual Piano

How to play

  1. Click or tap the keys. On a phone or tablet you can play chords with several fingers and slide along the keys for a glissando.
  2. On a computer, the bottom letter row plays the lower octave (Z X C V B N M , are the white keys, S D G H J the black keys) and the top row the octave above (Q W E R T Y U I white, 2 3 5 6 7 black). The keys are matched by position, so this works on any keyboard layout. The arrow keys move the keyboard an octave down or up.
  3. Hold Space (or tap Sustain) for the sustain pedal, which keeps notes ringing after you let go. Switch between piano, electric piano and organ sounds, and show or hide the note names.

How it is tuned and how it sounds

Every key uses twelve-tone equal temperament with A above middle C at 440 Hz, the standard concert pitch set by ISO 16: each semitone is the twelfth root of two higher than the one below, so middle C is 261.63 Hz and the top C of a full piano 4,186.01 Hz. The sounds are made in your browser by Web Audio rather than played from recordings. The piano voice adds eight overtones that fade faster the higher they are, and stretches them very slightly sharp, as the stiffness of real piano strings does; the electric piano has a bell-like overtone and the organ holds steady while the key is down. Notes start as soon as the browser hears the key or touch, so how quickly you hear them also depends on your device’s audio output; wired headphones are usually quicker than Bluetooth.

What we tested

On October 15, 2026, in Chromium: the frequency of all 88 piano keys matched the equal-temperament formula computed in high precision. We recorded 19 notes from C1 to C7 in each of the three sounds and measured the strongest low peak of each recording: it was always the note’s fundamental, within 0.175 cents (a hundredth of a semitone is one cent). Pressing the 26 letter and number keys played the two octaves in order; sliding the mouse from C4 to D4 played both; three fingers touching C, E and G at once on a 390 px phone screen played all three.

Sources

Frequently Asked Questions

How do I play the virtual piano with my keyboard?+
Use the bottom letter row (Z to ,) for the lower octave and the top row (Q to I) for the upper one; S D G H J and 2 3 5 6 7 are the black keys. Arrow keys change octave and Space is the sustain pedal.
Can I play chords on a phone?+
Yes. Touch several keys at once, or slide a finger along the keys.
Is the piano in tune?+
Yes. It uses equal temperament with A4 = 440 Hz; in our tests every note's fundamental was within a fraction of a cent of the correct pitch.
Why is there a delay before I hear a note?+
Notes start immediately, but every device adds some audio output delay. Wired headphones or speakers are usually faster than Bluetooth.
Do I need to install anything?+
No. The sounds are generated in your browser and nothing is uploaded.

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service