Online Piano – Play Piano with Your Computer Keyboard
Free virtual piano with 2 octaves. Play with your computer keyboard (A-K keys for white notes, W-U for black notes) or click the keys with your mouse. Perfect for practice, learning, or just having fun. No download or installation required.
Last Played
–
Keyboard Shortcuts
First Octave (C4-B4):
Second Octave (C5-C6):
Controls:
Mobile:
Portrait: 1 octave (C4-B4)
Landscape: 2 octaves
How to Use
- Click Enable Sound – browsers require user interaction to unlock audio.
- Play with keyboard – use keys A-K for white notes, W-E-T-Y-U for black notes.
- Or click with mouse – click any piano key to play it.
- Adjust volume – use the slider to control how loud the piano sounds.
Features
- 2 Full Octaves – C4 to C6 (25 keys: 17 white + 10 black)
- Responsive Design – 1 octave on mobile portrait, 2 octaves on desktop/landscape
- Optimized Sound – additive synthesis with 3 harmonics for fast performance
- Keyboard & Mouse & Touch – play however you prefer
- No Installation – works instantly in your browser
Frequently Asked Questions
Why is the piano slower on mobile?
Mobile devices have less processing power. We've optimized the synth to use fewer harmonics (3 instead of 6) for better performance. The piano should now be much faster, especially on newer devices.
Which keyboard keys play which notes?
White keys: A S D F G H J K (C4 to C5). Black keys: W E T Y U (C# D# F# G# A#). Spacebar is the sustain pedal. See the keyboard shortcuts table above for the full mapping.
Can I play chords?
Yes! Press multiple keys at once on your keyboard or click multiple piano keys with your mouse. The piano supports polyphony (multiple notes at the same time).
Does this work on mobile?
Yes, you can tap the piano keys on mobile. Keyboard shortcuts work on devices with physical keyboards (tablets with keyboards). For the best experience, use a computer with a keyboard.
Why is there no sound?
Click the Enable Sound button first. Browsers block audio until the user interacts with the page. Once enabled, the button turns green and you can play.