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.

Loading keyboard…Press Z, X, C — or tap a key
Middle range

Press the letters shown on the keys, or click to play.or hold Space

Try it:
Brightness
4200 Hz
Volume
50%

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.

  1. Choose Electric Piano or another sound from the preset menu.
  2. Click the on-screen C key, or press Z. If silent, choose Enable sound and check the no-sound steps.
  3. 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.

Lower row · C4–B4
  1. ZC4
  2. SC#4
  3. XD4
  4. DD#4
  5. CE4
  6. VF4
  7. GF#4
  8. BG4
  9. HG#4
  10. NA4
  11. JA#4
  12. MB4
Upper row · C5–C6
  1. QC5
  2. 2C#5
  3. WD5
  4. 3D#5
  5. EE5
  6. RF5
  7. 5F#5
  8. TG5
  9. 6G#5
  10. YA5
  11. 7A#5
  12. UB5
  13. IC6
Keyboard shortcut → note at Middle range. This diagram reads the same mapping as the instrument. Dark pairs show sharps, also identified by the # label.

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

Practice examples · major triads at Middle range
ChordNotesKeys
C majorC4 + E4 + G4Z + C + B
F majorF4 + A4 + C5V + N + Q
G majorG4 + B4 + D5B + 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

Practice example · original short phrase

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.

  1. Return to the keyboard, choose Record, and play the phrase.
  2. Stop recording, then use the take's playback control to listen again.
  3. 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.

  1. Find C. Enable Note names and match Z, Q, and I to C4, C5, and C6.
  2. Play C major. Follow the complete eight-note sequence above, then reverse it.
  3. Compare G major and A natural minor. Check the F# in G major and the different starting note in A minor.
  4. Try the three chords. Play each as a group or one note at a time. Release all keys between chords.
  5. Play the short melody. Read the notes as well as the letters so the exercise is tied to pitch names.
  6. 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.
  7. 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.

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