Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · Audio and video

Online piano

Tap the keys, or press letters on your computer keyboard, and hear notes at once. The page starts quiet, shows each note name and names the chord you hold.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

C3ZC#3S
D3XD#3D
E3C
F3VF#3G
G3BG#3H
A3NA#3J
B3M
C4QC#42
D4WD#43
E4E
F4RF#45
G4TG#46
A4YA#47
B4U
C5I

Tap or click a key. On a computer, the letters on the keys play too: the bottom row of letters plays the first octave and the row above it plays the next one. Hold Space for sustain. Nothing sounds until you press a key.

Sound
Octaves on screen
Black key names

25% (quiet start; raise it slowly)

Any value from 400 to 480. Change it to tune the whole piano.

Last note
C4261.63 Hz. Press a key to hear it.
  • Silent
  • Piano-like
Notes held now
none
Chord
hold three or more keys
Range on screen
C3 to C5
Notes played
0
Recent notes
none yet

How to use the Online Piano

  1. Press any key on the screen, or a letter on your keyboard. The first sound may need one tap, because browsers wait for you before playing audio.
  2. Pick a Sound, how many Octaves on screen you want, and the Lowest key. The letters printed on the keys change to match.
  3. Hold Space or press Sustain so notes keep ringing after you let go. Press Stop all sound to cut everything off.
  4. Hold three or more keys to see the chord name under Chord. Raise the Volume slowly if it is too quiet.

How do I play a piano with my computer keyboard?

Press the letters printed on the piano keys. The bottom row of letters, Z to M, plays one octave, and the row above it, Q to U, plays the next. With the lowest key set to C3, Z plays C3 and Q plays C4. The number keys above the letters are the black keys: S, D, G, H and J on the bottom row, and 2, 3, 5, 6 and 7 on the upper one. The keys I, 9, O, 0 and P continue upward, up to E5.

The pattern copies the piano. Each black key sits between two white keys, so the letter for a black key sits between the letters of its two neighbors. If you can see the letters on the keys, you can play a tune without learning anything first. Use Show on keys to hide the letters or the note names when you want a cleaner board.

On a phone or tablet, tap the keys. You can press several at once to play a chord. If the keyboard is wider than your screen, swipe sideways on it to reach the other keys. A quick tap plays a note, and a sideways drag scrolls.

Browsers do not allow a page to make sound until you have touched it. That is why the page is silent when it opens and why the first press is the one that wakes the sound up. After that, every press plays at once.

Which note is which key, and what is its frequency?

Every key has a name, a number and a pitch. The name is a letter from A to G, with a sharp (#) or flat (b) for black keys, followed by the octave. This page numbers keys so that the middle C is key 60 and A4 is key 69. The pitch is how fast the string would shake, in hertz (Hz), meaning vibrations per second.

Each step up to the next key multiplies the pitch by the same amount, the twelfth root of 2, which is about 1.0595. Twelve steps double the pitch, and that is one octave. So C5 is exactly twice as fast as C4: 523.25 Hz against 261.63 Hz. The table lists the twelve keys of the fourth octave, with the computer key that plays each one when the lowest key is C3.

The keys of octave 4, with A4 at 440 Hz
NoteKey numberPitchComputer key
C460261.63 HzQ
C#461277.18 Hz2
D462293.66 HzW
D#463311.13 Hz3
E464329.63 HzE
F465349.23 HzR
F#466369.99 Hz5
G467392 HzT
G#468415.3 Hz6
A469440 HzY
A#470466.16 Hz7
B471493.88 HzU

Not every group tunes A4 to 440 Hz. Some players choose a lower or higher value. The box Pitch of A4 lets you set any value from 400 to 480. At 432, for example, A4 sounds at 432 Hz and middle C at 256.87 Hz. The page treats 440 as an example, a default that you can change, not as a rule.

Moving the lowest key lower makes every note lower. From C1 the lowest key is much deeper than from C3, and C3 sits at 130.81 Hz. Use the tone generator to hear a pure tone at any frequency in the table.

What does sustain do, and how do I use it?

Sustain works like the right pedal of a piano. With it on, a note keeps sounding after you lift your finger, until you switch sustain off. Hold Space while you play, or press the Sustain button once to keep it on. Letting go of Space, or pressing the button again, lets all the held notes fade away.

Use it for flowing music where one chord should melt into the next, and let go for short, clear notes. Sustain also works for slow melodies on the piano-like sound, which fades by itself after a few seconds even if you keep the key down, just as a struck string does. The Organ sound is different: it plays as long as you hold the key, and stops when you let go.

Press Stop all sound at any time to cut every note. The page also stops all sound by itself when you switch to another tab or leave the page, so nothing keeps playing in the background.

Up to 24 notes can sound together. If you pass that, the oldest note is cut first. This keeps the sound clean on slower phones.

How does the page name the chord I am playing?

A chord is three or more notes played together. The page looks at the notes you are holding, ignores which octave each one is in, and checks them against eleven common chord shapes: major, minor, diminished, augmented, two suspended chords and five seventh chords. Hold C4 (261.63 Hz), E4 (329.63 Hz), G4 (392 Hz) and it reports C major. Hold A, C and E and it reports Am (A minor).

When the lowest note is not the root, the page adds the bass note. E, G and C above it is a C major chord with E at the bottom, shown as C (C major) over E. Four notes, G, B, D and F, give G7 (G dominant 7th). If your keys do not match a common shape, the page says so, and two notes alone are never named, because two notes fit many chords.

Use the chord name as a clue, not a verdict. Real music has chords beyond these eleven, and the same notes can be named in more than one way. To move a whole song to a different key, try the chord transposer on this site, and to find which key a set of chords belongs to, use the song key finder.

Is this a real piano sound?

No. The sound is made by your browser from simple waves. The piano-like choice mixes three of them and fades them out the way a struck string fades, which sounds soft and clean but is not a recording of a real instrument. Nothing is downloaded and nothing is sent anywhere.

That makes the page fast and light, and it works the same on a phone and a computer. It is good for finding a note, checking a melody by ear, singing along or picking out a chord. For a concert grand sound, a recorded instrument will always do better.

Use it with

Questions

Why is there no sound when I press a key?

Check that your device is not muted and the volume slider is above zero. Browsers only start sound after a tap or key press on the page, so press once more. Also check that the tab is the one in front.

Which letters play the black keys?

On the bottom row, S, D, G, H and J are the black keys. On the upper row they are 2, 3, 5, 6 and 7. The letters are printed on the keys when Show on keys is set to computer keys or both.

How do I play more than one note at a time?

Press several letters at once on a computer, or touch several keys at once on a phone. Hold three or more and the page names the chord for you.

What is middle C on this piano?

Middle C is C4, key number 60, at 261.63 Hz when A4 is 440 Hz. With the lowest key set to C3 you play it with Q.

Can I change the tuning?

Yes. Type a value from 400 to 480 in the Pitch of A4 box. Every note moves with it. The default of 440 Hz is only an example.

Does the page record or send what I play?

No. The sound is made on your device and the notes you play stay in the page. Nothing is uploaded.

The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.