← Back to Online Piano

Online Piano Keys Layout

Understanding piano keys is the first step to playing piano online. This guide covers the piano keyboard layout, the names of the white and black keys, how octaves work, and the exact computer keyboard mapping our online piano uses so you can start playing in seconds.

▶ Open Online PianoPiano Chords

The Piano Keys Pattern

A piano keyboard has two kinds of keys: white keys and black keys. White keys play the natural notes — C, D, E, F, G, A, B — and black keys play the sharps and flats. The black keys are arranged in alternating groups of two and three. This pattern repeats every octave, which is what makes the piano keyboard easy to navigate once you learn it.

White Piano Keys

The seven white keys in each octave are named after the first seven letters of the alphabet:

Once you know how to find C, every other note falls into place by counting up the alphabet.

Black Piano Keys

Black keys play the sharps (#) and flats (♭). Every black key has two names depending on context: the same physical key is C# (C sharp) when approached from below and D♭ (D flat) when approached from above. This is called enharmonic equivalence. Black keys are essential for playing in keys other than C major and for adding chromatic color to melodies.

How Many Keys Does Our Online Piano Have?

Our online piano provides 61 keys covering 5 full octaves — from C2 up to C7. This is the same range as most digital piano keyboards used by students and intermediate players. A full acoustic grand piano has 88 keys (A0 to C8), but 61 keys cover the practical range needed for almost every song you will want to play. You can shift the entire keyboard up or down using the Octave controls to access the very lowest and highest notes.

Computer Keyboard Mapping

Each piano key on our online piano is mapped to a specific key on your computer keyboard. The mapping uses physical key position, so AZERTY, QWERTY, QWERTZ, Dvorak, and Colemak layouts all work the same way. Here is the layout:

Tips for Learning the Piano Keys

Now that you know the layout, start playing on our free online piano, learn piano chords, or try a song from our music sheets library.