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

🎵 Free Virtual Xylophone Online - Play Xylophone Free

What is a virtual xylophone?

The virtual xylophone is a browser-based percussion instrument with 25 keys in two rows: 15 white C-major bars from C5 to C7, plus 10 black sharp bars above them, laid out like a piano keyboard. Every sound is synthesized in your browser, so nothing is uploaded.

The white bars follow real xylophone proportions: long bars on the left for low notes, shorter bars on the right for high notes. Click or tap a bar to strike it, then hold the mouse button and sweep across the bars for a fast glissando. The long keys on the left are the low notes.

The layout borrows from a piano keyboard, but the proportions stay true to the real instrument. Low bars are long, high bars are short — a real xylophone gets its pitch from bar length, and the ratios here copy that geometry.

Striking a bar lights it up briefly and fires three sine oscillators: the fundamental, a second partial at half volume, and a third at a tenth. A 200 Hz highpass filter cuts the mud, leaving the bright ding you expect from a wooden bar.

Recording works like the rest of the site: hit Record, play, hit Stop, and download a WAV at 44.1 kHz, 16 bits. The renderer runs on your device, so nothing you play ever leaves the browser.

There is no keyboard mapping on this instrument. Click, tap or drag — mouse and touch both work, and holding the button while sweeping across the bars gives a fast glissando.

The black bars cover the sharps and flats, so melodies outside C major work too. The white bars alone give you every note of C major, which is why beginner tunes come out right on the first try.

It runs on the standard Web Audio API, so old laptops and phones handle it without an install. Once the page is open, no network is needed.

Compared with the marimba, this is the brighter, smaller cousin. The sound decays in about a second, the way a real bar does, so fast passages stay clean instead of blurring together.

Pro Tips

  • Tip: the white bars form a full C-major scale, so any white bar stays in key. Start with simple tunes like Twinkle Twinkle Little Star.
  • Tip: hold the mouse button and drag across the bars for a quick glissando — it works on touch screens too.
  • Tip: lay a bass line on the long left bars and the melody on the right — the split mirrors the layout of a real instrument.
  • Tip: record first, worry later. A WAV of your take makes it easy to hear what actually needs fixing, and it costs nothing to try again.
  • Tip: headphones make the bell tone obvious. Phone speakers flatten the high partials that give the instrument its character.

Frequently Asked Questions

How many keys does the virtual xylophone have?

25 keys in two rows: 15 white C-major bars (C5 to C7) and 10 black sharp bars, like a piano layout.

Does it support computer keyboard keys?

No keyboard mapping on this one — mouse and touch only, like striking a real instrument.

Can I record and download?

Yes. Record, play, Stop, and the page hands you a 44.1 kHz 16-bit WAV rendered locally.

Is there a sustain pedal?

No. A real xylophone has no pedal either — the bar rings and stops on its own, which the synth copies.

What makes the bell sound?

Three sine waves — fundamental, second and third partial — through a 200 Hz highpass. Simple recipe, recognizably metallic.

Does it need an account?

No account, no registration, no limits, no hidden costs. Open the page in any browser and play immediately.

Is it good for music lessons?

For a first instrument, yes — the layout teaches the scale visually, and every white bar is always in key.

What if there is no sound?

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

How realistic is the tone?

It has the right family resemblance, but real bars ring longer and warmer. This is a practice tool, not a concert hall.

Can I use my recordings anywhere?

Yes, they are yours. The tool is free and the files are standard WAV.

Do I need to install anything?

No. The instrument is a web page; nothing is installed and updates arrive on their own.

Is a xylophone the same as a marimba?

? No. A marimba is larger with wooden resonators, a warmer tone and a lower range; a xylophone is smaller, brighter and higher-pitched.

Why do notes stop cleanly?

The synth schedules an exponential decay on every strike, so tails fade the way wooden bars do instead of clicking off abruptly.

Which songs work best?

Anything inside two octaves of C major. Twinkle Twinkle, Mary Had a Little Lamb and Happy Birthday all sit on the white bars, and the black bars unlock everything else.

Can I record my xylophone playing?

? Yes. Hit Record, play the bars, then Stop and download your performance as a WAV file.

Is this xylophone good for kids?

Yes — the large clickable bars, two-row piano layout and white bars that are always in key make it easy for young learners.

Does the xylophone sound realistic?

? The bright bell-like tone with the fundamental plus 2nd and 3rd partials closely matches the character of a real xylophone.

What is the difference from a piano keyboard?

Same two-row layout, different job entirely. The piano has strings and sustain; the xylophone has wooden bars and a fast decay — here, about one second — and no pedal at all.

How many octaves does it cover?

Two, from C5 to C7. The white bars run the C-major scale and the black bars add the ten sharps.

Why are the bars different lengths?

That is how a real xylophone tunes itself. Longer bar, lower pitch — the lengths here run from longest to shortest at a 2:1 ratio.

Can I play songs in minor keys?

Yes. The black bars provide the accidentals, so the full chromatic set from C5 to C7 is available.