Free Online Piano
Online Piano lets you play an 88-key grand piano with the computer keyboard, mouse, touch or a MIDI keyboard, using Salamander Grand Piano V3 samples. Hold Space or a MIDI pedal for sustain, record your playing and download it as MIDI or WAV. Learn songs teaches eight public-domain melodies with falling notes, a wait mode and adjustable tempo.
- Keys:
- 88, from A0 to C8
- Export:
- MIDI or WAV recordings
- Learn songs:
- 8 public-domain melodies
- Price:
- Free
- Runs:
- Locally, in your browser
- Uploads:
- None: files never leave your device
- Account:
- Not needed
Quick answers
Which keys play which notes?
The home row plays white keys starting from the C shown under Keys & MIDI (A = C, S = D, D = E…) and the row above plays the black keys (W, E, T, Y, U, O, P). Z and X shift the octave; C and V make the computer keys softer or louder.
Can I use a real MIDI keyboard?
Yes, in browsers with Web MIDI (Chrome, Edge, Opera, Firefox on desktop). Press Connect a MIDI keyboard, allow access, and play: velocity and the sustain pedal are supported.
Processed on your device: your files are never uploaded. How it works
Network activity in this tab
What this page has requested since you opened the site in this tab. An upload is any request that sends data: POST, PUT, PATCH or a request with a body.
No uploads: nothing has been sent from this page.
No network requests yet.
To see every request, open your browser's developer tools (Network tab).
How to use the Online Piano
- Click or tap the keys, press A–L and W–P on your computer keyboard, or connect a MIDI keyboard.
- Move along the 88 keys with Lower / Higher, the overview strip or Z / X, and zoom with − / +.
- Hold Space (or a MIDI sustain pedal) to sustain notes; adjust volume, reverb, release and transpose.
- Press Record, play, then download your take as MIDI or WAV, or pick a song in Learn songs and follow the falling notes.
Credits & open source
Our own code plus open-source libraries. Thank you to the people who make these projects.
- @audio-samples/piano-mp3-velocity8MP3 package of the Salamander Grand Piano samples (the samples are CC-BY-3.0, see assets). © Jan Forst (package); samples by Alexander Holm · MIT
Web platform APIs used: Web Audio API, Web MIDI API, Pointer Events, Keyboard Events, Canvas 2D, Web Workers, localStorage.
- Salamander Grand Piano V3 by Alexander Holm (CC-BY-3.0) — piano samples
- Learn-songs melodies (Twinkle Twinkle, Ode to Joy, Für Elise opening, Minuet in G, Greensleeves, When the Saints, Jingle Bells, Amazing Grace) by Public-domain compositions; simplified arrangements transcribed for this site (Public domain) — song data for Learn songs
Full license texts: third-party notices · all credits
Frequently asked questions
Is there any delay?
The piano uses the browser's low-latency audio mode. If you hear a delay, close other audio apps or use wired headphones: Bluetooth adds noticeable latency.
Where do the piano sounds come from?
From the Salamander Grand Piano V3, a free sample set of a Yamaha C5 grand recorded by Alexander Holm and released under CC-BY 3.0.
Are the songs free to use?
Yes. All eight melodies are in the public domain and were arranged for this site in simplified form.