Online Piano

Just start playing: click or tap the keys, or use your computer keyboard (A = C, W = C♯ …). The sound is generated in your browser – no app, no sign-up.

Other octaves: arrows ◀ ▶, the octave menu or swipe sideways in the grey strip below the keys. Several fingers play chords.

All local: the sound is computed in your browser, nothing is sent or stored.

Result

How it is calculated

This online piano has five octaves (C2 to C7) and can be played with a mouse, your fingers or your computer keyboard – polyphonic, too. The sound is computed in your browser as you play; no piano recordings are loaded.

How to play

Note names and octave numbers

Keys are labelled in scientific pitch notation: the letter names the note and the number the octave. C4 is middle C in the centre of the keyboard. Black keys are labelled with sharps (C♯, D♯, F♯, G♯, A♯); depending on the key signature the same keys are also called D♭, E♭, G♭, A♭ and B♭. Good to know: in German the note B is called H, and a German B means B♭.

How the notes are calculated

The piano uses equal temperament: every semitone is higher than the previous one by a factor of 21/12 ≈ 1.0595, and twelve semitones exactly double the frequency (an octave). The reference is concert pitch A4 = 440 Hz (ISO 16). So f = 440 Hz · 2(n − 69)/12 with the MIDI number n – for example, middle C4 = 261.63 Hz. The sound is built additively: overtones (whole-number multiples) of decreasing loudness are added to the fundamental, shaped by an envelope with a fast attack and slow decay, longer for low notes than for high ones.

Honest limits

Privacy

All notes are computed in your browser with the Web Audio API. Nothing is recorded, uploaded or stored.

A key doesn’t sound? Use the keyboard test to check whether your computer keyboard registers every key press.

Frequently asked questions

Can I play the piano online for free?

Yes. The online piano is free, with no sign-up and no app – it runs right in your browser on PC, laptop, tablet and phone.

How do I play piano with my computer keyboard?

The A key plays C, the middle letter row (A S D F G H J K L) plays the white keys and the row above (W E T Y U O P) the black keys. The arrow keys change the octave; the space bar sustains notes.

Can I play several notes at once?

Yes. With several fingers on touchscreens, or several keys on the computer keyboard. Some keyboards only detect 3 to 6 keys at the same time, though.

Where is middle C on the piano?

Middle C is C4, 261.63 Hz, in the centre of the keyboard. Here you play it with the A key when the octave is set to C4.

Does the online piano work on my phone?

Yes, in current browsers on Android and iPhone. The keyboard is wider than the screen – page with ◀ ▶, swipe in the grey strip below the keys or pick an octave. If the iPhone’s silent switch is on, it may stay quiet depending on the iOS version.

What does the sustain button do?

It works like the right pedal on a piano: notes keep ringing after you release them and fade out naturally. Hold the space bar or toggle the button.

How many keys does a real piano have?

A full piano has 88 keys (A0 to C8, 52 white and 36 black). This online piano shows 61 keys (C2 to C7), the range of a typical keyboard – enough for almost all melodies.

What tuning does the online piano use?

Equal temperament with concert pitch A4 = 440 Hz – like most modern pianos and keyboards.

Sources and legal basis

As of:

Related tools