Online Virtual Piano — Play Piano Online With Your Keyboard

~/online-virtual-piano hand synth chord chart chord pad ☕ Support me apps ← about me
Play, record and learn piano with your computer keyboard — 20 instruments incl. a real sampled grand, 73 keys, real dynamics, MP4 export, no install. 🎹
Drop the .mid file to load it as a song
Type Z X C V B N M and Q W E R T Y U  ·  ← / → octave  ·  Shift = sustain  ·  [ ] transpose  ·  K metronome

A piano you play by typing

Online Virtual Piano turns your computer keyboard into a playable instrument. Two rows of keys are mapped to 2.4 octaves — enough to play real melodies without constantly shifting position. The default Real Grand plays recordings of a real concert grand; the other instruments are synthesised live in your browser.

There are 20 instruments, grouped like the sound menu of a keyboard. Real Grand is a sampled Yamaha C5 concert grand with three velocity layers, and twelve more are recorded too: Rhodes Electric Piano, FM Electric Piano, Drawbar Organ, Accordion, String Ensemble, Choir Pad, Warm Synth Pad, Clavinet, Marimba, Concert Harp, Brass Section and a Saw Synth Lead. Sustaining sounds such as organ, strings and pads hold for as long as you keep a key down. The seven modelled voices — Concert Grand, Soft Felt, Bright Upright, Honky-Tonk, Electric Piano, Music Box and Harpsichord — are synthesised live and switch instantly. All of them are loudness-matched, so changing instrument changes the character without a jump in level.

On the modelled voices the tone is computed rather than recorded. Strike harder and the note gets brighter, not just louder, because more upper partials are excited — the single most important thing that makes a piano sound like a piano. Partials are stretched slightly sharp to imitate string inharmonicity, upper partials fade before the fundamental, each note carries a short hammer thump, and bass strings ring for many seconds while the top notes die away quickly.

sampled grand20 instruments73 keysMP4 video exportorgan & strings2.4 octavesvelocity dynamicsconvolution reverblearn modeMIDI exportMIDI file playermetronometransposescale highlightingUSB MIDI inno install

How to play

Z X C V B N MWhite notes, lower octave S D  G H JBlack notes, lower octave Q W E R T Y U I O PWhite notes, upper octave 2 3  5 6 7  9 0Black notes, upper octave ← / →Octave down / up Shift / SpaceHold for sustain pedal - / =Softer / harder touch (the keys right of 0) [ / ]Transpose down / up a semitone KMetronome on / off LCycle key labels: both · notes · keys · off EscExit fullscreen

Guide — play your first tune in under a minute

No install, no account. Put your hands on the keyboard and start typing notes.
1Press a key

Type Z–M for the lower octave and Q–P for the one above. The first key press starts the sound. You can also click or tap the keys.

2Pick an instrument

Open Instrument and choose from 20 sounds. The sampled Real Grand is the default.

3Set touch and pedal

Tap - / = to play softer or harder, hold Shift or Space for sustain and move the octave with ← →.

4Learn a song

Pick a song or open a .mid file. Notes fall to the keys, and Wait for me pauses until you hit each one.

5Record and share

Press Record, play, then stop. Download a .mid file or an .mp4 video, or copy a share link.

What is in here

KEYS Two rows, 2.4 octaves

Two keyboard rows give you 29 notes at once, enough for most melodies and simple two-hand parts. Keys follow their physical position, so QWERTY, QWERTZ and AZERTY all line up without any setup.

Z–M
White keys, lower octave; S D G H J are its black keys
Q–P
White keys, upper octave; 2 3 5 6 7 9 0 are its black keys
← →
Octave down or up; the cyan strip shows where your hands are
73 keys
E1 to E7 on screen; phones show only the 29 typeable keys
Names
C D E or Do Ré Mi, and the Keyboard layout menu to match your keycaps
SOUNDS 20 instruments

Thirteen are recorded and load once, the first time you pick them. Seven are modelled and switch instantly. All are loudness-matched, so changing instrument changes the tone, not the level.

Pianos
Real Grand, Concert Grand, Soft Felt, Bright Upright, Honky-Tonk
Electric
Rhodes, FM Electric Piano, modelled Electric Piano
Organ
Drawbar Organ, Accordion
Pads
String Ensemble, Choir Pad, Warm Synth Pad
Keys & more
Clavinet, Marimba, Concert Harp, Music Box, Harpsichord, Brass Section, Saw Synth Lead
TOUCH Dynamics, pedal and room

Playing harder makes a note brighter as well as louder. A computer key has no pressure sensor, so you set how hard it strikes; a MIDI keyboard sends real velocity.

- =
Softer or harder touch, or use the Touch slider
Shift Space
Hold for sustain, or latch Sustain in the panel
Room
Reverb from dry to a large hall; each instrument suggests a setting
Above C6
Notes ring on after release, like the undamped top of a real piano
LEARN Falling notes, at your speed

Pick a built-in song or open any MIDI file. Notes fall towards the key you need next. With a MIDI file you choose which part you play and the piano plays the rest.

Songs
Ten public-domain melodies, from Twinkle Twinkle to Für Elise
Wait for me
The song pauses until you play the right note
Tempo
30% to 160% of the original speed
You play
Just listen, all notes, right hand, left hand or one track
PRACTICE Metronome, transpose, scales

The bar above the keys holds the practice tools. They are saved with your other settings.

K
Metronome, 30–240 bpm, tap tempo, 2/4 3/4 4/4 6/8 and a one-bar count-in
[ ]
Transpose a semitone down or up, up to an octave either way
Scale
Tints the notes of a scale blue and the root purple
L
Key labels: both, notes, keys or off
RECORD Keep what you play

Record a take with the sustain pedal, play it back, then take it with you. What you play is yours, with no watermark.

.mid
Standard MIDI file for GarageBand, Logic, Ableton, FL Studio or MuseScore
Video
1280×720 with the real sound; MP4 in Chrome, Edge and Safari, WebM in Firefox
Share
The whole take inside the link, with instrument and room
MIDI in
Connect MIDI for a USB keyboard in Chrome, Edge or Opera

A free online piano you play with your computer keyboard

Online Virtual Piano is a free online piano that turns your computer keyboard into an instrument. Two rows of keys cover 2.4 octaves, there are 20 instruments including a recorded concert grand, and you can learn songs, practise with a metronome, record what you play and export it as MIDI or video. It runs in the browser on a laptop, desktop, tablet or phone. There is nothing to install, no account and no ads.

It is not a replacement for a weighted instrument. No web page can give you the feel of a hammer action under your fingers. What it does is remove everything between you and the notes: nothing to buy, tune or find space for, and a melody you want to try is a few seconds away.

How to play piano with your keyboard

This is sometimes called musical typing. The bottom letter row, Z X C V B N M, plays the white keys of the lower octave, and S D G H J above it are the black keys. The top letter row, Q to P, plays the octave above, with 2 3 5 6 7 9 0 as its black keys. That is 29 semitones without shifting. Use the octave buttons or the arrow keys to move the whole window; a cyan strip on the keyboard shows the part your computer keys reach.

The piano reads the physical position of each key, not the letter it types, so the notes land in the same place on QWERTY, QWERTZ and AZERTY keyboards. The Keyboard layout menu only changes the letters printed on the on-screen keys, including the accented characters on an AZERTY number row. Under Note names you can switch to fixed-do solfège (Do Ré Mi Fa Sol La Si). If your browser language is French, Italian, Spanish, Portuguese or Romanian, that is picked for you on your first visit.

If some notes drop out when you press several keys at once, that is the keyboard hardware, not the page. Many membrane keyboards can only report a few keys at a time in one area (ghosting, or limited key rollover). A mechanical keyboard with N-key rollover or a MIDI keyboard does not have this limit.

A real sampled grand and 19 other instruments

The default Real Grand plays recordings of a Yamaha C5 concert grand from the free Salamander Grand Piano V3 library, sampled every three semitones at three velocity layers, so a soft note and a hard note are different recordings. Twelve more instruments come from the MIT-licensed FluidR3 GM SoundFont: Rhodes, FM electric piano, drawbar organ, accordion, strings, choir, a warm pad, clavinet, marimba, harp, brass and a saw lead. Each loads only when you pick it and is then cached by your browser. Sustaining sounds such as organ, strings and pads are looped, so they hold for as long as you keep the key down.

The other seven are modelled live with the Web Audio API and switch instantly: Concert Grand, Soft Felt, Bright Upright, Honky-Tonk, Electric Piano, Music Box and Harpsichord. Some of them behave in ways that sound odd until you know the instrument:

Every voice was measured across the keyboard and trimmed to the Concert Grand's loudness, so switching instrument does not make a jump in level. Each instrument also sets the Room slider to a sensible amount of reverb (more for a felt piano, less for a bright upright). The slider moves so you can see it, and you can change it straight away.

Velocity, volume and why a piano sounds like a piano

Volume is one control for everything. Velocity is how hard a single note is struck, and on a piano it changes the tone as well as the level: a hard strike excites more upper partials and sounds bright and percussive, a soft one is round and dark. The modelled pianos follow that, and also copy string inharmonicity (partials that sit slightly sharp, the reason pianos are tuned with stretched octaves), a tone that mellows as it rings and a short hammer noise at the start of each note.

From the computer keyboard, notes play at a medium-firm touch. Use the Touch slider or tap - and = (the keys right of 0) to go softer and darker or harder and brighter while you play. Ctrl, Alt and Cmd combinations are ignored on purpose, so a browser shortcut can never fire in the middle of a piece. For continuous dynamics, connect a MIDI keyboard.

How long a note rings depends on where it is. Long bass strings ring for many seconds, the middle register less, and the shortest treble strings die away in a second or two. On an acoustic piano the top octave or so has no dampers for that reason, so high notes keep sounding after you let go. This piano does the same above about C6. Hold Shift or Space, or switch on Sustain, for the pedal; held notes ring on with a little extra resonance, as when the dampers lift on a real piano.

Up to 16 notes can sound at once. When you go past that, the oldest and quietest note fades out first, which you normally do not hear. The cap keeps long pedalled passages from overloading the audio and crackling.

Learn piano online with falling notes

Pick a song under Learn a song and the notes fall down the screen towards the keyboard, lighting each key as it lands. You do not need to read staff notation. With Wait for me on, the song stops on each note until you play it, so a hard bar becomes something you work out rather than a race. Lower the Tempo slider (30% to 160%), get the fingering under your hands, then speed it up again.

The ten songs are all in the public domain and arranged as single-line melodies: Für Elise, Ode to Joy, Moonlight Sonata, Twinkle Twinkle Little Star, Happy Birthday, Jingle Bells, Silent Night, Amazing Grace, Greensleeves and Scarborough Fair. If you have never played before, start with Twinkle Twinkle or Happy Birthday. Für Elise and Ode to Joy come next, because their opening phrases fit in one hand position.

You can also open a MIDI file with Open MIDI, or drop a .mid file on the piano. It loads as a song with falling notes. Under You play choose to just listen, play all notes, the right hand (middle C and up), the left hand (below middle C) or a single track, and the piano plays everything else. The file is read in your browser and not uploaded. When you play freely, the coloured columns rising from the keys are only a visualisation, tinted by pitch and sized by how hard you played.

Metronome, transpose and scale highlighting

Switch on ♩ Metronome in the bar above the keys, or press K. Set the tempo with − and +, type a BPM from 30 to 240 or tap it in, and choose 2/4, 3/4, 4/4 or 6/8. Count-in clicks one bar before a song or recording starts. If you record with the metronome on, the exported MIDI file uses the same tempo and time signature, so your playing lines up with the bars in a DAW.

Transpose (− / + or [ and ]) shifts everything up to an octave either way in semitones. You keep playing the same keys but they sound in the new key, which helps when you sing along or match another instrument. Note names follow the sounding pitch, and recordings are saved at the transposed pitch. Scale highlights a key and scale on the keyboard (major, minor, harmonic minor, major or minor pentatonic, blues, dorian or mixolydian): notes in the scale turn blue and the root purple, so you can improvise without hitting a wrong note.

Record piano online and export MIDI or video

Press Record, play, then press it again to stop. You can play the take back, download a .mid file, download a video or copy a share link. The sustain pedal is recorded too.

Anything you play here is yours to use, commercially too, with no watermark and no attribution needed. That covers your performance only: if you record a piece that is still under copyright, the composition is a separate matter.

Use a USB MIDI keyboard

Plug in a USB MIDI keyboard, click Connect MIDI and allow access when the browser asks. Notes arrive with real velocity, so the tone responds as it would on hardware, and there is no key-rollover limit. Web MIDI works in Chrome, Edge and Opera. Safari and Firefox do not support it, so use the computer keyboard or touch there.

On a phone or tablet

Tap the keys, or slide a finger across them for a glissando. Phones show only the 29 keys the computer keyboard would reach, so they stay big enough to tap. Fullscreen in landscape gives the widest keys. Touch, learn mode and recording all work; the typing features need a keyboard.

No sound or a delay?

Browsers block audio until you interact with a page, so the first click or key press starts the sound. If you still hear nothing, check that the tab is not muted and the Volume slider is up. Notes are generated the moment a key arrives, so any delay comes from your audio hardware and browser. Closing other audio apps, using wired instead of Bluetooth headphones, and using Chrome usually give the lowest latency. Bluetooth alone adds a delay the browser cannot remove.

Private, free and works offline

Nothing you play leaves your device. Notes are generated in your browser, recordings stay in memory until you export them, and there is no account and no tracking of what you play. Your settings (volume, room, touch, instrument, layout, note names, octave, labels, sustain, metronome and scale) are saved in your browser's local storage and come back next time; clearing your browser data resets them. Once the page and the Real Grand samples have loaded, the piano keeps working with the connection off, because the samples stay in the browser cache and every other sound is generated locally.

Keyboard shortcuts

Z–M and Q–P white keys · S D G H J and 2 3 5 6 7 9 0 black keys · ← / → octave · Shift or Space sustain · - / = softer or harder · [ / ] transpose · K metronome · L key labels · Esc exit fullscreen. Click ⛶ fullscreen or Enter Fullscreen to fill the screen; the keys stay playable there, on iPhone and iPad too.

More music tools

Play music with your hands and a webcam in the hand tracking instrument or the hand tracking chords, look up chord shapes in the chord chart generator, keep time with the online metronome, build a beat in Drum Loop Studio or make chiptune loops in 8-Bit Studio. All of them are listed on the music tools page.