An online piano lets you play music straight from your browser. This online piano has a two-octave keyboard you can play by clicking, tapping or using your computer keyboard, with a choice of octave, a sustain switch and a volume control. Each key shows its note name, and the last note you played is displayed with its exact frequency, which is handy for learning notes, practicing melodies or checking a pitch.
How the piano is tuned
The keys are tuned in twelve-tone equal temperament, the standard tuning for a modern piano, with the A above middle C, called A4, tuned to 440 Hz. Every octave is made of twelve steps called semitones, and going up an octave doubles the frequency: A4 is 440 Hz and A5 is 880 Hz. Each semitone multiplies the frequency by the twelfth root of two, about 1.059463. So A♯4 is about 466.16 Hz, B4 about 493.88 Hz, and C5 about 523.25 Hz.
Playing with your computer keyboard
The keyboard row from A to the apostrophe plays the white keys, starting on C: A is C, S is D, D is E, F is F, G is G, H is A, J is B, K is the next C, and so on. The keys above them, W, E, T, Y, U, O and P, play the black keys in between. Each key on screen shows its letter. Change the starting octave to move the whole keyboard up or down.
How to use the online piano
- Click or tap a key to play it, or use your computer keyboard.
- Choose the starting octave to play lower or higher notes. C4 is middle C.
- Turn on sustain to let notes ring after you release them, like holding the sustain pedal.
- Adjust the volume with the slider.
Learning the keyboard
Piano keys repeat in a pattern of seven white keys and five black keys. The black keys come in groups of two and three. C is always the white key just to the left of a group of two black keys, which is the easiest way to find your place. The white keys are C, D, E, F, G, A and B; each black key is the sharp of the white key to its left and the flat of the white key to its right, so C♯ and D♭ are the same key.
Simple tunes to try
- Scale of C major: play the white keys from C to the next C, keys A to K on your keyboard.
- Hot cross buns: E D C, E D C, then C C C C D D D D, then E D C.
- Mary had a little lamb: E D C D E E E, D D D, E G G.
Finding a pitch
Because each note shows its frequency, you can use the piano to find a reference pitch for tuning a guitar or singing. Play the note you need and match it. For example, the open A string of a guitar is A2 at 110 Hz: set the octave to C2 and play the A key.
Is it private?
Yes. The sounds are generated by your browser. Nothing is recorded, and the microphone isn't used.
Note frequencies
This table shows the frequency of each note in the octave above middle C, worked out from A4 = 440 Hz and the twelfth root of two:
| Note | Frequency (Hz) |
|---|---|
| C4 (middle C) | 261.63 |
| D4 | 293.66 |
| E4 | 329.63 |
| F4 | 349.23 |
| G4 | 392.00 |
| A4 | 440.00 |
| B4 | 493.88 |
| C5 | 523.25 |
Each note an octave higher has double the frequency, and each note an octave lower has half.
Sound and sustain
Each key starts with a quick, bright attack and then fades gradually, like a struck string. When you let go of a key, the note stops shortly afterwards. With sustain switched on, notes keep ringing until they fade by themselves, which lets you build up chords and smooth, connected phrases. Turn sustain off again for crisp, separate notes.
Playing chords
You can press several keys at once to play a chord. A C major chord is C, E and G: A, D and G on your computer keyboard. An A minor chord is A, C and E: H, K and the semicolon key one octave up. On a touchscreen, use several fingers. Some computer keyboards can only register a few keys pressed together, so if a note in a big chord doesn't sound, try clicking or tapping instead.
Using it on a phone or tablet
On a touchscreen, tap the keys directly. Turn the device sideways for wider keys, and scroll the keyboard left or right if it doesn't fit. Make sure the ringer or silent switch isn't muting web audio.
Common mistakes
- No sound on a phone with the ringer switch off; check the switch and volume.
- Keyboard keys not working while a text box is selected; click the piano first.
- Sustain left on, making notes blur together.
- Several keys at once on some keyboards; some computer keyboards can't register many keys together.
What next
Use this often? Add Online Piano to your Home screen.
Frequently asked questions
How do I play the online piano?
Click or tap the keys, or use your computer keyboard: A to ' for white keys and W, E, T, Y, U, O and P for black keys.
What frequency is middle C?
Middle C, C4, is about 261.63 Hz when A4 is tuned to 440 Hz.
How is the piano tuned?
In twelve-tone equal temperament with A4 at 440 Hz; each semitone multiplies the frequency by the twelfth root of two.
Can I play lower or higher notes?
Yes. Change the starting octave from C2 up to C5.
Does it record my playing?
No. Sounds are made in your browser and nothing is recorded or sent.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.