AbraCalc

Vibration API Tester

Test the Vibration API on your mobile device with custom patterns.

Embed this tool on your site
Cite this tool

APA

AbraCalc. (2026). Vibration API Tester [Online calculator]. Retrieved from https://abracalc.com/device/vibration-tester/

BibTeX

@misc{abracalc-vibration-tester, author = {AbraCalc}, title = {Vibration API Tester}, year = {2026}, howpublished = {\url{https://abracalc.com/device/vibration-tester/}} }

Did this tool answer your question?

How to use this tool

  1. Open this page — it runs instantly in your browser, no signup or install.
  2. Allow any permission prompt if asked; everything stays on your device.
  3. Use the on-screen controls — results update live.

Test the Vibration API on your mobile device with custom patterns.

How it works

The Vibration API Tester uses the browser's navigator.vibrate() method to trigger the device's haptic motor with patterns you specify. You can enter a simple duration (e.g. 500 for 500 milliseconds) or a pattern of alternating vibrate-pause-vibrate durations (e.g. 200,100,200 for two short pulses with a gap).

Click the Vibrate button and, if your device supports the API and has a vibration motor, you will feel the pattern immediately. If nothing happens, the tool reports whether the API is unavailable (most desktop computers have no motor) or whether the browser does not support it.

This is useful for mobile web developers testing haptic feedback in progressive web apps, for users curious about what vibration patterns feel like before implementing them, and for verifying that a device's haptic motor is working.

Vibration is available on most Android devices in Chrome. iOS Safari does not support the Vibration API.

Worked example

Test a double-pulse notification pattern on Android

  1. Open the Vibration Tester on an Android device in Chrome.
  2. Enter the pattern 200,100,200 in the pattern field (vibrate 200ms, pause 100ms, vibrate 200ms).
  3. Tap Vibrate.
  4. Feel the two-pulse haptic response.
  5. Adjust the numbers and retry to refine the feel.

A confirmed two-pulse vibration pattern that you can use in your web app's navigator.vibrate() call.

Common mistakes to avoid

  • Testing on a desktop computer and concluding the API or device is broken — desktop machines have no vibration motor.
  • Entering a single very long duration (e.g. 10000) which some browsers cap at a shorter maximum for user experience reasons.
  • Testing on an iPhone with Safari and expecting the API to work — iOS Safari does not support navigator.vibrate().

Key terms

Vibration API
A browser API (navigator.vibrate()) that controls a device's physical vibration motor from a web page.
Vibration pattern
An array of numbers passed to navigator.vibrate() where alternating values represent vibration durations and pause durations in milliseconds.
Haptic feedback
Physical tactile sensations — typically short vibrations — used to give the user a physical response to actions on a touchscreen.

Frequently asked questions

Which browsers support the Vibration API?
Chrome on Android is the main supported platform. Firefox for Android also supports it. Safari (iOS) does not support the Vibration API.
How do vibration patterns work?
Pass an array of numbers: alternating on-durations and off-durations in milliseconds, e.g. [200, 100, 200] = buzz-pause-buzz.

References & sources