Music Tool

Play Xylophone Right in Your Browser

A full virtual xylophone with a row of warm wooden bars and a bright, sampled tone. Play with your computer keyboard or click the bars, choose the root note and scale, and switch between natural wood and Boomwhacker colours — no app or account needed.

Start Playing
Play Xylophone Right in Your Browser
Free Tool

Play Xylophone Online

Click the bars or use your computer keyboard — the number row maps to the bars from left to right. Change the root note, scale, and colours.

⏳ Loading xylophone samples…

How to Play

Keyboard

1 2 3 4 5 6 7 8 9 0 …

The number row plays the bars from left to right.

Root note

Pick the starting note of the xylophone — the bars are built up from there.

Scale

Choose which scale the bars follow, from Major and Minor to Pentatonic, Blues, and Chromatic.

Colour

Switch between natural wood bars and multi-coloured bars matching Boomwhackers.

Computer keyboard mapped to xylophone bars
01

Computer Keyboard to Wooden Bars

Try It Now
Xylophone bars arranged in a scale
02

Pick Any Root Note and Scale

Change the Scale
Colourful xylophone bars matching Boomwhackers
03

Boomwhacker Colours

Try Colours
How It Works

How to use the virtual xylophone

1

Open the page and play

The xylophone loads a sampled sound automatically. Click any bar or use your keyboard number row to strike it. No sign-in, no plugin, no download.

2

Set the root note and scale

Click Root note to change the starting note and Scale to change which scale the bars follow, so the whole xylophone is tuned to what you want to play.

3

Colour and share

Click Color to switch between wood and Boomwhacker colours. Your root note, scale, and colour are saved in the page URL — copy it to save or share your setup.

Deep Dive

How the Online Xylophone Works

The xylophone plays a real recorded wooden-bar sample across a single row of bars tuned to the root note and scale you choose.

How the Online Xylophone Works
01

Warm Sampled Wooden Tone

Each bar triggers a real recorded xylophone sample loaded on demand, so the tone is warm and woody rather than synthesised. Notes ring out and decay naturally, just like striking a real bar with a mallet.

VoiceSampled xylophone
PlaybackWeb Audio API in your browser
02

Scale-Based Bar Layout

Unlike a piano, the xylophone shows a single row of bars that follow a scale from your chosen root note. Choose Major, Minor, Dorian, Mixolydian, Major or Minor Pentatonic, Blues, or Chromatic, and the bars rebuild so every one is in key.

ScalesMajor, minor, modes, pentatonic, blues, chromatic
RootAny of the 12 notes, sharp or flat
03

Keyboard Mapping

The number row of your computer keyboard plays the bars from left to right, and the top letter row continues past the tenth bar. That makes it easy to play a run up the scale with one hand.

Bars 1–101 2 3 4 5 6 7 8 9 0
BeyondQ W E R T continue the run
04

Boomwhacker Colours and Sharing

Toggle between natural wood and the Boomwhackers colour scheme, where each note has its own colour. Your root note, scale, and colour choice are stored in the page URL, so sharing the link reproduces the exact same xylophone.

ColoursWood or Boomwhacker palette
PrivacySettings live in the URL only — no server storage

All audio plays locally in your browser. Your playing is never sent to a server.

Benefits

Why Use This Xylophone

🎵

Warm Wooden Sound

A real recorded xylophone sample, not a synthesised tone.

🎚️

Any Root & Scale

Tune the bars to any root note and a wide range of scales.

⌨️

Keyboard Play

The number row plays the bars left to right — perfect for quick runs.

🌈

Boomwhacker Colours

Switch to colour-coded bars for classrooms and learning.

🔗

Share via URL

Your root, scale, and colour are saved in the URL to share.

Instant & Free

No download, no sign-in — it runs entirely in your browser.

Who Uses It

Who Plays the Virtual Xylophone

From curious kids to music teachers, composers, and colour-coded learners.

People using a virtual xylophone in different settings
01

Kids and Beginners

Pick a simple pentatonic scale so every bar sounds good together, turn on Boomwhacker colours, and let kids explore melodies by ear without hitting a wrong note.

Tip: choose Major Pentatonic — every bar sounds great in any order.

02

Music Teachers and Classrooms

Match the on-screen colours to physical Boomwhackers, set the class scale, and share the URL so every student sees the same layout on their own screen.

ShareCopy the URL to send your exact setup
03

Composers and Producers

Sketch a bright mallet line in a specific key and scale directly in the browser, then use it as a quick reference for your arrangement.

04

Songwriters

Try a melody idea in different scales by switching the scale selector, and hear instantly how the same shape sounds in Major, Minor, or Blues.

05

Players Without an Instrument Handy

Want to work out a tune or check a scale? The virtual xylophone is one browser tab away, with a warm, realistic sound and any scale you like.

06

Ear Training and Theory

Set a root and scale and play up and down the bars to internalise how each scale sounds, connecting the layout with the pitches you hear.

No sign-in, no download, no cost. Runs entirely in your browser.

Frequently Asked Questions

Do I need to install anything to play?

No. The xylophone loads a real recorded sample in your browser and plays it with the Web Audio API. Just open the page and click a bar to start.

How do the keyboard shortcuts work?

The number row on your keyboard corresponds to the bars from left to right — 1 plays the first bar, 2 the second, and so on. The top letter row (Q W E R T) continues past the tenth bar.

How do I change the root note and scale?

Click Root note to choose the starting note (with sharp or flat spelling), and click Scale to choose which scale the bars follow, such as Major, Minor, Pentatonic, Blues, or Chromatic. The bars rebuild instantly.

What are the Boomwhacker colours?

Boomwhackers are colour-coded percussion tubes where each note has a fixed colour. Click Color to switch the bars from natural wood to the matching Boomwhacker colours, which is handy for classrooms and colour-coded learning.

Can I share my xylophone setup?

Yes. Your root note, scale, and colour choice are stored in the page URL. Copy the address from your browser and anyone who opens it will see the exact same xylophone.

What is the difference between a xylophone and a glockenspiel?

A xylophone has wooden bars and a warm, woody tone, while a glockenspiel has metal bars and a bright, bell-like tone that sounds much higher. Both are struck with mallets.

Get Started Free

Ready to Play?

Scroll up to the bars, pick a scale, and start playing a melody.