Virtual Piano Online

Play a 61-key piano with the mouse, a touch screen, your computer keys or a MIDI keyboard, hold sustain, switch sounds and save what you play as a MIDI file. The notes are made on your device and nothing you play is uploaded.

The notes are made on your device and your takes stay in memory in this tab. MIDI access is used only to read your keyboard, and nothing you play or record is sent anywhere.

Keep time with the Metronome

About Virtual Piano

The Virtual Piano is a 61-key keyboard from C2 to C7 that you can play in several ways at once: click or touch the keys, slide a finger across them for a glissando, press letters on your computer keyboard, or connect a MIDI keyboard. Hold Space for the sustain pedal and each note keeps ringing until you let go. Pick a grand piano, electric piano, organ, synth or bell, each built in your browser from a handful of harmonics, with a filter that opens for higher notes and harder presses. While you hold keys the tool names the notes and spots chords such as C major or G7. Record a take, play it back with its original timing and download it as a standard MIDI file for a music program. Every sound is generated on your device.

Features

  • 61 keys from C2 to C7 in a keyboard that scrolls sideways inside its own box, so a phone screen never scrolls the page
  • Mouse, touch and glissando: slide across the keys, and several fingers can play a chord
  • Computer keys in two rows, Z to M and Q to U, plus I 9 O 0 P, with an octave shift from minus 2 to plus 2
  • Sustain with the space bar or an on-screen pedal, so notes keep ringing until you let go
  • Five sounds, grand piano, electric piano, organ, synth and bell, with a volume control and optional reverb
  • A readout of the notes you hold and the chord they make, from triads to seventh chords
  • Recording with exact-timing playback and a download as a Standard MIDI File
  • A MIDI keyboard and its sustain pedal can play the same sounds in Chrome or Edge

How to use the Virtual Piano

  1. Click or tap the keys, slide across them, or press Z to M and Q to U on your computer keyboard
  2. Hold Space for sustain, press the up and down arrows to change octave, and choose a sound from the menu
  3. Press Record, play, then press Stop, and use Play to hear the take again
  4. Press Download MIDI to open the take in a music program, or connect a MIDI keyboard to play with real keys

Example

Input

Octave 0 · sound: Grand piano
Press Q, E, R, T one after another and hold Space for the last note
Then hold Q, E and T together

Output

Q → C4 · E → E4 · R → F4 · T → G4 (kept ringing by Space until you let go)
Q + E + T held together → notes C4 E4 G4 · chord C major

At the default octave the Q row starts on middle C and the Z row below it plays the octave underneath.

Common errors & troubleshooting

  • No sound comes out when I press a key. — Browsers keep audio off until you interact with the page, so click the keyboard or press a key once. Then check that the tab is not muted, your volume is up and, on a phone, that the silent switch is off.
  • The piano sounds late or crackles. — Close other tabs and audio programs, use wired headphones because Bluetooth adds delay, and release the sustain pedal now and then. The page can only use the audio speed your device allows.
  • A chord drops notes on my laptop. — Many laptop keyboards cannot register more than a few keys at once, a hardware limit often called ghosting. Play part of the chord with the mouse or touch screen, or use a MIDI keyboard.
  • The computer keys play notes that do not match the letters I see. — Keys are matched by their position, not their letter, so on AZERTY or QWERTZ keyboards the notes sit where they do on QWERTY. Choose Letters under Show on keys to read the real key on each note.

Frequently asked questions

Which computer keys play which notes on the Virtual Piano?
The lower row Z S X D C V G B H N J M plays one octave from C to B, with S D G H J as the black keys. The upper row Q 2 W 3 E R 5 T 6 Y 7 U plays the octave above, and I 9 O 0 P carry on up to E. Keys follow their position on the keyboard, so the map is the same on AZERTY and QWERTZ layouts.
How do I play chords and use sustain on the Virtual Piano?
Press several keys together, using the keyboard, the mouse or several fingers on a touch screen. Hold Space, or switch on the on-screen pedal, and each note keeps ringing after you let go until the pedal comes up. Striking a note again during sustain restarts it. While three or more notes are held, the readout names the chord, for example C major or G7.
Can I record what I play on the Virtual Piano and save it?
Yes. Press Record, play, then Stop. Play replays the take with its original timing, and Download MIDI writes a Standard MIDI File that opens in notation and music-production programs. Sustain shows up as longer notes in the file. The take is kept in memory in this tab only, and a new recording replaces it.
Does the Virtual Piano work with a MIDI keyboard?
In Chrome and Edge, yes. Press Connect MIDI keyboard and allow access, and the keys, press strength and sustain pedal of a USB or Bluetooth MIDI keyboard play the sound you chose. Browsers without Web MIDI, such as Safari, cannot connect one, but the on-screen keys and computer keys still work.
Why is there a delay or crackle when I use the Virtual Piano?
The delay comes from your device's audio output, which is longer on Bluetooth headphones and some laptops. Crackle means the device is struggling, often because many tabs or audio programs are open or a lot of notes are ringing at once. Close other audio apps, use wired headphones and release the pedal to let notes end. The page shows the delay your device reports.
How many keys does the Virtual Piano have and how do I change octave?
It has 61 keys, from C2 to C7, which is five octaves. On a small screen scroll the keyboard sideways, or swipe the octave strip above the keys. The octave buttons or the up and down arrow keys move the computer keys up or down by as much as two octaves, and the keyboard scrolls to follow.

Related tools

  • Metronome — A steady click from 20 to 300 BPM with time signatures, subdivisions, accents and tap tempo.
  • Guitar Tuner — Tune a guitar, bass, ukulele or violin with your microphone or by ear, with chromatic mode and presets.
  • BPM Counter — Tap a beat to find its BPM, or analyze an audio file to detect the tempo of a song.
  • Tone Generator — Generate sine, square, sawtooth and triangle tones from 1 Hz to 20 kHz, with sweeps and left or right channel control.
  • Speaker & Headphone Test — Test left and right speakers or headphones with stereo tones, a frequency sweep, bass and noise.
  • Voice Recorder — Record from your microphone, trim the take and save it as WAV or the original format.
  • Audio Converter — Convert audio between MP3, WAV, FLAC, M4A and OGG with bitrate control.
  • Keyboard Tester — Press any key to light it up on an on-screen keyboard — find dead keys and test rollover.

More Music tools

  • BPM Counter — Tap a beat to find its BPM, or analyze an audio file to detect the tempo of a song.
  • Tone Generator — Generate sine, square, sawtooth and triangle tones from 1 Hz to 20 kHz, with sweeps and left or right channel control.
  • Metronome — A steady click from 20 to 300 BPM with time signatures, subdivisions, accents and tap tempo.
  • Guitar Tuner — Tune a guitar, bass, ukulele or violin with your microphone or by ear, with chromatic mode and presets.

See all Music tools (5) · All tools