This virtual piano keyboard is a free online piano that works like a digital piano in your browser: there is nothing to install or sign up for, and it plays recordings of a real upright piano, not a beep. Play it with the letter keys of your computer keyboard, by touch on a phone or tablet, with the mouse, or with a USB or Bluetooth MIDI keyboard.
How to play the virtual piano
- Play a key. Click or tap the keys, press the letter keys of your computer keyboard, or connect a MIDI keyboard. On a touch screen you can play chords with several fingers and slide a finger across the keys for a glissando.
- Use the sustain pedal. Hold Space while you play, or click Sustain to keep it down until you click again. Notes then ring on after you let go of the keys, as they do on a real piano with the right pedal down.
- Change octave. The − and + buttons (or ← and →) move the computer keys down or up an octave. The range they play is shown between the buttons.
- Record. Press Record and play. The recording starts with your first note, so you can take your time, and ends when you press Stop. Play replays it, and each key lights as its note sounds.
- Save or share it. Download a MIDI file, a WAV audio file, or copy a link that opens this page with your recording ready to play.
The two computer keyboard layouts
Piano rows (the default) uses the two-row arrangement of FL Studio’s typing keyboard and of tracker software. The bottom letter row plays the white keys of one octave (Z is C, X is D, up to M for B), with the black keys on the row above (S, D, G, H, J). The top letter row does the same one octave higher, from Q for middle C, with its black keys on the number row. The keys are matched by their position, so this layout works the same on QWERTZ and AZERTY keyboards, and in Chrome and Edge the labels show the letters printed on your own keyboard.
Virtual Piano sheets is the layout of virtualpiano.net and the Roblox piano sheets. All 61 keys from C2 to C7 are on the keyboard at once: the number row and the three letter rows play the white keys from left to right (t is middle C), and holding Shift plays the black key just above, so T is C♯. A sheet like t y u is played exactly as written; letters in square brackets, such as [tu], are pressed together.
Your first tune and your first chords
With the default Piano rows layout, the top letter row is one octave of white keys starting at middle C: Q plays C, W D, E E, R F, T G, Y A, U B and I the next C. If you would rather read C, D, E than letters, or you play by touch, pick note names in the Labels menu and tap the same notes.
- Mary Had a Little Lamb: E W Q W E E E · W W W · E T T. Play each letter as one even step and pause at each dot.
- Twinkle, Twinkle, Little Star: Q Q T T Y Y T · R R E E W W Q, holding the last note of each half for two steps.
A major or minor chord is three keys with one white key skipped between each, so on this row it is every other letter. Four chords cover a great many simple songs:
| Chord | Notes | Keys |
|---|---|---|
| C major | C E G | Q E T |
| F major | F A C | R Y I |
| G major | G B D | T U O |
| A minor | A C E | Y I P |
Play them in the order C, A minor, F, G and back to C, four beats each, and you have the progression behind many 1950s ballads. With the sustain pedal down (hold Space, or tap Sustain), release it at every chord change, or the chords blur into each other. For bass notes under the chords, the bottom row plays the octave below: Z for C, V for F, B for G, N for A.
Practise a letter song sheet
Paste a sheet written in the Virtual Piano layout into Paste a song sheet and press Practise this sheet. The next key lights up on the piano and in the sheet, and the piano waits until you play it, from the computer keyboard, a click, a tap or a MIDI keyboard. For a chord in brackets, it waits until you have played every note of it. A wrong key flashes red; the counter and the bar above the keys show how far you are, and Restart takes you back to the first key.
Play it for me plays the sheet from the highlighted key, at slow, 75%, normal or fast speed, so you can hear how it should go, then hands the keys back to you. The rhythm comes from the spacing: letters written together are quick (half a beat), a space or a line break is one beat, and each | or - holds the note before it half a beat longer. While you practise, the rhythm doesn’t matter: the piano simply waits. A repeated letter needs a fresh press each time.
The − and + buttons move the whole sheet down or up an octave along with the keys. On a phone, where only 25 keys fit, the keyboard slides to the key the sheet waits for; a chord wider than the screen is played one note at a time, and the keyboard moves on to the next note of the chord after each one. Characters that aren’t keys, like titles or lyrics pasted along with the letters, are crossed out and skipped, and a note tells you which ones; the letters of a pasted title that are keys would play, so delete such lines. Share result beside the sheet copies a link that opens the sheet ready to practise.
To start with a tune you know, open one of the public domain songs, such as Ode to Joy or Für Elise. Their sheets were written for Meadow Tools from the melodies themselves, not copied from other sheet sites, and each page gives the sources for the song’s history.
Use it as an online MIDI piano
Connect a MIDI keyboard and this page becomes its sound: press Connect MIDI keyboard, allow MIDI access when the browser asks, and play. Each note keeps the velocity of your key press, so soft playing sounds soft, and a sustain pedal plugged into the keyboard (controller 64) works like the right pedal of a piano. Web MIDI works in Chrome, Edge and Opera on a computer or Android, and in Firefox 108 or later on a computer; Safari and the browsers on iPhone and iPad don’t support it (MDN browser data, as of October 2026). With a full-size keyboard, open the 88-key MIDI piano so every key of yours has a key on screen.
Note labels
The Labels menu writes on the keys what helps you most: the computer key that plays each note, note names (C, D, E), note names with their octave (C4 is middle C, the key with the small dot), or fixed do-re-mi solfège, from Do for C up to Si for B, the names used in many European and Latin American classrooms. Black keys are named as sharps, so C♯ and D♭ share one key.
Recording, MIDI and WAV files
- MIDI keeps every note with its exact timing and velocity, and the sustain pedal as controller 64, at a tempo of 120 BPM. Open it in GarageBand, Logic, Ableton, FL Studio, MuseScore or any other music program to change the sound, fix a wrong note or turn it into sheet music.
- WAV is the recording as audio, rendered on your device with the same piano sound and room reverb you hear, with two and a half seconds for the last notes to ring out, and levelled to a peak of −1 dBFS.
- Share result: the notes themselves are packed into the link (about 7 characters of link per note), so nothing is stored on a server. Recordings of up to several hundred notes fit; for longer pieces, share the MIDI file.
To see which notes a recording contains, or check the keys of your MIDI keyboard for dead or weak keys first, use the MIDI tester. To turn a recording of a real instrument or your singing into MIDI, try audio to MIDI.
What a virtual piano can and can't do
- Loudness: computer keys, clicks and taps can't tell a soft press from a hard one, so every note plays at the level of the Key and touch velocity slider. Only a MIDI keyboard gives you real dynamics.
- Range: the Keys menu goes up to the full 88 keys of an acoustic piano, but the computer keys reach two and a half octaves at a time in Piano rows and 61 keys in the sheets layout; use the octave buttons for the rest.
- Technique: it is a good way to learn notes, chords, melodies and reading letter sheets, but not finger strength or hand position: typing keys need no weight and sit in rows, not like piano keys. A full-size MIDI keyboard plugged into this page gets you much closer.
- Timing: Bluetooth audio and some phones add a delay between press and sound, which makes fast passages hard; the troubleshooting below has the fixes.
Tips and troubleshooting
- No sound? Check the tab isn’t muted and the volume slider is up. The first sound needs a click, tap or key press, because browsers don’t start audio on their own; if a “Tap to turn on sound” button covers the keys, tap it once and the note you played sounds. On an older iPhone or iPad (before iOS 16.4), Silent mode also mutes web pages, so turn it off.
- Notes cut out in chords: most computer keyboards can’t report more than three or four keys at a time. Use the screen or a MIDI keyboard for big chords.
- Playing feels late: Bluetooth headphones and speakers add a delay of their own. Wired headphones or built-in speakers respond fastest.
- The piano sounds simpler at first: the recorded piano (about 1.6 MB) loads in the background, and a synthesized piano fills in for any note that hasn’t arrived yet.
- Tuning: the piano is tuned to standard pitch, A4 = 440 Hz. To check another instrument against a single pitch, use the tone generator, and to find the tempo of a song you want to play along to, the BPM finder.
The piano sound is a set of recordings of a Kawai upright piano made by the FreePats project and dedicated to the public domain (CC0 1.0). Everything runs in your browser: what you play and record never leaves your device.