Online Piano

Play a virtual piano with your computer keyboard, mouse or touch screen.

Online Piano tool

Play a key

Keyboard: Z to M (with S D G H J) plays the lower octave; Q to U, I O P (with 2 3 5 6 7 9 0) the upper octave.

About the Online Piano

Learning a melody, working out the notes of a song or giving a child a first taste of music does not require a real instrument. This online piano plays with your computer keyboard, mouse or touch screen, with piano, organ and synth sounds, a sustain option and note labels to help beginners find their way. Two rows of letter keys cover two octaves, so you can play simple tunes with both hands. Headphones help in shared homes.

Choose a piano, electric piano, organ or synth sound, set the volume and turn on sustain, or hold the Space bar, to let notes ring like the pedal of a real piano. The keyboard can show two to four octaves, start in any octave, and label each key with its note name or its computer key, which makes it a handy tool for learning songs and the notes on the stave.

Every note is synthesized live with Web Audio, with harmonics and a natural decay, and several notes can be played at once for chords on touch screens and keyboards. The note you play and its frequency are shown above the keys, which also makes the piano useful for checking pitches when tuning or singing.

To practise in time, use the online metronome. For a single test tone, try the tone generator, and to work out note frequencies, the frequency converter.

How to use the Online Piano

  1. Choose the rangeSet the number of octaves and the starting octave.
  2. Pick a soundChoose piano, electric piano, organ or synth, and set the volume.
  3. PlayClick, tap or use the keyboard: Z to M for the lower octave, Q to U for the upper.
  4. Hold notesTurn on sustain or hold the Space bar to let notes ring.

Online Piano features

  • Play with keyboard, mouse or touch
  • Two to four octaves
  • Piano, electric piano, organ and synth sounds
  • Chords and glissando
  • Sustain pedal (Space bar)
  • Note name or key labels
  • Shows note and frequency
  • Works offline after loading

Common uses

  • Learning simple songs and melodies
  • Checking notes when singing or tuning
  • Teaching music theory and intervals
  • Composing ideas without an instrument
  • Fun for kids on tablets

Playing the online piano in practice: a first scale and chords, sargam for eastern music, harmonium players, ear training and practising with a beat

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

An online piano lets anyone explore melody and harmony without an instrument, whether to learn basics, work out a tune or practise ear training. This guide plays a first scale and chord, connects Western note names with sargam, and covers harmonium players, ear training, practising with a metronome and recording ideas.

A worked example: a first scale and chord

A beginner finds middle C, then plays the white keys upwards, C, D, E, F, G, A, B and C, the C major scale. Playing C, E and G together produces a C major chord, and moving the same shape up to F, A and C or G, B and D gives two more chords. With these three chords, many simple songs can be accompanied, which makes early practice rewarding.

Sargam and note names

For those learning eastern music, sargam names Sa, Re, Ga, Ma, Pa, Dha and Ni correspond to the notes of the major scale when Sa is set to a chosen note. With Sa on C, the white keys from C to B give Sa to Ni in the natural scale, Bilawal thaat. Changing which key serves as Sa transposes the scale, just as singers choose a comfortable Sa.

Harmonium players

The harmonium uses the same keyboard layout as the piano, so harmonium learners can practise fingering, scales and melodies here when an instrument is not at hand. Practising regularly on a keyboard layout, even a virtual one, keeps note positions familiar between lessons.

Ear training

Playing two notes and naming the interval, such as a third or a fifth, trains the ear to recognise musical distances. Another exercise plays a short phrase and tries to repeat it by ear. Regular short sessions build the listening skills that make learning songs far easier.

Practising with a beat

Playing scales and simple pieces along with a metronome builds steady rhythm. Start slowly, keep each note even and increase the tempo only when the pattern is comfortable. Rhythm problems are easier to fix early than after habits form.

Using the computer keyboard

Playing with the computer keyboard is convenient for melodies but limits the number of simultaneous notes and expression. For serious practice, a MIDI keyboard connected to the computer gives a real keyboard feel while still using the online piano's sounds.

Recording ideas

Musicians and composers can record melodies they work out, using a voice recorder or screen recorder, before they are forgotten. Short recordings of practice also show progress over weeks, which is encouraging for beginners.

Finding melodies by ear

Working out a familiar tune by ear, note by note, is excellent practice. Start by finding the first note, then decide whether each following note goes up or down. Mistakes are part of the process and train the ear with every attempt.

Common mistakes

  • Skipping slow practice and rushing to full speed.
  • Learning note positions without learning their names.
  • Practising rhythm without a steady beat.
  • Relying only on the computer keyboard for serious practice.

Related tools

To keep a steady tempo, use Online Metronome. For reference pitches when tuning other instruments, try Tone Generator, and to record what you play, Voice Recorder.

Black keys and sharps

The black keys are the sharps and flats between white notes, such as C sharp between C and D. Playing only the black keys gives a five-note scale that sounds pleasant in almost any order, a fun way for beginners to improvise without wrong notes.

Hand position

Pianists number fingers from 1 for the thumb to 5 for the little finger, and keep fingers gently curved over the keys. Learning correct fingering from the start, even on a virtual keyboard, makes moving to a real piano much easier.

Composing simple melodies

Short melodies of four to eight notes, repeated and varied, are the building blocks of songs. Trying small changes, such as ending a phrase on a different note, teaches how melodies create tension and resolution, and makes practice creative rather than repetitive.

Teachers and feedback

An online piano is great for exploring, but a teacher, in person or online, spots problems with posture, timing and technique that are hard to notice alone. Combining regular lessons with daily practice at home gives the fastest progress.

Children's first steps

For young children, short sessions of ten minutes, simple songs and games such as finding all the C keys keep music enjoyable. Encouragement matters more than perfection in the early months.

Considerate practice

When practising on speakers in shared homes, keep the volume moderate or use headphones, especially early in the morning and late at night. Family members and neighbours will appreciate it, and headphones also let you hear details more clearly.

Learning a song step by step

Break a new song into short phrases and learn one phrase at a time, playing it slowly until it is comfortable before adding the next. Joining phrases gradually is far less frustrating than attempting the whole song at once and repeatedly stumbling at the same place.

Privacy

The piano plays in your browser. Nothing is recorded or sent anywhere.

Frequently asked questions

How do I play with my computer keyboard?

The bottom letter row, Z X C V B N M, plays the white keys of the lower octave, with S D G H J for the black keys. The top row, Q W E R T Y U I O P, plays the next octave, with the number keys 2 3 5 6 7 9 0 for its black keys.

Can I play chords?

Yes. Press several computer keys at once, or touch several keys on a touch screen. Some keyboards cannot register more than a few keys at once, which is a limit of the keyboard hardware.

What does sustain do?

Like the right pedal of a piano, sustain keeps notes ringing after you release the keys. Turn it on with the checkbox, or hold the Space bar while playing.

Why is there a delay when I play?

Some devices, especially Bluetooth headphones and older Android phones, add audio latency. Use wired headphones or the device speakers for the most immediate response. Closing other heavy apps can help too.

Which note is middle C?

Middle C is C4, which is played with the Q key when the keyboard starts at octave 3. Turn on note labels to see the name of every key.

Can I connect a MIDI keyboard?

Not at the moment. This piano is played with the computer keyboard, a mouse or touch, which work on every device without extra hardware or permissions.

Does it work on phones and tablets?

Yes. Tablets in landscape mode give the most comfortable keyboard. On small phones, choose two octaves and scroll sideways to reach all the keys. Turn your phone sideways for wider keys.

How can I learn a song on it?

Turn on note name labels, look up the notes of the melody, and play them one at a time with the mouse or the keyboard. Start slowly with a metronome, then play the phrase again until it flows.