# Play a virtual piano in your browser

> One to three octaves with printed computer keys, a sustain pedal, metronome and WAV or MIDI recording.

Play a virtual piano with your computer keyboard, touch or MIDI keyboard. One to three octaves, sustain, chord names, metronome and WAV or MIDI recording.

- Tool: [Virtual piano](https://fixmint.cc/virtual-piano)
- Category: [Music & sound](https://fixmint.cc/music)
- Fixes: No piano to play
- Runs in the browser: files and text stay on the device, no sign-up, free.

## How to play the virtual piano

1. Tap the keys, drag across them, or use the letters printed on each key.
2. Pick one, two or three octaves, shift the octave, and hold Space for the sustain pedal.
3. Press Record and play; then save the take as a WAV, MP3 or MIDI file.

## Questions

### Which computer keys play which notes?

The first row is Z S X D C V G B H N J M, the second Q 2 W 3 E R 5 T 6 Y 7 U, and the third row continues I 9 O 0 P with the bracket, equals, backslash, semicolon, quote and slash keys. Every key on screen prints its letter; Note names swaps the letters for note names. Connect MIDI maps an external MIDI keyboard onto the same keys.

### How does the sustain pedal work?

Tick Sustain or hold the Space bar: notes keep ringing after you lift your finger, and they stop when the pedal comes up. Turning Sustain off releases every held note at once. A MIDI keyboard pedal (CC64) does the same.

### How many octaves can I play?

One, two or three, chosen with the Octaves switch. Phones start at one so the keys stay wide enough for a finger, wider screens at two; the choice is remembered. Octave − and + move the range up or down by twelve notes.

### Can I save what I played?

Record captures the notes and lets you download the take as a WAV, an MP3 or a Standard MIDI file for a DAW. A recording stops at 90 seconds. Everything is made in this tab; nothing is uploaded.

### Does the metronome end up in the recording?

No. The metronome runs from 40 to 220 BPM with an accent on the first of four beats, plays beside your notes, and stays out of the WAV, MP3 and MIDI files.

## Related tools

- [Virtual flute](https://fixmint.cc/virtual-flute): No flute to play
- [Metronome](https://fixmint.cc/metronome): Keeping a steady tempo
- [Tone generator](https://fixmint.cc/tone-generator): I need a pure tone or sweep
- [Virtual guitar](https://fixmint.cc/virtual-guitar): No guitar to strum
