Everyday tool

Free Online Drum Machine

Turn bass drum, snare drum and hi-hat steps on or off, choose a tempo and press Play to hear your pattern.

Runs in your browser. No upload.

Create a drum beat with a 16-step sequencer. Audio is generated locally in your browser and is not uploaded.

Turn bass drum, snare drum and hi-hat steps on or off, choose a tempo and press Play to hear your pattern.

About this tool

Free Online Drum Machine made simple.

The beat is synthesized on your device with Web Audio. Nothing is recorded or uploaded. Audio timing can vary if the browser or device is suspended; start playback with a click and keep this tab open for the best result.

Guide

Using Free Online Drum Machine

This page is a small drum machine with three sounds: bass drum, snare drum and hi-hat. Each one has a row of 16 buttons. Switch a button on to make that sound hit on that step, set the speed with the tempo slider, and press Play to hear the loop. The sounds are made inside your browser, so nothing is recorded or uploaded. It is a simple way to try out a beat. It cannot save, export or add more sounds.

How to use it

  1. Look at the three rows of 16 square buttons. A lit button means that drum will play on that step. A beat is marked every four steps.
  2. Click or tap any button to turn it on or off. You can also reach the buttons with the Tab key and press Enter or Space.
  3. Move the Tempo slider to choose a speed between 40 and 240 beats per minute. The number next to it updates as you drag.
  4. Press Play to start the loop. Press the same button, now labelled Stop, to end it. Change buttons while it plays to hear the beat change.
  5. Use Clear the pattern to switch every button off at once, then build a new beat from nothing.

Worked examples

The starting beat at 120 BPM

You enter
Tempo
120
Pattern
startup default
You get
Step length
0.125 seconds
Loop length
2 seconds
Hits per loop
4 bass drum, 2 snare, 8 hi-hat

Each button is one sixteenth of a bar, so a step lasts 60 divided by 120, divided by 4, which is 0.125 seconds. Sixteen steps make 2 seconds. The default pattern has bass drum on steps 1, 5, 9 and 13, snare on 5 and 13, and hi-hat on every other step.

Run through the tool’s own code.

A slow loop at 60 BPM

You enter
Tempo
60
You get
Step length
0.25 seconds
Loop length
4 seconds

At 60 beats per minute there is one beat per second, and each beat holds four steps. So a step lasts a quarter of a second and the whole loop takes 4 seconds.

Run through the tool’s own code.

The fastest setting, 240 BPM

You enter
Tempo
240
You get
Step length
0.0625 seconds
Loop length
1 second

At 240 beats per minute a step lasts 60 divided by 240, divided by 4, which is 0.0625 seconds. Sixteen of them fill exactly one second. Values outside 40 to 240 are not accepted.

Run through the tool’s own code.

Adding one extra bass drum hit

You enter
Action
turn on bass drum step 11
Starting pattern
startup default
You get
Bass drum steps
1, 5, 9, 11, 13 are on

Clicking step 11 of the bass drum row adds one more kick to the loop. The row of numbers changes from steps 1, 5, 9 and 13 to also include 11. I did not listen to how it sounds.

Run through the tool’s own code.

When it helps

  • Sketching a simple rhythm idea before you open a full music program.
  • Learning how a 16-step sequencer works, one bar split into sixteen equal parts.
  • Practising rhythm on an instrument against a steady drum loop at a chosen tempo.
  • Teaching children about beats and patterns by switching steps on and off.
  • Checking how the same pattern feels at a slow and a fast tempo.

Limits to keep in mind

  • There are only three sounds and one bar of 16 steps. You cannot add other drums, longer patterns or more bars.
  • Tempo goes from 40 to 240 beats per minute in whole numbers. There is no swing, no volume control and no accent setting.
  • You cannot save, share or export a pattern as audio. Reloading the page brings back the starting beat.
  • Playback stops by itself when the browser tab is hidden, and it needs a click on Play before any sound can start.
  • The sounds are simple synthesized tones and noise, not recordings of real drums, so they will not sound like a studio kit.

Tips

  • If you hear nothing, check your device volume and mute switch, then press Play again after clicking on the page.
  • Keep the page in the front tab while you play, because moving to another tab stops the loop.
  • Start with the bass drum and snare, play the loop, and only then add hi-hats so you can hear what each row does.
  • Build a pattern you like, then slide the tempo up and down to find the speed where it feels right.

Sources

Common questions

About Free Online Drum Machine.

What is a 16-step drum sequencer?

It is a grid that splits one bar of music into 16 equal slots. For each drum you choose which slots make a sound. The loop plays the slots in order and then starts over, so your pattern repeats until you press Stop.

How long does one step last?

A step is a sixteenth of a bar. The page works it out as 60 divided by the tempo, divided by 4. At 120 beats per minute that is 0.125 seconds, and at 90 it is about 0.167 seconds.

What range of tempo can I pick?

From 40 to 240 beats per minute, in steps of one, using the slider. The slider starts at 120. The page checks that the value is a whole number in that range before it plays.

Why can I not hear anything when I press Play?

Check that your device is not muted, then try again. Browsers only let a page start sound after you click, and the page shows a message if audio could not start. A pattern with every step off is silent too.

Can I change the pattern while it plays?

Yes. The loop reads the buttons as it goes, so switching a step on or off should show up in the next pass. Clear the pattern also works during play and leaves the loop running with no sound.

Can I change the tempo while it plays?

The code reads the slider each time it schedules the next steps, so a change should apply while playing. I did not test it by ear. The moving highlight may not match what you hear until you stop and press Play again.

Can I save or download my beat?

No. The page has no save, export or share button, and it does not record audio. If you like a pattern, write down which steps are on in each row, because reloading the page restores the starting beat.

Why did the music stop when I switched tabs?

The page deliberately stops playback when its tab is hidden and shows a message saying so. This avoids unreliable timing in the background. Come back to the tab and press Play to start it again.

Is my audio uploaded anywhere?

No audio is sent. The page says the sounds are generated on your device with the Web Audio feature of your browser, and nothing is recorded or uploaded. Closing the page ends it.

How do I use Drum machine?

Turn bass drum, snare drum and hi-hat steps on or off, choose a tempo and press Play to hear your pattern.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.