Drum machine: make beats in your browser
Tap cells in the grid of this drum machine online, press “Play” – and the beat loops. All sounds are synthesized live in your browser. Your pattern lives in the link, so you can share it or keep working on it later.
Source: Chris Wilson (web.dev) – A Tale of Two Clocks: Scheduling Web Audio with Precision. Updated: .
How it is calculated
How to build a beat
- Each row is an instrument, each column a sixteenth note of a 4/4 bar. Tap a cell to switch the hit on or off.
- Press “Play” – the bar loops and the current column lights up. You can keep editing while it plays.
- Set the tempo (40–240 BPM) and swing. Swing delays every second sixteenth note and loosens the groove.
- Use the presets to start from a simple basic pattern and build on it.
- To share, just copy the link – pattern, tempo and swing are in it.
How the sounds are made
There are no samples: kick, snare, hi-hats, clap and tom are built from oscillators, noise and filters of the Web Audio API. Hits are scheduled ahead on the browser’s audio clock, as described in the article “A Tale of Two Clocks” on web.dev. That keeps the rhythm steady even when the page is busy.
Limits
One bar of 16 steps, six tracks, no export as an audio file. In a background tab the browser may throttle timers; the beat is then scheduled further ahead, but short dropouts are still possible. The presets are simple starting patterns, not exact copies of particular songs or styles.
Frequently asked questions
Is the drum machine free?
Yes, with no sign-up and nothing to install. It runs entirely in the browser, including on phones and tablets.
How do I share my beat?
The pattern, tempo and swing are automatically part of the page link. Just copy it or use the share button.
What does the swing slider do?
It pushes every second sixteenth note slightly later. At 0 % the beat is straight; with more swing it sounds looser and more shuffled.
Can I save the beat as an MP3?
No, there is no audio export. You can reopen the pattern at any time via the link, though.
Why does the beat stutter in the background?
Browsers throttle timers in inactive tabs. The drum machine then schedules further ahead, but dropouts cannot be ruled out completely.
Sources and legal basis
- Chris Wilson (web.dev) – A Tale of Two Clocks: Scheduling Web Audio with Precision
- MDN Web Docs – OscillatorNode (Web Audio API)
- MDN Web Docs – BiquadFilterNode (Web Audio API)
- W3C – Web Audio API
- WHO – Deafness and hearing loss: Safe listening
As of: · Editorial policy
Related tools
- Online metronomeFree online metronome: 20–300 BPM, time signatures from 2/4 to 12/8, accents per beat, subdivisions and tap tempo. Sample-accurate, no app needed.
- Tap BPM: tap along to find the tempoTap BPM online: tap the pad or any key in time with the music and instantly see the BPM, how steady your timing is, plus half and double tempo.
- Online PianoOnline piano with 5 octaves: play by keyboard, mouse, touch or MIDI, see the chord you hold, record your melody and share it as a link. Free, no sign-up.
- BMI calculator (WHO categories)BMI calculator in lb and ft/in or kg and cm: your body mass index with WHO category on a colour scale, healthy weight range for your height and BMI Prime.
- White Noise & Rain SoundsFree white, pink and brown noise plus rain sounds with thunder, looping endlessly in your browser. Mix them freely, set a sleep timer with gentle fade-out.
- Mayan calendar converterMayan calendar converter: turn any date into the Long Count, the Tzolk’in day and the Haab’ date, or a Long Count back into our calendar – GMT correlation.
- Wilks calculator with DOTS and IPF GL pointsWilks calculator for powerlifting: enter bodyweight and total to get Wilks, DOTS and IPF GL points side by side – classic, equipped and bench only.
- SWOLF CalculatorSWOLF calculator: add the time and strokes for one pool length, or average a whole swim, and see your SWOLF score, pace per 100 and distance per stroke.
- Vitamin D: IU to mcg converterConvert vitamin D from IU to mcg and back: 1 mcg = 40 IU, so 1,000 IU = 25 mcg. With the daily intakes and upper limits for each age from MedlinePlus.