Virtual Piano
Play the piano online with your keyboard, mouse or touch.
Bottom letter row (Z to M) plays from C3; the top row (Q to ]) plays an octave higher, with black keys on the rows above each. Hold Space for the sustain pedal; ← and → change octave. On a touch screen you can play chords and slide across the keys.
Play the piano in your browser with your computer keyboard, a mouse, a touch screen or a real MIDI keyboard. Choose 2, 3 or 4 octaves, or the full 88 keys from A0 to C8 and scroll along them. On a computer keyboard, the bottom row of letters (Z to M) plays the white keys of one octave and the row above it the black keys; the top row (Q to ]) and the number keys play the octave above, so you can reach about two and a half octaves at once. The arrow keys move up and down an octave, and holding Space works like the sustain pedal; there's also a Sustain button for touch screens. On a phone or tablet you can play chords with several fingers and slide along the keys. Plug in a USB or Bluetooth MIDI keyboard, press Use a MIDI keyboard, and it plays with the strength you press each key, along with your sustain pedal. The piano sound is generated in your browser rather than recorded from a real piano: each note is built from its overtones, slightly stretched and dying away the way struck strings do, with the bass ringing longer than the treble. Press Record to capture what you play, then play it back or download it as a WAV file. Nothing you play is uploaded.
Common use cases
- Practise a tune or a scale when there's no piano nearby
- Find a note or a chord while writing a song
- Learn where the notes are, with note names shown on the keys
- Record a quick idea and save it as a WAV file
How to use
- Pick how many keys to show and, for smaller sizes, which octave with the − and + buttons.
- Click or tap the keys, or press the letters shown on them on your computer keyboard.
- Hold Space (or press Sustain) to let notes ring after you let go.
- To use a MIDI keyboard, plug it in and press Use a MIDI keyboard, then allow access.
- Press Record, play, then Stop recording. Play back or press Download WAV to save it.
FAQ
Which computer keys play which notes?
Z, X, C, V, B, N and M play C, D, E, F, G, A and B, and S, D, G, H and J are the black keys between them. Q, W, E, R, T, Y and U play the same notes an octave higher, with 2, 3, 5, 6 and 7 as the black keys, and I, O, P, [ and ] carry on upwards. Tick Show computer keys to see the letter on each piano key. Keys are matched by position, so this works the same on US, UK and other keyboard layouts.
Which key is middle C?
Middle C is C4, the C nearest the middle of an 88-key piano. Every C on the keyboard is labelled, and middle C is shown in blue. Tick Show note names to label every white key.
Why is there no sound?
Browsers only start sound after you press something on the page, so the very first note can occasionally be missed: press it again. On an iPhone or iPad, sound from web pages is muted while the ring/silent switch is set to silent, so switch it back to ring. Also check the volume slider and your device's volume.
Can I use a real MIDI keyboard?
Yes, in browsers that support Web MIDI, which includes Chrome, Edge, Opera and Firefox on computers. Safari doesn't support it. Connect the keyboard by USB (or Bluetooth MIDI where your computer supports it), press Use a MIDI keyboard and allow access. How hard you press each key changes how loud and bright the note is, and the sustain pedal works too.
Can I play several notes at once?
Yes. Hold down several computer keys, use several fingers on a touch screen, or play chords on a MIDI keyboard. Some computer keyboards can't register certain combinations of three or more keys at once, which is a limit of the keyboard rather than the piano; the Keyboard Tester shows how many keys yours can register together.
Related tools
- MetronomeFree online metronome: 20 to 300 BPM, time signatures, accents, eighths, triplets, tap tempo and a speed…
- Chromatic TunerFree chromatic tuner and pitch detector: sing or play any note to see its name, frequency in Hz and how many…
- Tone GeneratorOnline tone generator: play sine, square, sawtooth or triangle waves from 1 to 22,000 Hz, sweep between…
- Guitar TunerFree online guitar tuner: play a string and see if it's sharp or flat, using your microphone. Standard, drop…
- Ukulele TunerFree online ukulele tuner: G C E A standard, low G, baritone D G B E and D tuning. Uses your microphone…
- Bass TunerFree online bass tuner for 4, 5 and 6-string basses: E A D G, B E A D G, drop D and more. Reads low notes…