GuitarHarmony

Free, no account needed

Free online piano keyboard

A playable piano keyboard in your browser: three octaves on a computer, two on a phone, played with the mouse, your fingers or your computer keyboard. Turn on sustain, show the note names and light up any chord or scale to see how it is built.

What you can do with this virtual piano

The sound is a synthesised piano-like tone generated in the browser: perfect for working out notes and harmony, not meant to replace a sampled concert grand.

Finding your way on the keyboard

The keyboard repeats a pattern of 12 keys: 7 white and 5 black. The black keys come in groups of two and three, and that pattern is your map.

Middle C, written C4, sits near the middle of an acoustic piano and vibrates at about 261.63 Hz. The A just above it, A4, is the 440 Hz tuning note.

Intervals on the keyboard

The keyboard is the clearest way to see an interval: just count the keys, black and white, from one note to the next. Each step is a semitone.

SemitonesIntervalFrom C
1minor secondDb
2major secondD
3minor thirdEb
4major thirdE
5perfect fourthF
6tritoneF# / Gb
7perfect fifthG
8minor sixthAb
9major sixthA
10minor seventhBb
11major seventhB
12octaveC

Try this: play C and E together (4 semitones), then C and Eb (3). That single key is the whole difference between major and minor.

Building chords and scales in seconds

A triad stacks two thirds. Count semitones from the root:

The major scale follows the pattern whole, whole, half, whole, whole, whole, half. Starting on C, it uses only the white keys; start the same white keys on A and you get A natural minor. Play only the five black keys and you have a pentatonic scale: F# G# A# C# D#, the F# major pentatonic, which is why improvising on black keys always sounds pleasant.

Use the highlighter to check yourself: build the chord by counting, then light it up and compare.

Piano for guitarists

Guitarists often understand harmony faster on a keyboard, because every note sits in a straight line. Light up a chord here, then find the same notes in the guitar chord charts and compare the voicings. If you want to go further, the free GuitarHarmony workshop (free account) includes a chord identifier: place notes on a virtual guitar neck and it names the chord, its inversions and alternative names.

How to use it

  1. Play a few notes. Click or touch the keys, or use your computer keyboard. On a phone, turn it sideways for wider keys.
  2. Turn on note names and sustain. Show the note names until you know the layout by heart. Switch sustain on to let chords ring.
  3. Highlight a chord or a scale. Pick a root and a type: the right keys light up. Play them one by one, then together.
  4. Open the full page. Follow the link from the highlighter to the chord or scale page for inversions, intervals, the guitar version and more.

What you can do with it

Checking a melody by ear

You have a tune in your head but no instrument around. Find the first note by trial and error, then work out each next note by its distance in semitones. Write the result on blank sheet music paper.

Seeing what a chord is made of

Your song sheet says Cmaj7 and you wonder why it sounds softer than C7. Highlight both: the only difference is B versus Bb, a major seventh versus a minor seventh above C.

Ear training for intervals

Play two notes with sustain on and name the interval before counting. Start with octaves, fifths and thirds, then add fourths and sixths. Five minutes a day makes transcribing much easier.

Frequently asked questions

Is this online piano free?

Yes. It runs in your browser, free and with no sign-up. It works on computers, tablets and phones.

Can I play it with my computer keyboard?

Yes. Computer keys are mapped to piano keys, so you can play without the mouse. The mouse and touch screens work too.

How many octaves does the virtual piano have?

Three octaves on a computer and two on a phone, so the keys stay large enough to play comfortably.

How do I find middle C?

Look for a group of two black keys: C is the white key just to its left. Middle C (C4) is the C nearest the centre of a full piano; on this keyboard, turn on the note names to spot every C.

Does it sound like a real piano?

It uses a synthesised piano-like sound generated in the browser. It is clear and responsive for learning notes, chords and scales, but it is not a recorded concert piano.

More free tools

Ready to go further than the chart?

The free GuitarHarmony workshop shows every scale on the whole neck, names any chord you play and builds progressions with you. Free account, no card.

Try it free