Online Virtual Piano Keyboard

Play piano with mouse or keyboard, switch tones, record and playback

Zero Dependencies · Works Offline
🎹 Virtual Piano
🔒 All audio synthesized locally in your browser, no audio files downloaded

What Can the Virtual Piano Do?

The online virtual piano keyboard is a free browser-based instrument powered by Web Audio API. Play instantly without installing any software. Supports both mouse clicks and keyboard shortcuts, multiple tones, and recording/playback.

Core Features

How to Use

  1. Select your preferred tone (Piano/Organ/Synth/Strings)
  2. Play by clicking keys or using keyboard shortcuts
  3. Keyboard mapping: White keys = A S D F G H J K L ; Black keys = W E T Y U O P
  4. Adjust volume with the slider
  5. Switch octaves for different pitch ranges
  6. Click Record to save your performance, then Playback

Use Cases

Music Learning

Beginners can practice scales and simple pieces on the virtual piano, familiarizing themselves with keyboard layout and intervals as a foundation for learning real piano.

Improvisation

Music creators can quickly try out melody fragments to capture inspiration. The recording feature lets you save your improvisations.

Classroom Demonstration

Music teachers can use the virtual piano to demonstrate intervals, chords, and scales without carrying a physical instrument.

Extended Knowledge

The virtual piano uses Web Audio API, a native browser audio interface. Tones are generated through OscillatorNode with different waveforms (sine, square, sawtooth, triangle) and shaped using GainNode for ADSR envelopes. Piano tone uses multi-harmonic overlay, strings use vibrato, and synth uses filters. Compared to MIDI pianos, Web Audio is lighter with no sample loading, though slightly less realistic than sampled instruments.

FAQ

Why is there no sound when I press keys?
Make sure the page has focus (click on it once) and your browser allows auto-play audio. Some browsers require user interaction before playing sound.
Can I press multiple keys at once?
Yes. This tool supports multiple simultaneous key presses for playing chords. However, keyboard hardware has key conflict limits, so some combinations may not register simultaneously.
Does it work on mobile?
Yes. Use touch to tap piano keys on mobile. Keyboard shortcuts are not available on mobile. Landscape mode is recommended for the best experience.
Can I download recorded audio?
The current version only supports playback of recorded key sequences, not audio file export. WAV/MP3 export is planned for a future version.

Virtual Piano Keyboard | No Signup, Client-Side · No Server Uploads

Feedback: dexshuang@google.com