# Virtual Piano

> Play a Full Keyboard in Your Browser - Free

Free virtual piano you can play right in your browser. Use your computer keyboard or mouse, 6 synthesized voices, record and download WAV, follow-along.

URL: https://tools.scoreroute.com/tools/virtual-piano/

Markdown: https://tools.scoreroute.com/tools/virtual-piano/.md

## Free Online Virtual Piano You Can Play Right Now

This **free virtual piano** turns your browser into an instrument. Use your **computer keyboard**, mouse, or touch screen to play notes, switch between **6 synthesized voices**, record your own tune and **download it as a WAV file**, or follow along with built-in songs that score your accuracy as you play. Everything runs locally in your browser - no signup, no upload, no audio samples to download.


### Why AI Cannot Replace This Tool

An AI chatbot can name notes and write out sheet music, but it **cannot produce a working, touch-responsive musical instrument**. Playing a real keyboard needs instant, sample-accurate audio synthesis plus real-time input handling - a constant-loop capability that chat interfaces do not have. This tool is a genuine player for your hands, not advice for your eyes.


### How to Use

- **Play** - Click or tap any key, or use the mapped letters on the QWERTY keyboard. Release to stop the note.
- **Change octave** - Use the Oct < / Oct > buttons to slide the keyboard up or down by one octave.
- **Pick a voice** - Grand Piano, Piano, E-Piano, Organ, Harpsichord, or Music Box from the Voice menu.
- **Sustain** - Hold the Sustain button (or press Space) to let notes ring after you release a key.
- **Record** - Press Record, play your melody, press Stop, then Playback to hear it or Download WAV to save it.
- **Learn a song** - Choose a song, press Practice, and play the highlighted keys. You are scored on each correct note.
- **Metronome** - Switch it on and set the BPM to keep steady time while you play.
- **Chord detection** - Hold two or more keys and the page names the chord for you.


### Keyboard Map


### Why Play a Virtual Piano?


### Frequently Asked Questions

**How do I play the virtual piano with my computer keyboard?**

The white keys map to A S D F G H J K L ; and the black keys to W E T Y U O P. Press a letter to sound that note and release it to stop. The audio is synthesized instantly with the Web Audio API, so there is no latency from loading sound files.

**Can I save what I play?**

Yes. Press Record, play your melody, press Stop, then Download WAV. The file renders from the events you played and saves as a standard .wav file on your device. Nothing is uploaded - the whole process happens in your browser.

**Are the sounds real piano recordings?**

No, they are synthesized with oscillators and harmonic partials, which keeps the page light and the audio instant. The synthesis models key voices: Grand Piano, Piano, E-Piano, Organ, Harpsichord, and Music Box, each with a distinct character.

**How does the practice mode score me?**

Practice mode plays a song's note list in order. The next expected key is highlighted, and when you press it, the progress bar fills and your correct note count rises. Press the wrong key and it flashes red without advancing, so you can try again.

**Does this work on mobile?**

Yes. The full keyboard fits a phone screen and responds to touch, so you can tap melodies with your fingers. You can also flip the keyboard hints off to see just the note names on a small display.

**Is my playing private?**

Completely. All sound is made in your browser and your recorded notes stay on your device until you choose to download them. There are no accounts, no uploads, and no tracking of what you play.

**What is the playable range?**

The keyboard starts at C3 and reaches up to C6 when you shift octaves - roughly 3 octaves that cover most melodies and two-hand practice. Each octave button moves the whole window up or down by twelve notes.

**Can the metronome help with practice?**

Yes. Switch it on and set a BPM between 40 and 208. The first beat of every four is accented so you can keep a clear pulse while playing scales, songs, or your own improvisations.


#### Related Tools

- [Online Metronome](/tools/metronome/)
- [Online Guitar Tuner](/tools/guitar-tuner/)
- [Voice Recorder](/tools/voice-recorder/)

## References

- [MDN — Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API)
- [MDN — HTMLMediaElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement)

