Skip to content
ToolMug

Online Piano

Play a piano right in your browser — no app or download. Use your computer keyboard (A–; for white keys, W–P for black keys), click with the mouse or tap on a touch screen. Shift up and down octaves, hold notes with the sustain pedal, and turn note names on to learn where each key is.

Runs in your browser — nothing you enter is uploaded

C4 – C6

Play with the mouse, touch or your computer keyboard: A S D F G H J K L ; are white keys, W E T Y U O P are black keys, Z and X change the octave. The sound is synthesised in your browser, so nothing needs to download.

How to use

  1. Click or tap any key, or press A S D F G H J K L ; on your computer keyboard.
  2. Use the arrows next to Octave, or Z and X, to move the keyboard up or down.
  3. Tick Sustain pedal to let notes ring after you let go.

Options explained

Computer keyboard
A S D F G H J K L ; play white keys from C, and W E T Y U O P play the black keys between them — the same layout as most online pianos.
Sustain pedal
Notes keep ringing and fade out naturally after you release the key, like holding the right pedal on a real piano.
Tuning
Equal temperament with A4 = 440 Hz; middle C is C4 (about 261.63 Hz).

Keyboard map and note frequencies

At the starting position the A key plays middle C (C4). Frequencies use equal temperament with A4 = 440 Hz.

Note Computer key Frequency
C4 (middle C) A 261.63 Hz
C♯4 / D♭4 W 277.18 Hz
D4 S 293.66 Hz
D♯4 / E♭4 E 311.13 Hz
E4 D 329.63 Hz
F4 F 349.23 Hz
F♯4 / G♭4 T 369.99 Hz
G4 G 392.00 Hz
G♯4 / A♭4 Y 415.30 Hz
A4 H 440.00 Hz
A♯4 / B♭4 U 466.16 Hz
B4 J 493.88 Hz
C5 K 523.25 Hz

Each octave up doubles the frequency, so Z and X move the whole keyboard to half or twice these values.

Easy tunes to try

Twinkle, Twinkle, Little Star: A A G G H H G · F F D D S S A

Ode to Joy: D D F G G F D S A A S D D S S

Happy Birthday: G G H G K J · G G H G L K (L is D5)

On a phone the keyboard shows one octave at a time — use the octave arrows to move up or down.

Frequently asked questions

Why is there no sound?

Browsers only allow sound after you click or tap the page. Click a key once; also check that your device is not muted.

Does it sound like a real piano?

It uses a synthesised piano-like tone with a quick attack and natural decay, so it loads instantly. It is good for practising melodies and finding notes, not for recording.

Can I play chords?

Yes. Press several keys at once — most computer keyboards handle three or four keys together.

Privacy

This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.

Related tools