Virtual Xylophone
Click, tap, or play the keyboard row shown on each bar. Two octaves, C4 to C6, laid out like a real xylophone: naturals in front, sharps behind.
Last updated
How to play the virtual xylophone
- Click or tap a bar, or press the key shown on it.
- Play two octaves, C4 to C6, with sharps on the back row as on a real xylophone.
About this tool
Each bar is synthesised with a sine fundamental plus two quieter, deliberately inharmonic overtones (real xylophone bars ring at roughly 2.76× and 5.4× their fundamental, not clean integer multiples, because of how a free vibrating bar resonates) and a short mallet-click noise transient on the attack, all decaying quickly. It's an approximation of a xylophone's bright, woody timbre, not a sampled instrument.
Nothing here is recorded or uploaded — sound is generated and played entirely in your browser.
Questions about the virtual xylophone
Can children play it?
Yes. It’s simple to tap on a tablet or phone, and there are no wrong notes to worry about.
Is it a xylophone or a glockenspiel?
A xylophone has wooden bars with a short, woody sound; a glockenspiel has metal bars that ring longer. This imitates a xylophone.
What notes does it cover?
Two octaves, from C4 (middle C) to C6, including the sharps.
Can I play a song?
Yes. Use the key labels to play tunes like “Twinkle, Twinkle, Little Star” from the keyboard.