Online Piano Keyboard: Play, Record & Practice 

A Virtual Keyboard

What Is an Online Piano Keyboard?

Our online piano keyboard gives you a fully playable instrument directly in the browser.

The keyboard includes six instrument voices — Piano, Electric Piano, Organ, Strings, Brass, and Synth — with reverb control to adjust the room sound, a sustain toggle that mimics a damper pedal, and a built-in chord mode that turns single keypresses into full Major triads. You can play by clicking or tapping the keys directly, or use your computer keyboard with a mapped layout that mirrors a real piano arrangement.

The recording feature is what sets this tool apart from simpler online piano keyboards. Hit Record, play your melody, and the tool captures it as an audio file you can play back or download. This makes it useful for composers who want to capture ideas quickly, teachers who want to demonstrate a phrase, or students who want to hear their own playing back.

The metronome keeps time while you play. Set your BPM, toggle the click track on or off, and use the octave shift controls to move up and down the range. Note labels on the keys show C4, D4 and other positions so you always know where you are on the keyboard.

If you would like to try generating music in other ways, try our melodic writer keyboard and experimental music keyboard.

Loading piano samples...
Instrument
Octave C4-C5
Vol
Reverb
BPM
0:00

Keys: A-K play notes • Z/X shift octave • Space toggles sustain

How to play the keyboard

  • Mouse/Touch: Click or tap the keys directly. It supports multi-touch on mobile devices.
  • Computer Keyboard: The tool maps specific keys to musical notes so you can play without a mouse.
    • White Keys: ASDFGHJK
    • Black Keys: WETYU
    • Note: The mapping mimics a piano layout (e.g., W is the black key between A and S). The keys are marked on the piano keyboard.

Keyboard Controls

  • Z: Shift Octave Down.
  • X: Shift Octave Up.
  • Spacebar: Toggle Sustain (notes fade out slowly, like a damper pedal).

Sound Engine Settings

  • Instrument: Select from 6 enhanced voices (Piano, Electric Piano, Organ, Strings, Brass, Synth).
  • Vol: Master volume slider.
  • Reverb: Adjusts the “room ambience.” Slide right for a larger, echoey hall sound; left for a dry studio sound.
  • Chords: When active, pressing a single key plays a full Major triad (Root + 3rd + 5th).
  • Labels: Toggles the note names (C4, D4, etc.) on the keys.

Recording

  1. Click ● Rec.
  2. Play your melody. The timer will start running.
  3. Click ■ Stop when finished.
  4. An audio player will appear below the controls. You can play back your recording or download it (via the three dots on the player).
  5. Click Clear to discard the recording and start over.

Metronome

  • BPM: Type a number to set the speed (Beats Per Minute).
  • Metro: Toggles the click track on/off.

A Few Notes

  • Browser Support: This tool uses a sound database. It works on all modern browsers (Chrome, Firefox, Safari, Edge). It will likely not work on Internet Explorer.
  • Audio Permissions: Browsers often block audio from auto-playing. If you don’t hear sound immediately, click anywhere on the page or interact with a slider to “wake up” the browser.