โ† Back to OneToolkit
๐ŸŽน

Virtual Piano

Two octaves. Click, tap, or use your keyboard.

Keyboard: A S D F G H J (white) · W E T Y U (black) · shift for upper octave

Virtual Piano โ€” Play Online, No Download Needed

The virtual piano lets you play music directly in your browser using your mouse, touchscreen, or computer keyboard. It covers two full octaves and synthesises sound using the Web Audio API โ€” a modern browser feature that generates audio without any plugins or downloads.

Keyboard mapping

The white keys on the lower octave are mapped to A S D F G H J. The black keys are mapped to W E T Y U. The upper octave white keys use K L ; and the upper black keys use O P. This mirrors the layout of a standard piano keyboard.

Sound options

Choose from four sound types: Piano-like (triangle wave with lowpass filter, closest to a real piano), Soft (pure sine wave, gentle and smooth), Retro (square wave, classic 8-bit sound), and Bright (sawtooth wave, rich and buzzy). The tone decays naturally after you release a key.

Octave selection

Use the Octave selector to shift the keyboard range up or down. C4 (middle C) is the default starting note. Lower octaves produce deeper sounds; higher octaves produce brighter, higher-pitched notes.