Online Piano

This online piano lets you play three octaves right in your browser. Click or tap the keys, or use your computer keyboard: the bottom letter row plays the lower octave and the top row the upper one. Switch between piano, electric piano and organ, hold notes with sustain, move up or down an octave, and show note names as letters or Do Re Mi.

Octave
C3

Computer keyboard: Z to / plays the lower row, Q to ] the upper row, with S D G H J and 2 3 5 6 7 9 0 for the black keys. Space turns sustain on and off.

How to play the online piano

Click or tap any key to play it, and slide across the keys for a glissando. On a phone or tablet you can press several keys at once with different fingers. The keys light up while they sound, so you can follow what you play.

On a computer, the keyboard is faster. The row from Z to the slash key plays the lower white keys, with S, D, G, H and J for the black keys between them. The row from Q to the closing bracket plays the upper octave, with the number keys as black keys. Press Space to switch sustain on and off, and use the Octave buttons to move the whole range up or down.

Who uses a virtual piano

Beginners try out their first melodies before buying an instrument. Singers find their starting note, songwriters test a chord idea, and music students check an interval from their homework. Teachers use it on a projector in class, and many people simply enjoy playing a tune for fun on a break.

How the online piano makes its sound

Online Piano

Each key is played by the Web Audio engine built into your browser. The page mixes a few pure tones, a main note and its overtones, and shapes them with a quick attack and a natural fade. Higher notes fade faster, just like real piano strings, and the organ keeps sounding while you hold the key.

Notes follow standard tuning, with A4 at 440 Hz and middle C, also called C4, at about 261.63 Hz. Each key is 2 to the power of 1/12 higher than the one before, so twelve keys make an octave and double the frequency. You can see every value in the table of piano key frequencies.

A real piano has 88 keys, from A0 to C8: 52 white and 36 black. This page shows three octaves at a time, which is enough for most songs. The Octave buttons let you reach from the deep bass at C1 up to the top C8.

Note names: letters or Do Re Mi

In English-speaking countries and in much of Asia, the white keys are named with letters: C D E F G A B. In France, Italy, Spain, Romania and many other places people say Do Re Mi Fa Sol La Si. The Key labels list lets you choose either system, or show the computer key that plays each note.

German and some Central European countries call the note B by the letter H, and use B for B flat. If a German score says H, play the white key just below C. Black keys take the name of a neighbour with a sharp or a flat, so the black key between C and D is C sharp or D flat.

To find middle C on a real piano, look for the group of two black keys nearest the middle of the keyboard. The white key just to the left of that group is C. On this online piano it is marked C4 when letters are shown.

First songs to play

Start with Ode to Joy by Beethoven. Its first line is E E F G G F E D C C D E E D D, all on white keys with one hand. Then try Twinkle Twinkle Little Star: C C G G A A G, F F E E D D C. Both use only five or six notes, so your hand barely moves.

For Happy Birthday, start on G: G G A G C B, then G G A G D C. Play it slowly first and speed up once the notes feel easy. Turning on sustain makes simple melodies sound fuller, but switch it off for fast passages, or the notes will blur together.

Practise a little every day rather than a lot once a week. Ten minutes of slow, careful playing does more than an hour of rushing. Keep a steady beat with a metronome, and only raise the tempo when you can play the piece without stopping.

Limits of a computer keyboard

A computer keyboard is not a piano. It cannot play softer or louder depending on how hard you press, and many keyboards cannot register more than three or four keys at once. If a chord drops notes, try another key combination or test your keyboard’s limits first.

Sound can also lag a little. Bluetooth headphones and speakers often add a delay of a fifth of a second or more, which makes playing feel slow. Wired headphones or the built-in speakers react much faster. This page does not read MIDI keyboards, so it is best for trying ideas rather than serious practice.

Practising regularly? Keep time with our metronome, tune a guitar to play along with the guitar tuner, and find out how many keys your keyboard can press at once with the keyboard tester.

Need a tool like this built for your business?

We build fast, private web tools and apps that run in the browser. That includes calculators, booking widgets and internal dashboards.

Talk to us about a web tool

Frequently Asked Questions

Is this online piano free?

Yes. It is free, needs no download and works in any modern browser.

Can I play with my computer keyboard?

Yes. Z to / plays the lower row and Q to ] the upper row. The keys above them play the black notes.

Does it work on a phone or tablet?

Yes. Tap the keys, and use several fingers for chords. Turn the phone sideways for bigger keys.

How many keys does it have?

It shows three octaves, 37 keys. The Octave buttons move the range from C1 up to C8.

What does sustain do?

It keeps notes sounding after you let go, like the right pedal on a real piano.

Online piano: more questions

Can I see Do Re Mi instead of letters?

Yes. Choose Do Re Mi in the Key labels list.

Where is middle C?

Middle C is C4. With letters shown, it is the key marked C4.

Why do some chords miss notes?

Many computer keyboards cannot register more than a few keys at once. Try another combination.

Can I connect a MIDI keyboard?

Not on this page. It plays from the mouse, touch screen and computer keyboard.

Can I record what I play?

Not on this page. Use a screen recorder with system audio if you want to keep a performance.

A PROJECT STARTS WITH A CONVERSATION

Tell us what
you have in mind.

Share the outcome you need, your existing systems and any constraints. You don't need a technical specification to start.

If the form does not work, email us directly at contact@mecanik.dev

Direct engineering support

Direct technical collaboration.
A clear scope and accountable delivery.