Virtual Piano

Virtual Piano

Click or tap the keys, or play on your computer keyboard — the two letter rows are two octaves. Hold several keys for chords, use the pedal for sustain, record what you play, or pick a song and follow the highlighted key.

Every sound is synthesized in your browser as you play — there are no recordings to download, and nothing you play is sent anywhere.

Calculated on your device · formulas checked against known results · How we test

How to play the online piano

  1. Mouse or touch: click or tap a key. On a phone or tablet you can hold several keys at once for chords, and slide a finger across the keys for a glissando. Playing nearer the front edge of a key is a little louder, like striking it harder.
  2. Computer keyboard: the bottom letter row plays one octave and the top row the next one and a half — the letter on each key shows which key of your keyboard plays it. Hold keys together for chords.
  3. Octave: − and + (or the ← and → arrow keys) move the keyboard down or up an octave. The label shows the lowest C on screen; C4 is middle C.
  4. Sustain pedal: hold the space bar, or switch the pedal on with its button, and notes keep ringing after you let go of the keys — the way the right pedal of a real piano lifts the dampers.
  5. Sound, note names and volume: choose a grand piano, electric piano, organ or harpsichord; show the notes as C D E or Do Re Mi on the keys, or hide them.

The first sound may take a fraction of a second while the browser starts its audio engine; after that, each key plays as soon as you press it. For the lowest delay use wired headphones or speakers — Bluetooth often adds 100 milliseconds or more of its own.

Which computer key plays which note

The keys follow your keyboard’s physical positions, so they work on QWERTY, QWERTZ and AZERTY layouts alike. With the octave at C4:

RowKeys and notes
Bottom rowZSXDCVGBHNJM
NoteC4C♯4D4D♯4E4F4F♯4G4G♯4A4A♯4B4
Top rowQ2W3ER5T6Y7U
NoteC5C♯5D5D♯5E5F5F♯5G5G♯5A5A♯5B5

After U, the keys I 9 O 0 P [ = ] continue with C6 to G6.

Learn a song: follow the highlighted key

Choose a melody under Learn a song. The next key to play lights up in amber and the strip above the keyboard shows every note; play the right key and the next one lights up — a wrong key simply doesn’t advance, so you can take your time. Listen to the melody plays it for you first. All six are in the public domain:

The first five use only the white keys from C4 up and are the usual first pieces for beginners. Für Elise adds the black key D♯ and moves quickly between hands on a real piano, so practice it slowly.

Record what you play

Press Record, play, and press Stop recording. Play recording plays it back with the exact timing, including the sustain pedal — and with whichever sound is selected, so you can record on the piano and play it back on the organ. The recording lives only in this page and is gone when you close it; nothing is uploaded.

Playing with a MIDI keyboard

In Chrome, Edge and Opera on a computer or Android, plug in a USB MIDI keyboard and press Connect a MIDI keyboard; allow MIDI access when the browser asks. The page then plays every key you press with its velocity (how hard you hit it), and a sustain pedal plugged into the keyboard works too. Safari doesn’t support Web MIDI, so the button doesn’t appear there.

How the sounds are made

There are no recordings: every note is synthesized by your browser’s Web Audio engine the moment you play it.

Note frequencies

The keys are tuned in equal temperament with A4 = 440 Hz (the ISO 16 standard pitch): each semitone up multiplies the frequency by the twelfth root of 2, about 1.0595. A full 88-key piano runs from A0 (27.50 Hz) to C8 (4,186.01 Hz).

NoteCC♯DD♯EFF♯GG♯AA♯B
Octave 3130.81138.59146.83155.56164.81174.61185.00196.00207.65220.00233.08246.94
Octave 4261.63277.18293.66311.13329.63349.23369.99392.00415.30440.00466.16493.88
Octave 5523.25554.37587.33622.25659.26698.46739.99783.99830.61880.00932.33987.77

Middle C is called C4 here, as in scientific pitch notation; some keyboard makers, Yamaha among them, call the same key C3. In solfège, C D E F G A B are Do Re Mi Fa Sol La Si.

Tips for practicing

Frequently asked questions

Can I play chords on the computer keyboard?

Yes. Hold several keys together, for example Z C B for a C major chord (C E G). Many keyboards can only report a limited number of keys held at once, so a few combinations of four or more keys may drop a note — that is a limit of the keyboard hardware, not of the page; test yours with the keyboard tester.

Why is there a delay before the sound?

Usually the audio output: Bluetooth headphones and speakers add a noticeable delay. Wired headphones or the built-in speakers are much faster. On some phones the very first note starts the audio engine and may come late; after that the delay is short.

Does it work on phones and tablets?

Yes, with multi-touch for chords. Turn the phone sideways to see more keys, and use − and + to move between octaves. If you hear nothing on an iPhone, check the volume; the page asks Safari to play even with the ringer switch on silent, which works on recent versions.

Can I save my recording?

The recording stays in the page while it is open and can be played back with any of the four sounds. It is not stored or uploaded; to keep a performance as an audio file, play it back and record it with the voice recorder or another recording app.

Is the piano sound a sample of a real piano?

No. Every note is synthesized as you play from a physical model of a piano string’s overtones, so the page loads fast and uses no data for sound files.

Embed this calculator on your website

Free for any website or blog. Paste this code where you want the calculator to appear:

All free calculator widgets

Last updated: October 15, 2026

Menu

Categories

Finance Calculators30 calculatorsBusiness & Shopping Calculators9 calculatorsHealth & Fitness Calculators13 calculatorsMath & School Calculators23 calculatorsDate & Time Calculators19 calculatorsHoliday Countdowns17 calculatorsEveryday Tools49 calculatorsMic, Camera & Sound Tools10 calculatorsImage & PDF Tools19 calculators

CalcWorthy

AboutContactPrivacy PolicyTerms of Use

Language

Language
EnglishEnglishالعربيةArabicবাংলাBanglaDeutschGermanEspañolSpanishفارسیPersianFrançaisFrenchעבריתHebrewहिन्दीHindiBahasa IndonesiaIndonesianItalianoItalian日本語Japanese한국어KoreanBahasa MelayuMalayNederlandsDutchPolskiPolishPortuguêsPortugueseРусскийRussianไทยThaiTürkçeTurkishУкраїнськаUkrainianاردوUrduTiếng ViệtVietnamese简体中文Simplified Chinese