No piano at home? This free online piano gives you one full octave — C4 to C5, white and black keys — that you can play with your mouse, your touch screen, or your computer keyboard. The sound is synthesized live with the Web Audio API, so it starts instantly with no samples to download and no app to install.
It is a real instrument to practise on, not a toy: A4 is tuned to 440 Hz, the keys follow the standard piano layout, and the tone has a gentle decay like a real piano string. Keep time with the Metronome while you practise, or check your pitch against the Chromatic Tuner when you sing along.
How to use
- Click a white key, or press A S D F G H J on your keyboard, to play a note.
- Press W E T Y U for the black keys — sharps and flats between them.
- Adjust the volume slider if the notes are too loud or too quiet.
- Play the C major scale: C D E F G A B C, then try a simple song.
Why use Toolsvine
Virtual pianos usually come wrapped in ads or require an app download for a feature your browser already has. This one is a plain, honest keyboard: thirteen notes, correct tuning, computer-keyboard support, and nothing else in the way. It is the fastest way to test a melody, teach a child the notes, or practise a scale when the real piano is in another room.
How does the online piano make sound?
Each key plays two oscillators mixed together. The main voice is a triangle wave at the note's frequency, which sounds soft and flute-like, and a quiet sine wave one octave above adds the brightness a real piano string carries. A gain envelope opens the sound in 10 milliseconds, then lets it decay exponentially over about 1.8 seconds, which mimics a piano string's natural fade. Because the sound is computed, not sampled, every press is identical and there is no download delay.
The frequencies follow equal temperament, where each semitone is the twelfth root of 2 — about 1.05946 — times the previous note, all anchored to A4 at 440 Hz. Middle C, C4, is therefore 261.63 Hz, and the C an octave above it, C5, is 523.25 Hz, exactly double.
Worked example: playing the C major scale
Play the white keys from C4 to C5 in order: C4 at 261.63 Hz, D4 at 293.66 Hz, E4 at 329.63 Hz, F4 at 349.23 Hz, G4 at 392.00 Hz, A4 at 440.00 Hz, B4 at 493.88 Hz, and C5 at 523.25 Hz. The ratio between C4 and G4 is 392 divided by 261.63, which is 1.498 — almost exactly 3:2, the perfect fifth that makes a C major chord sound stable. A C major chord is C4, E4 and G4 played together: 261.63, 329.63 and 392.00 Hz, whose ratios are close to 4:5:6, the simplest consonant chord in Western music.
| Note | Key | Frequency |
|---|---|---|
| C4 (middle C) | A | 261.63 Hz |
| D4 | S | 293.66 Hz |
| E4 | D | 329.63 Hz |
| F4 | F | 349.23 Hz |
| G4 | G | 392.00 Hz |
| A4 | H | 440.00 Hz |
| C5 | K | 523.25 Hz |
What should a beginner play first?
Start with the C major scale, up and down, with the metronome at 60 BPM — one note per beat, even and clean. Then learn the three primary chords: C major (C E G), F major (F A C) and G major (G B D), which together cover most simple songs in the key of C. A good first song is Ode to Joy, which uses only the white keys: E E F G G F E D C C D E E, with a D held a little longer at the end of each phrase. Practise ten minutes a day and the scale will feel natural within two weeks.
For children, the keyboard mapping is the easiest way in: the letters A through K run along the home row in the same order as the notes, so a child can find C by pressing A and walk up the scale by moving one finger to the right.
Frequently asked questions
Which computer keys play the piano?
The white keys run along the home row: A is C4, S is D4, D is E4, F is F4, G is G4, H is A4, J is B4, and K is C5. The black keys sit on the row above: W is C-sharp, E is D-sharp, T is F-sharp, Y is G-sharp, and U is A-sharp. Click anywhere on the tool first so the page has keyboard focus, then play.
Is the piano tuned to A440?
Yes. A4 is exactly 440 Hz, the international standard, and every other note is calculated from it in equal temperament, with each semitone a ratio of the twelfth root of 2. Middle C is 261.63 Hz and the C above it is 523.25 Hz. Your playing will match any other instrument tuned to A440, including a real piano.
Can I play chords on the online piano?
Yes. Click or press two or three keys at once, or hold one key while you press another — each note is a separate oscillator, so chords play cleanly. Try C major first: C4, E4 and G4 together. The sound decays over about 1.8 seconds, so a chord rings like a real piano chord rather than cutting off.
Does the online piano work on a phone or tablet?
Yes. The keys are touch buttons, so you can tap them with your fingers on any phone or tablet, and the sound plays through the speaker or headphones. Hold the phone in landscape for the widest keys. The computer-keyboard mapping only works on a device with a physical keyboard, so on a phone use touch.
Why is there only one octave?
One octave, C4 to C5, keeps the keys large enough to tap reliably on a phone and covers the range a beginner needs: the C major scale, the three primary chords, and simple songs such as Ode to Joy and Twinkle Twinkle Little Star. The tool is designed for quick practise and melody testing rather than full pieces, which is where a real keyboard belongs.
What is the difference between a sharp and a flat?
They are the same key with two names. The black key between C and D is called C-sharp when you go up from C and D-flat when you go down from D — the note is identical at 277.18 Hz. Which name you use depends on the key of the music, not on the sound. This piano labels the black keys as sharps, which is the convention in the key of C major.