Keyboard · Touch · MIDI

Online Piano: Play a Virtual Piano Keyboard Free

Play the piano online with your computer keyboard, mouse, touch screen or a MIDI keyboard. Choose from four sounds, use the sustain pedal, see the chord you are playing, record and export MIDI, and learn easy songs with glowing keys that show you what to press next.

  • Up to 61 keys
  • Live chord names
  • Learn-a-song mode
  • Record & export MIDI
Labels
Keyboard octave
C3
 
 
Play a noteClick, tap or use your keyboard
SustainMIDIRec
No recording yet

Learn a song

Pick a song and the next key glows. Play it to move on, or press Listen to hear it first.

Keyboard: Z–M and Q–U play white keys, the row above plays sharps · Space sustain · ← → change octave

Why it’s better

A virtual piano that helps you play and learn

Most online pianos are just a row of keys. This one tells you what you are playing, teaches you songs and lets you keep your music.

Four sounds, instant start

Grand piano, electric piano, organ and synth pad are generated live in your browser with a touch of hall reverb. Nothing to download, so the piano is ready the moment the page opens.

Play any way you like

Use your computer keyboard, click with a mouse, play chords with several fingers on a touch screen, or connect a USB MIDI keyboard with velocity and sustain pedal support.

Live chord names

Hold down some keys and the display names the chord, such as C major, Am7 or G7, including inversions. For two notes it names the interval.

Learn-a-song mode

Choose a song and the next key glows. Play it and the next one lights up, so you can learn a melody note by note without reading music.

Record and export MIDI

Record what you play, listen back, and download it as a standard MIDI file you can open in GarageBand, FL Studio, MuseScore or any music app.

Fits your screen

Choose 25, 37, 49 or 61 keys, show note names or keyboard letters on the keys, and shift the computer keyboard up or down by octaves.

How it compares with typical online pianos
FeatureThis online pianoTypical virtual piano
Chord name displayYes, with inversionsRarely
Glowing next-key song lessonsFreeSometimes, often paid
Export recording as MIDIYesRarely
MIDI keyboard with sustain pedalYesSome
Multi-touch chords on phonesYesSome
Loading timeInstant, no sample downloadsOften several MB of samples
How to play

How to play piano with your computer keyboard

Two rows of your keyboard become two octaves of piano keys, laid out like a real keyboard.

  1. Bottom row

    Z X C V B N M play the white keys C to B. S D G H J play the black keys.

  2. Top row

    Q to U play the next octave up, and I O P continue higher. The number keys above play the black keys.

  3. Sustain and octaves

    Hold Space as a sustain pedal. Use ← and → to move both rows down or up an octave.

  4. See the letters

    Set Labels to Keys and each piano key shows its computer key, so you never have to guess.

Computer keyboard piano key map (default octave)
NoteBottom row (C3 octave)Top row (C4 octave)
CZQ (and I for C5)
C♯ / D♭S2
DXW
D♯ / E♭D3
ECE
FVR
F♯ / G♭G5
GBT
G♯ / A♭H6
ANY
A♯ / B♭J7
BMU
Easy songs

Easy piano songs with letter notes

These beginner melodies use letter notes starting around middle C (C4). Pick the song in Learn a song above and the keys will guide you, or read the letters below.

Twinkle Twinkle Little Star

C C G G A A G · F F E E D D C · G G F F E E D · G G F F E E D · C C G G A A G · F F E E D D C

Ode to Joy (Beethoven)

E E F G G F E D · C C D E E D D · E E F G G F E D · C C D E D C C

Jingle Bells (chorus)

E E E · E E E · E G C D E · F F F F F E E E E · E D D E D G · E E E · E E E · E G C D E · F F F F F E E E G G F D C

Happy Birthday

G G A G C5 B · G G A G D5 C5 · G G G5 E5 C5 B A · F5 F5 E5 C5 D5 C5

Für Elise (opening)

E5 D♯5 E5 D♯5 E5 B D5 C5 A · C E A B · E G♯ B C5 · E E5 D♯5 E5 D♯5 E5 B D5 C5 A · C E A B · E C5 B A

Common beginner chords

C major: C E G · F major: F A C · G major: G B D · A minor: A C E · D minor: D F A · E minor: E G B · G7: G B D F

Piano basics

Piano keys and notes for beginners

Finding your way around

  • White keys are named A to G and then repeat. The pattern of two and three black keys helps you find them.
  • C is the white key just left of each group of two black keys. Middle C is C4, highlighted on the keyboard.
  • Black keys are sharps and flats. The key between C and D is both C♯ and D♭.
  • A full piano has 88 keys across just over seven octaves. Most songs only use two or three octaves.

Practice tips

  • Learn one hand at a time, starting with the right-hand melody.
  • Play slowly and evenly first, then speed up once it feels easy.
  • Use Listen in Learn a song to hear how a phrase should sound before playing it.
  • Record yourself and play it back. It is the quickest way to hear what to improve.
FAQ

Online piano: frequently asked questions

How do I play the online piano with my computer keyboard?

The bottom row Z X C V B N M plays the white keys of one octave, with S D G H J for the black keys. The top row Q W E R T Y U plays the next octave up, with the number keys as black keys. Hold Space for sustain and use the left and right arrow keys to change octave.

Can I connect a MIDI keyboard?

Yes. Plug in a USB MIDI keyboard, press Connect MIDI and allow access. Notes, velocity and the sustain pedal all work. Web MIDI is supported in Chrome, Edge and Opera on desktop, but not in every browser.

How does the sustain pedal work?

While sustain is on, notes keep ringing after you release the keys, like pressing the right pedal on a real piano. Hold Space, press the Sustain button, or use the pedal on a MIDI keyboard. Releasing it stops the ringing notes.

Can I record and save what I play?

Yes. Press Record, play, then press Record again to stop. Use Play to listen back and Export MIDI to download a .mid file that opens in most music software and notation apps.

Does the virtual piano work on phones and tablets?

Yes. Tap the keys, slide your finger for a glissando, or use several fingers to play chords. Turn your phone sideways and choose 25 keys for the biggest keys.

Why is there a delay when I press a key?

Some delay comes from your device’s audio system. Bluetooth headphones and speakers add the most, so use wired headphones or built-in speakers for the most responsive playing.

How many keys does a real piano have?

A standard acoustic piano has 88 keys: 52 white and 36 black, from A0 to C8. Portable keyboards usually have 61 keys, which is the largest size offered here.

Can I learn piano with a virtual piano?

A virtual piano is a great way to learn note names, simple melodies, chords and basic music theory. To build finger technique and control of dynamics, practise on a real piano or a keyboard with full-size keys as well.

Your piano is ready

No download, no sign-up. Play, learn a song, record your ideas and take them into any music app.

Play the online piano
Scroll to Top