Virtual Piano
Free online piano keyboard. Play with mouse, touchscreen, or computer keys. Every note shows its Hz frequency.
Click a key or press a keyboard key to play
Quick Chords
Computer Keyboard Layout
White Keys (bottom two rows)
Black Keys (top row)
Note Frequencies for the Current Octave
| Note | Hz | MIDI | Enharmonic |
|---|---|---|---|
| C4 | 261.63 Hz | 60 | - |
| D4 | 293.66 Hz | 62 | - |
| E4 | 329.63 Hz | 64 | - |
| F4 | 349.23 Hz | 65 | - |
| G4 | 392.00 Hz | 67 | - |
| A4 | 440.00 Hz | 69 | - |
| B4 | 493.88 Hz | 71 | - |
| C5 | 523.25 Hz | 72 | - |
| D5 | 587.33 Hz | 74 | - |
| E5 | 659.26 Hz | 76 | - |
| F5 | 698.46 Hz | 77 | - |
| G5 | 783.99 Hz | 79 | - |
| A5 | 880.00 Hz | 81 | - |
| B5 | 987.77 Hz | 83 | - |
What Is a Virtual Piano?
A virtual piano is a browser-based piano keyboard that lets you play musical notes without a physical instrument. This tool uses the Web Audio API to generate real audio tones directly in your browser, no plugins or downloads required.
Runs entirely in your browser. Works on Chrome, Firefox, Safari, and Edge on desktop and mobile.
Every note displays its exact frequency in Hz. Useful for producers tuning 808s, setting EQ, and understanding musical relationships.
Sine (purest), triangle (warm), square (organ-like), sawtooth (bright). Choose the tone that fits your need.
Piano Notes Explained
White Keys vs Black Keys
A standard piano has 88 keys: 52 white and 36 black. White keys represent the natural notes (A, B, C, D, E, F, G). Black keys are sharps and flats (C#, D#, F#, G#, A#).
The pattern repeats every 12 notes (one octave). Middle C is C4, the note in the center of the keyboard, and has a frequency of 261.63 Hz.
What Do the Numbers Mean?
The number after each note name is the octave. C4 = middle C. C5 = one octave higher. C3 = one octave lower. Each octave doubles the frequency: C4 = 261.63 Hz, C5 = 523.25 Hz.
The standard tuning reference is A4 = 440 Hz. All other notes are calculated from this using equal temperament: multiply by 2^(semitones/12) to go up.
How Producers Use a Virtual Piano
Hear what a C minor chord or G Dorian scale sounds like before building it in your DAW. Use the Quick Chords panel to play common progressions instantly.
Play notes until you find the one that matches your sample. The Hz display tells you exactly what frequency to tune your 808 or synth to.
Practice note names, intervals, and chord shapes. Use the computer keyboard layout to build muscle memory before buying a physical controller.
Cross-reference with the chromatic tuner. Play a note on your real instrument and check if it matches the Hz value shown here. A4 = 440 Hz is the standard.
Common Piano Chord Reference
| Chord | Notes | Formula | Feel |
|---|---|---|---|
| C Major | C-E-G | 1-3-5 | Bright, happy |
| A Minor | A-C-E | 1-b3-5 | Sad, emotional |
| G Major | G-B-D | 1-3-5 | Open, resolved |
| F Major | F-A-C | 1-3-5 | Warm, stable |
| D Minor | D-F-A | 1-b3-5 | Dark, melancholic |
| E Minor | E-G-B | 1-b3-5 | Brooding, tense |
| Cmaj7 | C-E-G-B | 1-3-5-7 | Lo-fi, dreamy |
| Am7 | A-C-E-G | 1-b3-5-b7 | Soulful, jazz |
| Dm7 | D-F-A-C | 1-b3-5-b7 | Hip-hop, R&B |
| G7 | G-B-D-F | 1-3-5-b7 | Blues, tension |
Click the Quick Chords panel to hear any of these played on the virtual piano above.
Use With the Full BeatKey Suite
Detect BPM and key of any audio file. Gives Camelot code for harmonic mixing.
Interactive piano chord diagrams for all 12 keys and 16 chord types.
See any scale highlighted on a piano keyboard. 18 scales, all 12 keys.
Type any Hz value and instantly see which note it corresponds to.
Tune your instrument using your microphone. Shows note, Hz, and cents.
Tune an 808 bass drum to match your track's key. Full Hz reference for C1-B3.
Frequently Asked Questions
Can I play the virtual piano with my computer keyboard?
Yes. The bottom row of keys (A, S, D, F, G, H, J, K, L) plays white keys and the row above (W, E, T, Y, U, O, P) plays black keys. This covers 2 full octaves. Use the octave buttons to shift the range up or down.
What is middle C and what frequency is it?
Middle C is the note C4. Its frequency is 261.63 Hz and its MIDI number is 60. It is the center note of the piano keyboard and the reference point for all octave numbering in standard Western music.
How many Hz is A above middle C?
A4 (concert pitch A above middle C) is exactly 440 Hz. This is the international standard tuning reference (ISO 16). Its MIDI number is 69. All other equal-tempered notes are calculated from this value.
What waveform sounds most like a piano?
Triangle wave is the closest to a piano tone in terms of harmonic content among the four simple waveforms available. Sine wave is the purest (just the fundamental frequency, no overtones). Square wave sounds like a reed organ or 8-bit game music. Sawtooth wave is the brightest and most harmonically rich.
Does this virtual piano work on iPhone and iPad?
Yes. The virtual piano works in Safari on iPhone and iPad using the Web Audio API. Tap the keys on the touchscreen or use the Quick Chords buttons to play chords. Note: on iOS, audio requires a user gesture first, so tap any key to start.
Heard a note? Find its frequency.
Play any note on the piano above, then use the Hz to Note Converter to explore related frequencies.