What is Vibration Pattern Maker?

Vibration Pattern Maker lets you design custom vibration sequences for mobile devices using the Web Vibration API. Create patterns of vibrate and pause intervals, test them on your phone, and export the pattern array for your own projects.

The pattern array uses millisecond integers in alternating vibrate-pause-vibrate order, the exact format the Web Vibration API expects. Presets cover heartbeat, SOS, alarm, and notification rhythms. Save your own patterns locally, import any existing array to edit it, or loop a sequence up to ten times for testing.

How to use

  1. Add vibration and pause segments to build your pattern using the visual timeline.
  2. Tap Play to test the vibration pattern on your device (mobile only).
  3. Export the pattern as a JavaScript array to use in your own projects.

When to use

  • Designing a unique notification rhythm for a meditation, fitness, or alarm app.
  • Prototyping haptic feedback for a game and exporting the array straight into your code.
  • Testing whether a phone reliably renders short pulses below 50ms before shipping the build.

Result

A mobile developer creates an SOS vibration pattern (short-short-short, long-long-long, short-short-short) and exports the array [100,50,100,50,100,200,300,50,300,50,300,200,100,50,100,50,100] for their notification system.

FAQ

Why doesn't the test button work on my desktop browser?
The Web Vibration API only fires on devices with a vibration motor, which means phones and some tablets. Desktops and most iPhones ignore the call silently. Open the tool on Android Chrome or Firefox to feel the pattern.
How is the exported array structured?
It's a flat list of integers in milliseconds. The first number is a vibrate duration, the second is a pause, the third is vibrate again, and so on. So [200, 100, 200] means vibrate 200ms, pause 100ms, vibrate 200ms.
What's the shortest pulse a phone can produce?
Most phones round anything under about 20ms up or skip it entirely. For reliable haptic ticks, stay at 30ms or above. Older devices sometimes cap a single vibrate at one second regardless of the value you request.
Can users disable vibration system-wide and break my pattern?
Yes. Both Android and iOS expose a do-not-disturb or silent mode that suppresses the Vibration API even when your tab is in focus. Your code should not assume the vibration actually happened.
Do saved patterns sync between devices?
No. Saved patterns live in localStorage on the device that created them, so they stay private but they don't follow you to another phone or browser. Export the array as text if you want to move it.

Related Tools