Skip to the instrument
Tic Tac Toe

Virtual Drums

Play these virtual drums with your computer keyboard, mouse, or fingertips: 12 pads, an acoustic and an electronic kit, and a 16-step beat maker for your own loops.

Play the virtual drums

Tap or click the pads, with several fingers at once if you like. On a computer keyboard, press the letter on each pad: Q W E R for cymbals and hi-hats, A S D F for toms and clap, Z X C V for kick, snare, rim, and cowbell. Space is a second kick pedal.

Kit and sound
Your kit, volume, and beat are saved in this browser.
Kit
75%

Playing tips

Hit nearer the middle of a pad for a louder note. A closed hi-hat cuts off an open one, as on a real kit.

Beat maker
Tap the squares to build a one-bar beat, then press Play. It loops until you stop it.
110 BPM
0%
Step12345678910111213141516
Crash
Open hat
Closed hat
Clap
Snare
Rim
Tom
Kick

Drag along a row to fill or clear several steps. With the grid focused, the arrow keys move between squares and Enter or Space turns one on or off. Turn on Record pads while the beat plays to add what you play on the pads.

How it works

How to play the virtual drums

Kick on Z, snare on X, hi-hat on R: hit the pads, choose a kit, then loop your own beat on the 16-step grid or start from one of eight presets.

  1. Step 01

    Hit the pads

    Tap or click a pad, with several fingers at once on a touch screen. On a keyboard, press the letter on each pad: Z is the kick, X the snare, and R the closed hi-hat.
  2. Step 02

    Pick a kit

    Choose Acoustic for a rock and pop kit or Electronic for a drum machine sound, and set the volume.
  3. Step 03

    Make a beat

    Tap squares in the beat maker or load a preset, set the tempo and swing, and press Play. Turn on Record pads to add what you play.

Features

Virtual drums with a drum machine built in

  • 12 pads

    Kick, snare, rim click, three toms, open and closed hi-hats, crash, ride, clap, and cowbell, laid out four across.

  • Play with your keyboard

    Three rows of four letters, Q down to V, plus Space as a second kick. Each pad shows its letter.

  • Acoustic and electronic kits

    A natural rock kit and a drum machine kit with a long, deep kick. Hit nearer the middle of a pad to play louder.

  • 16-step beat maker

    Eight sounds by sixteen steps, looping at 60 to 180 beats per minute, with swing up to a full triplet feel.

  • Eight preset beats

    Start from rock, pop, hip hop, house, funk, reggae, disco, or a rock fill, each with its own tempo and swing.

  • Record from the pads

    Turn on Record pads while the beat plays and your hits land on the nearest step. Your beat is saved in this browser.

Tips

Virtual drums tips: how to build a beat

Most beats you know start from the same three parts: kick, snare, and hi-hat. Put those in first, then add the rest a little at a time.

  • Put the snare on 2 and 4

    Steps 5 and 13 are beats 2 and 4, the backbeat of most rock, pop, and hip hop. Add the snare or clap there first.

  • Keep time with the hi-hat

    Closed hi-hats on every other step give a steady eighth-note pulse, and on every step they drive harder. Open hats on steps 3, 7, 11, and 15 give the house and disco lift.

  • Move the kick to change the feel

    Kicks on steps 1, 5, 9, and 13 are the four-on-the-floor of house and disco. A kick just off the beat, on step 8 or 11, makes the groove bounce.

  • Use swing for a looser feel

    Swing delays every second sixteenth. The funk preset uses 15%, reggae 35%, and hip hop 40%. At 100% each pair splits 2 to 1, a full triplet shuffle.

  • Record, then tidy up

    Turn on Record pads and play along for a few bars. Hits snap to the nearest step, so tap off any extras afterward.

  • Play fills on the four extra pads

    The ride, high tom, floor tom, and cowbell have no row in the beat maker. Keep them for live fills over the loop.

About the instrument

Virtual drums online: a drum kit and beat maker in your browser

The pads and keys, the two kits, the beat maker with tempo, swing, and presets, live recording, and how the sounds are made.

These virtual drums give you a 12-pad drum kit and a step sequencer like a drum machine's, right in your browser. Hit the pads with your fingers, a mouse, or the computer keyboard, switch between an acoustic and an electronic kit, and build a looping beat from scratch or from eight presets. There's nothing to download.

Hitting the pads, soft and loud

Tap or click a pad to play it. The 12 pads sit in three rows of four: cymbals and hi-hats on top, three toms and a clap in the middle, and kick, snare, rim click, and cowbell at the bottom. On a touch screen every finger plays its own pad, so you can hit the kick and a crash together.

Where you hit matters. A hit in the middle of a pad plays at full level and a hit in a corner at about three quarters, so you can play softer ghost notes near the edges. A closed hi-hat cuts off an open one that's still ringing, as when a drummer closes the hi-hat pedal.

Virtual drums keyboard controls

On a computer, each pad shows its letter, and the keys follow the pads row by row:

  • Q W E R: crash, ride, open hi-hat, and closed hi-hat
  • A S D F: high tom, mid tom, floor tom, and clap
  • Z X C V: kick, snare, rim click, and cowbell
  • Space: a second kick, so a thumb can work the bass drum like a pedal

Keys play at one steady level, just under a center hit. They work while the drums are on screen, and typing in a text box never plays a drum.

Acoustic and electronic drum kits

The Acoustic kit aims for a natural rock and pop sound: a short, punchy kick, a snare with plenty of wire buzz, sizzling hi-hats, and a little more room. The Electronic kit is a classic drum machine, with a deep kick that booms for close to a second, a bright snare, and tight, metallic hats. Switching kits plays a snare so you can hear the difference, and the beat maker always plays the kit you've picked.

The 16-step beat maker

The Beat maker loops one bar of 4/4, split into 16 steps of a sixteenth note each. It has eight rows: crash, open hat, closed hat, clap, snare, rim, tom, and kick. Tap a square to turn it on, or drag across several to fill or clear them in one go. Steps 1, 5, 9, and 13 fall on the beat, and hits there get a slight accent.

Press Play and the bar loops until you press Stop, with a light running along the steps. You can change squares while it plays. Steps are timed on the browser's audio clock, so the loop holds steady when the page is busy and keeps going in a background tab.

With the grid focused, the arrow keys move between squares, Home and End jump to the ends of a row, and Enter or Space turns a square on or off. Screen readers hear each square's name and state, such as Kick, step 1.

Tempo and swing

Tempo runs from 60 to 180 beats per minute. Drag the slider, or use the minus and plus buttons to move one beat per minute at a time. At 120, one trip round the bar takes two seconds.

Swing delays every second sixteenth note, from 0% to 100% in steps of 5. At 0% the beat is straight. At 100% each pair of sixteenths splits 2 to 1, a full triplet feel, with the late note a third of a step behind.

Eight preset beats to start from

Each preset loads its own tempo and swing, so you can hear how common styles are built:

  • Rock: 110 BPM, straight, with a crash on the one
  • Pop: 100 BPM, with clap and snare together on 2 and 4
  • Hip hop: 90 BPM with 40% swing
  • House: 124 BPM, four kicks and open hats on the off-beats
  • Funk: 98 BPM with 15% swing and busy sixteenth-note hats
  • Reggae one drop: 76 BPM with 35% swing, kick and rim together on beat 3
  • Disco: 118 BPM, four kicks with open hats between them
  • Rock with a fill: 110 BPM, ending the bar on snare and tom

Loading a preset replaces the beat in the grid. Undo brings back the beat, tempo, and swing you had, and it undoes Clear too.

Record pads: play a beat in live

For a groove you can tap but not spell out, press Play, turn on Record pads, and play along. Each hit lands on the nearest step of its row and stays there for the next time round. Only pads with a row are added: the ride, high tom, floor tom, and cowbell still play but aren't recorded, so they're left for fills. Recording only adds hits, so tap a square to take one out.

Drum beat basics: counting to 16

Drummers count a bar of sixteenths as 1 e & a, 2 e & a, 3 e & a, 4 e & a. In the grid, the numbers fall on steps 1, 5, 9, and 13, and the ands on steps 3, 7, 11, and 15. Most beats start from three parts:

  • A kick on beat 1, and often on beat 3.
  • A snare or clap on beats 2 and 4, steps 5 and 13: the backbeat.
  • Hi-hats keeping time, on every other step for eighth notes or on every step for sixteenths.

Build those, press Play, and change one thing at a time.

How the virtual drums make their sound

Every hit is synthesized in your browser with the Web Audio API, so no recorded samples are downloaded. Kicks and toms are sine waves that drop in pitch the way a struck drum head does, with a short click for the beater or stick. The snare mixes filtered noise for the wires with a tuned tone for the head, and the clap is three quick bursts of noise about a hundredth of a second apart, like several hands.

The hi-hats, crash, and ride are built from six square waves at clashing pitches, the method classic analog drum machines used for metal sounds. The cymbals and the acoustic hats add noise for sizzle. Each noise burst starts at a random point, so no two hits are quite alike, and every pad has its own place in the stereo picture, as if you were sitting at the kit.

From the first drum kits to drum machines

The drum kit took shape in the early 1900s, when bass drum pedals let one player keep the bass drum going with a foot while the hands played snare and cymbals. The hi-hat, two cymbals clapped together by a pedal, followed in the 1920s.

Drum machines brought the step grid. The Roland TR-808 of 1980 was programmed with 16 step buttons and made its hi-hats and cymbals from six square-wave oscillators, the idea behind this kit's metal sounds. Its booming kick became a staple of hip hop and electronic music. This site isn't affiliated with Roland.

Drumming on a phone or a narrow screen

The drums run in any modern browser on a Windows PC, Mac, Chromebook, iPhone, iPad, or Android device. The pads are sized for fingers, and on a narrow screen the beat maker shows eight steps at a time, with Steps 1–8 and Steps 9–16 buttons. While the beat plays, the view follows it, unless you've just been editing.

The page needs a connection to load. From then on, every hit and every loop is synthesized and timed on your own device.

Saved on this device: your kit and your beat

Your kit, volume, tempo, swing, and the steps of your beat wait in this browser's local storage, under virtual-drums:v1, for the next time you open the page. That entry is described in the privacy policy, and your hits and beats aren't sent to a server. There's one beat at a time and no audio export, so a new preset or Clear replaces it, with one step of Undo to bring it back.

Leave a beat running and open the Virtual Piano or the Virtual Guitar in another tab to play along with it.

FAQ

Virtual drums questions

Quick answers about the virtual drums: keys, playing softer, the beat maker, swing, recording, and saving.

Which keys play the drums?

Q, W, E, and R play the crash, ride, open hi-hat, and closed hi-hat. A, S, D, and F play the high, mid, and floor toms and the clap. Z, X, C, and V play the kick, snare, rim click, and cowbell, and Space is a second kick.

Can I play two drums at once?

Yes. On a touch screen each finger plays its own pad, and on a computer you can press several keys together. Some keyboards can't register every combination of three or more keys.

How do I play louder or softer?

Hit nearer the middle of a pad to play louder. A hit in a corner plays at about three quarters of full level. Keys always play at the same level, just under a center hit.

How do I make a beat?

Tap squares in the beat maker to turn steps on, or load a preset, then press Play. The bar loops until you press Stop, and you can change it while it plays.

What does swing do?

Swing plays every second sixteenth note a little late. At 0% the beat is straight; at 100% each pair splits 2 to 1, a triplet shuffle. The hip hop preset uses 40%.

How does Record pads work?

Press Play, turn on Record pads, and play along. Each hit lands on the nearest step of its row. The ride, high tom, floor tom, and cowbell have no row, so they play without being added.

Will my beat still be in the grid tomorrow?

Yes, in the same browser. Your beat, kit, tempo, swing, and volume are kept in its local storage. There's no audio export, and clearing your browser's site data removes them.

The pads make no sound. What's wrong?

Usually the browser is waiting for you: a page can't play audio until you tap, click, or press a key on it, so hit one pad to start. If that doesn't do it, check the drum volume slider, your device's volume, and whether the tab is muted.

Why does the beat maker show only eight steps on my phone?

Sixteen squares don't fit across a narrow screen, so it shows one half of the bar at a time, with Steps 1–8 and Steps 9–16 buttons. While the beat plays, the view follows it.