How to Play Piano on Your Computer Keyboard
Press Z for C4, X for D4, and C for E4. Follow this site's key labels to play the exercises below, or click the piano keys to begin.
Press the letters shown on the keys, or click to play.or hold Space
maintained by Online Keyboard Synth
Start with One Note
You can play notes with the typing keyboard or the on-screen piano. Start with a single note before trying chords.
- Choose Electric Piano or another sound from the preset menu.
- Click the on-screen C key, or press Z. If silent, choose Enable sound and check the no-sound steps.
- Turn on Note names. At the default Middle range, check that Z is C4, then play X and C for D4 and E4.
The page uses synthesized tones. These exercises help you explore pitches and key combinations; they do not reproduce an acoustic piano's touch.
This Site's 25-Key Map
The wide keyboard covers C4 through C6: two octaves plus the final C. The black keys have their own shortcuts; you do not need to hold Shift.
- ZC4
- XD4
- CE4
- VF4
- BG4
- NA4
- MB4
- QC5
- WD5
- EE5
- RF5
- TG5
- YA5
- UB5
- IC6
- One complete C major scale: Z X C V B N M Q — the last Q is C5.
- Lower / Higher: shift every mapped note by one octave. The keyboard letters stay the same; the note-name octave numbers change.
- Sustain: hold Space or the Sustain button, then release it to let held notes fade. Choose Stop sound or press Escape to release everything.
- Narrow screens: the compact instrument shows one octave and accepts only its visible range. The full two-row exercises need the wider layout; on a phone, start with three visible notes and use Lower / Higher for another range.
Use the map for the site you are playing. For example, Musicca's piano instructions use the top letter row for white keys; those letters are not interchangeable with this page's map.
Try Three Scales, Three Chords, and a Short Melody
Return to Middle range and release sustain first. The examples below use the wide layout and list both the target notes and the exact computer keys.
Scales: play one key at a time
- C major
- Notes C4 D4 E4 F4 G4 A4 B4 C5
Keys Z X C V B N M Q - G major
- Notes G4 A4 B4 C5 D5 E5 F#5 G5
Keys B N M Q W E 5 T - A natural minor
- Notes A4 B4 C5 D5 E5 F5 G5 A5
Keys N M Q W E R T Y
Each sequence returns to its starting note one octave higher. G major includes F# (5); A natural minor uses only the white notes. Play up, then reverse the sequence to come back down.
Musicca's scale lesson explains the major and natural-minor step patterns. The letters above translate those patterns into this site's shortcuts.
Chords: play three keys together
| Chord | Notes | Keys |
|---|---|---|
| C major | C4 + E4 + G4 | Z + C + B |
| F major | F4 + A4 + C5 | V + N + Q |
| G major | G4 + B4 + D5 | B + M + W |
A major triad places the second and third notes 4 and 7 semitones above its root: C4 → E4 → G4 becomes Z + C + B here. See Musicca's chord lesson for triad construction.
If your keyboard misses a note, play each chord note separately instead. This still lets you hear the three pitches without relying on simultaneous key reporting.
Melody: go up and come back
Notes: C4 D4 E4 G4 E4 D4 C4
Keys: Z X C B C X Z
Play each letter separately. Keep the notes evenly spaced, then hold the final Z longer. This is a suggested exercise, not a scored lesson.
- Return to the keyboard, choose Record, and play the phrase.
- Stop recording, then use the take's playback control to listen again.
- Download the original recording or convert it to WAV. Download before leaving: takes stay in this page's memory and are lost on refresh or navigation.
A Suggested Seven-Step Practice Routine
Use these in order, repeating any step you want. They are practice prompts; there is no required daily duration or promised completion date.
- Find C. Enable Note names and match Z, Q, and I to C4, C5, and C6.
- Play C major. Follow the complete eight-note sequence above, then reverse it.
- Compare G major and A natural minor. Check the F# in G major and the different starting note in A minor.
- Try the three chords. Play each as a group or one note at a time. Release all keys between chords.
- Play the short melody. Read the notes as well as the letters so the exercise is tied to pitch names.
- Try a steady pulse. Use a separate metronome if helpful; choose a pace at which you can keep the sequence even. This page has no built-in metronome.
- Record and review. Listen for a skipped note or uneven spacing, then choose one thing to change in your next take.
No Sound, Missing Notes, or Delay?
- No sound at all
- Choose Enable sound, click a piano key, and check the site's Volume, device volume, and output device. Browsers generally require a user action to start audio (MDN: autoplay policy). “Ready to play” confirms browser audio started, not that your speakers are audible.
- Clicking works, typing does not
- Exit an open menu, shortcut dialog, or text field and click the playing area. The instrument avoids taking note shortcuts while you type into form controls.
- A chord loses a note
- Release sustain, test each key separately, and check the visible octave range. Some typing keyboards cannot report every multi-key combination; if single notes work but that combination fails, play the chord one note at a time or try MIDI. A missing note alone does not prove a hardware fault.
- The pitch is different
- Lower / Higher changes the octave. Check Note names before repeating an example. Letters copied from another piano site may use an entirely different map.
- The sound arrives late
- Compare wired headphones or built-in speakers with Bluetooth, and close busy background tabs. Ableton documents Bluetooth delay in Note; that is not a measurement of this site. Actual delay depends on your browser and audio setup.
What This Keyboard Can Do — and When to Use Real Keys
Use the tool to explore note names, pitch patterns, chord note sets, and rhythm. Typing-key positions and fixed note velocity do not reproduce piano-key spacing, resistance, or loud-soft touch.
- Explore synth sounds: keep playing here, or open the main keyboard synthesizer for sound-design lessons.
- Use piano-style keys and velocity: a compatible controller can drive this synth. Check its key size, velocity support, pedal input, connection requirements, and sound source before choosing one; follow the MIDI setup guide.
- Practice piano technique or an acoustic-piano sound: use an appropriate piano or digital instrument and instruction for that goal. This oscillator-based synth has no sampled grand-piano preset.
Guide checked 2026-10-02: all 25 shortcuts, scale and chord pitches, and current tool behavior reviewed. Exercises are suggestions; no learning-speed or device-latency result is claimed.
Frequently asked questions
Which computer keys play the piano notes here?
At the default Middle range, Z X C V B N M play C4 D4 E4 F4 G4 A4 B4. Q W E R T Y U I play C5 D5 E5 F5 G5 A5 B5 C6. S D G H J and 2 3 5 6 7 play the black keys. Lower and Higher shift the range by one octave. Other sites may use different mappings.
Can this replace a real piano or piano lessons?
Use it to explore note names, pitch sequences, chords, and rhythm. Typing keys have a different shape and do not send velocity in this tool, so they cannot reproduce piano fingering, key resistance, or loud-soft touch. The exercises are practice suggestions, not a promise of learning progress.
What if the keyboard makes no sound?
Choose Enable sound, then click an on-screen key. Check the site's Volume control, your device volume, and the selected audio output. If clicking works but typing does not, leave text fields or menus and click the playing area. Ready to play means browser audio has started; it does not confirm your speakers are audible.
Why do some notes disappear from a chord?
First release held keys and sustain, return to Middle range, and test each note separately. A typing keyboard may not report every combination of simultaneous keys. On narrow screens this tool exposes one octave, so shortcuts outside that visible range are also unavailable. Try the notes one at a time or use a compatible MIDI controller.
Can I use the guide on a phone or tablet?
Use the on-screen keys where touch and browser audio are supported. The compact keyboard shows one octave; use Lower and Higher to reach other ranges. The full letter-key exercises below assume a physical keyboard and the wider two-octave layout. Real-device behavior depends on the browser and device.
Does this sound like an acoustic piano?
This instrument generates synthesized tones rather than using a sampled grand piano. Electric Piano and Glass Keys are sounds to try; choose a sampled-piano instrument if that particular sound is your goal.
Can I play with a MIDI keyboard?
In a browser that supports Web MIDI, connect a compatible controller, choose Connect MIDI, and approve access. The tool handles note velocity and sustain-pedal CC64 messages. Browser support, permissions, cable, and power all affect the connection. Follow the MIDI connection steps