About this tool
Play a virtual piano with your mouse, touch screen or computer keyboard: four instruments, sustain pedal, metronome and melody recording to WAV.
This online piano is a virtual keyboard you can play with a mouse, several fingers on a touch screen, or the keys of your computer keyboard. Every note is synthesised live with the Web Audio API — the grand piano voice stacks slightly stretched harmonics with a hammer-like attack and a decay that is longer in the bass, just as real strings behave — so no samples are downloaded and notes respond instantly. Switch to electric piano, organ or synth, show note names as letters or as Indian sargam, hold Space for the sustain pedal, keep time with the metronome, and record a melody to play back or save as a WAV file.
Open Online Piano on AltFTool — it loads instantly in your browser.
Click or tap the keys, or use your computer keyboard — Z to M plays the lower octave and Q to P the upper one, with S D G H J and 2 3 5 6 7 for the black keys; the Keyboard keys button shows the letters on the keys.
Pick an Instrument (Grand piano, Electric piano, Organ or Synth), set Octaves to 1–4, and move the Range with the arrow buttons or ← and → keys.
Hold Space or press Sustain for the pedal, choose Labels C D E or Sa Re Ga, and switch Metronome on at the BPM you want.
Press Record, play your melody, then Stop recording; Play back hears it again and Download WAV saves it as a 44.1 kHz stereo file.
Multi-touch and glissando on phones and tablets, every key on the computer keyboard mapped to a note, and a simple velocity: pressing lower on a key plays it louder.
Grand piano, electric piano, organ and synth are all generated in real time, with a compressor on the output so big chords do not distort.
Record what you play, including the sustain pedal, play it back with any instrument, and render it offline to a 44.1 kHz stereo WAV file.
A metronome from 30 to 240 BPM with 2, 3, 4 or 6 beats, octave shifting from C1 to C8, and labels you can switch off when you want to play by ear.
| Note | Sargam | Key (lower row) | Key (upper row) | Frequency at octave 4 |
|---|---|---|---|---|
| C | Sa | Z | Q | 261.63 Hz |
| C♯ / D♭ | re (komal) | S | 2 | 277.18 Hz |
| D | Re | X | W | 293.66 Hz |
| D♯ / E♭ | ga (komal) | D | 3 | 311.13 Hz |
| E | Ga | C | E | 329.63 Hz |
| F | Ma | V | R | 349.23 Hz |
| F♯ / G♭ | Ma' (tivra) | G | 5 | 369.99 Hz |
| G | Pa | B | T | 392.00 Hz |
| G♯ / A♭ | dha (komal) | H | 6 | 415.30 Hz |
| A | Dha | N | Y | 440.00 Hz |
| A♯ / B♭ | ni (komal) | J | 7 | 466.16 Hz |
| B | Ni | M | U | 493.88 Hz |
The upper row plays one octave above the lower row. Frequencies are equal temperament with A4 = 440 Hz.
The bottom letter row plays the lower octave: Z, X, C, V, B, N and M are the white keys C to B, and S, D, G, H and J are the black keys. The top row plays the next octave: Q to P are white keys and the number keys 2, 3, 5, 6, 7, 9 and 0 are black keys. Turn on Keyboard keys to see each letter printed on its key.
Yes. The piano is polyphonic, so you can hold several computer keys at once or press several keys with different fingers on a touch screen. Some computer keyboards cannot register more than a few keys pressed together — a hardware limit called ghosting — so if a chord note is missing, try a different fingering or use the mouse and touch screen.
Yes. It uses pointer events, so it supports multi-touch: tap several keys at once or slide a finger across them for a glissando. On a narrow phone the keyboard starts with one octave so the keys are wide enough to hit; turn the phone sideways and choose 2 or more octaves for a wider range.
Hold Space and notes keep ringing after you release their keys, just like pressing the right pedal on a real piano. Let go of Space and every sustained note is damped. If you are using touch or a mouse, press the Sustain button to latch the pedal on until you press it again.
Sa Re Ga Ma Pa Dha Ni is sargam, the solfège used in Indian classical music. With C as Sa, the white keys are Sa, Re, Ga, Ma, Pa, Dha and Ni. The black keys are the komal (flat) notes re, ga, dha and ni, shown in lower case, and tivra Ma (F sharp), shown as Ma'.
A standard acoustic piano has 88 keys — 52 white and 36 black — covering seven octaves and a minor third, from A0 to C8. This online piano shows one to four octaves at a time and lets you shift the visible range anywhere from C1 to C8, which covers nearly the whole range of a full-size piano.
Yes. Press Record and play; the notes, their timing and the sustain pedal are captured. Stop recording, then press Play back to hear it, or Download WAV to render it into a stereo 44.1 kHz WAV file using the instrument currently selected. The last melody is kept in this browser so it is still there next time.
Most delay comes from the audio output of your device, not the piano. Wired headphones or speakers usually feel instant; Bluetooth headphones can add 100 to 300 milliseconds of lag. Closing other heavy tabs helps, and the page asks the browser for its lowest-latency audio mode.
It is a good way to learn note names, find melodies, practise reading the keyboard layout and work on rhythm with the metronome. It cannot teach hand position, finger strength or touch the way a weighted keyboard can, so if you get serious, combine it with a real or digital piano and a teacher or course.