Music TheoryPrintFree music theory tools and printable worksheets

Free online tool

Virtual Piano: Online Piano Keyboard You Can Play

Play a free virtual piano keyboard with mouse, touch or computer keys: 2 to 4 octaves, note labels, sustain, volume and live chord names for held keys.

Held notes —

Chord —

Press a key to play.

Computer keys: ASDFGHJK white, WETYU black · Z/X octave down/up.

About the Virtual Piano

Virtual Piano is a free online piano keyboard that runs in your web browser. You play it with your mouse, your finger on a touch screen, or your computer keyboard, and there is no sign-up. Nothing you enter is uploaded.

You can choose 2, 3 or 4 octaves to suit your screen. Note labels can show note names, Do Re Mi, or nothing at all. Sustain lets notes ring after you release them, and a volume control sets how loud the piano plays. When you hold several keys, the held notes and the chord name appear above the keyboard.

Use it to practise finding notes, learning chord shapes, or just playing on a computer or phone. The sound is a plain piano-like tone made in your browser, so it helps with learning notes and chords rather than hearing a recorded grand piano.

How to use the Virtual Piano

  1. Click or tap the keys to play. You can also use your computer keyboard: the home row A S D F G H J K plays the white keys, and W E T Y U plays the black keys.
  2. Press Z or X, or use the ◀ Oct and Oct ▶ buttons, to move the keyboard down or up an octave.
  3. Under Octaves, pick 2, 3 or 4 octaves to suit your screen.
  4. Under Labels, choose C D E for note names, Do Re Mi, or None.
  5. Turn on Sustain to let notes ring after you release them.
  6. Set Volume to a level you like.
  7. Hold several keys at once, or touch with several fingers. The held notes and the detected chord name appear above the keyboard.

You can change any of these while you play. On small screens the keyboard scrolls sideways so you can reach every key, and hovering over a key with the mouse shows its note name and frequency.

Learn middle C first. On the default 3-octave layout, the A key on your computer keyboard plays C4, and its label shows the note name. From there, the black keys on the W E T Y U row sit between the white keys, as they do on a real piano.

Chords are read from the lowest note up. If you play E, G and C, the tool shows C/E rather than plain C, because E is the lowest note.

How do the piano keys repeat?#

A piano repeats the same pattern of 7 white and 5 black keys in every octave. The white keys are the notes A to G. The black keys are the sharps and flats between them, in groups of two and three. Learn the group of two first, because it is the landmark for the rest of the keyboard.

Where is middle C on the virtual piano?#

The note C is the white key immediately to the left of the group of two black keys. Each C starts a new octave number in scientific pitch notation. So C4, or middle C, is the C nearest the middle of a full 88-key piano. With the 3- and 4-octave layouts, the A key plays C4. With 2 octaves, it plays the lowest C shown.

Which computer keys play which notes?#

The two letter rows work like piano keys. On the home row, A S D F G H J K L ; and ’ are the white keys. The row above, W E T Y U O P, holds the black keys, placed where they sit on a real keyboard. The table below shows the first octave from C.

Computer key A W S E D F T G Y H U J K
Note (from C) C C♯ D D♯ E F F♯ G G♯ A A♯ B C

Notes with two names are shown with sharps, so D♭ appears as C♯.

How does the chord name appear?#

The page reads the held notes from lowest to highest and looks up their pitch classes in a chord dictionary. The lowest note is treated as the bass. For example, C, E and G give C major. If you hold E, G and C, the name is C/E, a slash chord, because the bass note is E.

How do sustain and volume work on the virtual piano?#

Turn on Sustain to let notes keep ringing after you release their keys, the way a sustain pedal works on a real piano. Use Volume to set how loud the notes play.

  1. Click Sustain to turn it on.
  2. Play one or more keys. Each note keeps ringing after you let go.
  3. Move the Volume control to make the sound louder or quieter.

Sustain is handy for holding a chord while you play a melody over it. The sound is synthesised in your browser, so it is a plain piano-like tone rather than a recording of a real instrument.

Frequently asked questions

Is the sound a recording of a real piano?

No. The tone is synthesised in your browser, so it is a plain piano-like sound rather than a recording of a real instrument.

Are the pitches the same as on the note frequency calculator?

Yes. Both tools use equal temperament with A4 = 440 Hz, so each key’s frequency matches the 88-key table. Hover over a key to see its frequency.

What does the sustain button do?

It works like a sustain pedal. With Sustain on, notes keep ringing after you release the key.

Why does a chord show as a slash chord?

Because the lowest held note is taken as the bass, a first-inversion triad is reported as a slash chord. E, G and C give C/E.

Where can I find chord fingerings?

Fingerings and voicings are in the chord library. The tool only names the chord; it does not show hand positions.

Can I play chords on a computer keyboard?

Yes. Hold several keys together, and the chord name appears when the held notes form a chord that can be identified.

Is it free and does it need an account?

Yes, it is free, and you do not need an account or sign-up. It runs in your browser, and nothing you enter is uploaded. The sound is synthesised in your browser, so no samples are downloaded.

Can I use it on a phone?

Yes. On narrow screens, the keyboard scrolls sideways inside its own panel. Touch several keys at once with different fingers to play chords.