English中文日本語한국어EspañolPortuguêsFrançaisDeutschالعربيةहिन्दीไทยTiếng ViệtBahasaРусский

🎹 Virtual Piano & Online Piano - Play Free Piano Keyboard

How the Virtual Piano Works

The virtual piano plays real recordings of a real piano. Each of the 25 keys was recorded four times, from a soft stroke to a hard strike, using the public domain Meta Open Sound library, so what you hear is a genuine piano string and hammer, not a synthetic imitation. The samples are decoded and played locally by your browser through the Web Audio API.

Play with your computer keyboard (A S D F G H J K L for white keys, W E T Y U O P for black keys), your mouse, or the touch screen. Press Record to capture your melody and download it as WAV. You can also pick one of five built-in public domain songs and watch it play itself while the on-screen sheet music highlights each note.

The keyboard has 25 keys: 15 white keys covering two octaves from C4 to C6, plus 10 black keys for the sharps and flats. It is a real two-octave instrument, not a toy row of buttons.

Computer keys follow the piano layout. A S D F G H J K L play the white notes from C4 upward, and W E T Y U O P hit the black notes between them. The rows above, Z X C V B N M and the comma, continue the scale.

An octave shifter sits above the keyboard. It moves the whole instrument by up to two octaves in either direction, and the label shows your current position. Shift down two steps and the same keys become a bass line under a right-hand melody.

Each key holds four recordings of the same note, struck from soft to hard. The sound keeps its full natural decay, several seconds from the hammer strike to the final fade, exactly the way a real string rings out.

Chords work: press several keys at once and they ring together. The piano keeps up to six simultaneous voices, which covers any chord or fast arpeggio you can hold with two hands.

Recording captures your melody and renders a WAV locally at 44.1 kHz and 16 bit. Nothing is uploaded. The samples and the recorder both run entirely in your browser.

On a phone the keyboard scrolls sideways. Tap to play and swipe to reach the other end. Two full octaves fit comfortably on any screen.

Pro Tips

  • Use headphones. Real piano recordings carry overtones and room tone that laptop speakers blur, and you can practice in libraries and offices without bothering anyone.
  • Try playing simple melodies like 'Twinkle Twinkle Little Star' starting on C4.
  • Tip: lay the left hand on A S D F and the right on J K L plus the rows above. That is the natural two-hand split.
  • Tip: record a phrase, listen back, and fix the timing; a recording reveals mistakes that feel invisible while you play.
  • Tip: use the octave shifter for bass lines. Two octaves down, the keys become a deep left-hand part that pairs with any right-hand melody.

Frequently Asked Questions

Do I need a real piano?

No. Every note you hear is a real piano recording played right in your browser, with no downloads and no signup.

Can I record and download?

Yes, Record then Stop produces a WAV at 44.1 kHz, 16 bit.

How do I reach the high notes on a phone?

Tap keys and swipe the keyboard sideways to reach the high notes.

Is the sound sampled from a real piano?

Yes. All 25 keys are real piano recordings from the public domain Meta Open Sound library, each sampled at four playing strengths, free to use and free to hear.

What songs fit 25 keys?

Melodies that stay inside two octaves: Twinkle Twinkle, Ode to Joy, Happy Birthday, and most pop hooks. Five public domain songs are built in, with auto-play and on-screen sheet music.

Can I play with two hands?

Yes. Mouse clicks for one hand and keyboard keys for the other is a common setup.

What do I need to get started?

Nothing: no account, no limits, no install. Open the page and play.

Why does the note fade?

Real piano strings take a few seconds to fall silent, and the recordings keep that whole decay, so single notes ring naturally while fast passages stay clean.

Can I use my recordings anywhere?

Yes. The WAV files are yours.

Does it need the internet after loading?

No. Everything runs locally once the page is open.

What is the lowest and highest note?

C4 at the bottom and C6 at the top by default, and the octave shifter extends both ends by two more octaves.

How do I play black keys?

Use the W E T Y U O P keys on your computer keyboard, or click them with your mouse.

Is this a good first instrument for kids?

For learning the layout and note names, yes. The two-octave range covers every beginner song.

Can I change the instrument sound?

No, the piano voice is fixed. It is one carefully recorded piano, not a collection of presets, which keeps the page light and instant.

How fast does the page load?

There is nothing to install. The piano samples load once in the background and are cached, so the instrument is ready in a moment and works offline afterwards.

Does it support a MIDI keyboard?

Not currently. Input is the computer keyboard, mouse or touch screen.

What if the sound cuts out?

Click once anywhere on the page first. Browsers block audio until the first interaction with the page.

Why do the black keys sit between the white ones?

That is the standard piano geometry. The twelve-note chromatic scale wraps two rows, so each sharp sits above and between the naturals it belongs to.

Can I play the same note twice quickly?

Yes. Every key press starts a fresh voice, so repeated notes ring clearly instead of being swallowed by the previous one.

What should a beginner learn first?

Find middle C, play the white-note scale with one finger, then try Twinkle Twinkle. The layout teaches note order by itself.

Is there a sustain pedal?

No pedal in this version. The recordings keep their natural multi-second decay, which covers short sustain, and repeated notes start fresh each time.

Are the note names printed on the keys?

Yes. Every white key shows its note name, and the black keys sit in their standard positions, which makes learning note order visual instead of memorized.

Can I record my melody?

Yes, press Record, play your tune, then download it as a WAV file.

How do I play a scale?

Put a finger on C4 and walk up the white keys to the next C. Eight steps up is a full octave, and doing it every day builds the muscle memory that everything else rests on.

What chords can a beginner try?

C major (C, E, G), F major (F, A, C) and G major (G, B, D) are the classic first three. Press all three notes at once. The piano is polyphonic, so the chord rings as one sound.

Does the keyboard layout match a real piano?

The white-to-black spacing follows the standard chromatic geometry, so the distance between a note and its sharp looks the same as on a real instrument.

Why is middle C a good starting point?

It sits in the middle of the keyboard and in the middle of most melodies. Everything above is brighter, everything below is warmer, and both directions stay reachable.

Can I practice both hands at the same time?

Yes. Left hand on the A S D F row, right hand clicking or on the J K L rows. Start with one note per hand and build from there.

Is there any latency when I press a key?

Practically none. The samples play locally on the same frame as your press, with no server round trip to wait for.

What browser gives the best experience?

Any modern browser works. Chrome and Edge are the most consistent with Web Audio, and Firefox and Safari play the instrument the same way.

Does headphone quality matter?

Mildly. Real piano recordings carry subtle overtones and a long fade. Decent headphones keep those audible, and almost any pair beats laptop speakers.

How is this different from a real piano?

The notes are genuine piano recordings, but there is no string resonance between notes, no pedal, no velocity-sensitive keys, and the range is two octaves. As a practice sketchpad it is honest about what it is not.

Can I learn to read music with this?

The note names on the keys help with pitch names, but reading staff notation needs a book or a course. This covers the keyboard half of the puzzle.

Does it work on mobile?

Yes, tap the keys with your finger. The layout is responsive.

What should I do after learning Twinkle Twinkle?

Try Ode to Joy, then Happy Birthday, then start the C major scale with both hands. You can also watch the built-in demo songs play themselves and follow the on-screen sheet music.

Can I record with the octave shifted?

Yes. Whatever range you set is what gets captured, so a bass line recorded two octaves down exports exactly as you heard it.

Does the piano ever get new features?

The instrument is deliberately small and stable. Big changes come rarely, which means the page stays fast and the layout you learn today still works next year.

What makes the piano page worth bookmarking?

It loads instantly, works offline after the first visit, and never asks for an account. It is the fastest way to check a melody idea on any device you happen to be holding.

Is it free?

Yes, completely free with no limits or registration.

How many keys does the piano have?

25: fifteen white keys across two octaves (C4 to C6) and ten black keys.

Can I shift octaves?

Yes, the octave control moves the whole keyboard two octaves up or down.

Is it polyphonic?

Yes, up to six notes at once. Chords, two-handed playing, and fast arpeggios all ring out cleanly.

Where does the piano sound come from?

Every one of the 25 keys is a real recording of a real piano, each captured at four playing strengths from the public domain Meta Open Sound library.