Online piano
Click or tap the keys, or play with your computer keyboard: A, S, D, F and the keys to their right are the white notes from C, and the row above holds the sharps. Several fingers work at once on a touchscreen. The sound is synthesized live, with no samples to load.
Computer keyboard: A S D F G H J K L play the white keys, W E T Y U O P the black keys, Z and X change octave.
How to use it
- Tap or click a key, or press A on your computer keyboard to play C. Slide a finger or the mouse across the keys for a glissando.
- Use − and +, or Z and X, to move the keyboard down or up an octave. A wide screen shows three octaves, a phone one.
- Turn on Sustain to let notes ring after you lift, like holding the right pedal, and turn it off to damp them.
Keyboard shortcuts
The layout is the one most music software uses: the middle letter row is the white keys and the row above holds the black keys in the gaps where a piano has them. Keys are read by their position, not the letter printed on them, so the layout works on QWERTZ, AZERTY and Turkish keyboards; where the browser can tell the layout, each key shows your own letter.
| Key | Note | Key | Note |
|---|---|---|---|
| A | C | W | C♯ |
| S | D | E | D♯ |
| D | E | ||
| F | F | T | F♯ |
| G | G | Y | G♯ |
| H | A | U | A♯ |
| J | B | ||
| K | C (octave up) | O | C♯ |
| L | D | P | D♯ |
| ; | E | ||
| ' | F |
How the piano sound is made
Each note is built from up to ten sine partials, added together. Partial n sits at n × f × √(1 + B n²), the formula for a stiff string, so the upper partials run slightly sharp of exact multiples, as they do on a real piano; B is set to 0.0004. Higher partials start quieter and die away faster than the fundamental, which is why a struck note sounds bright for a moment and then mellows. Low notes ring for several seconds and high notes for under one, and every note has a short filtered noise burst at the start for the felt hammer hitting the string.
Releasing a key closes the note over about a tenth of a second, as a damper would. With Sustain on, released notes keep ringing until you turn Sustain off. Because nothing is downloaded, the keyboard plays as soon as the page loads, and the delay between touch and sound is set by your device’s audio output rather than by the page; wired headphones usually feel quicker than Bluetooth.
Notes, octaves and pitch
Note names follow scientific pitch notation: middle C is C4 at 261.63 Hz and the A above it, A4, is 440 Hz. Each key is a semitone, a frequency ratio of the twelfth root of two, about 1.0595, and twelve of them make an octave, which doubles the frequency. A full piano has 88 keys from A0 at 27.5 Hz to C8 at about 4,186 Hz; the octave buttons cover C1 to C8. The Turkish page names notes in solfège: Do, Re, Mi, Fa, Sol, La, Si.
To hear any single pitch steadily, the tone generator plays it as a sine wave. The note to frequency chart lists every key in hertz, and the online tuner checks the pitch of a real instrument.
A real piano is not tuned like this one
This keyboard is tuned exactly to equal temperament. Acoustic pianos are not, on purpose: their stiff strings make the partials sharp, so tuners stretch the octaves wider to keep them sounding clean, more so at the extremes of the keyboard. How much depends on the individual piano. If you play a real piano at home, Stretch measures its strings and works out a tuning for all 88 keys.
Related tools
Questions people ask
How do I play piano on my computer keyboard?
Press A for C, then S, D, F, G, H, J for D to B; W, E, T, Y, U are the black keys. K starts the next octave. Z and X move the whole keyboard down or up an octave.
Can I play chords?
Yes. Press several computer keys at once, or use several fingers on a touchscreen. Some computer keyboards cannot register every combination of three or more keys, which is a hardware limit.
Does it work on a phone or iPad?
Yes, with multi-touch. A phone shows one octave at a time; turn it sideways or use the octave buttons. An iPad or a wide window shows two or three octaves.
Why is there no sound?
Check that the device is not muted. On iPhone, the ring/silent switch can mute web audio in some browsers; turn it to ring, raise the volume, and tap a key again.
Is there a sustain pedal?
Yes. Turn on Sustain and released notes keep ringing; turn it off to stop them.
Which octave is middle C?
Middle C is C4. The keyboard opens at C3, so middle C is the C one octave up from the left edge, the K key on the computer keyboard.

