Vibration and haptics test
Check your phone's vibration motor with preset and custom patterns. On iPhone, see how to test the Taptic Engine and Core Haptics instead.
Checking whether this browser can vibrate…
How to test your phone's vibration
- Open this page on an Android phone in Chrome, Samsung Internet, Edge or Opera.
- Turn off Do Not Disturb and check that vibration is enabled in the phone's sound settings.
- Hold the phone and tap Short buzz, then Long buzz. You should feel 0.2 s and then 1 s of vibration.
- Try the rhythm patterns and compare what you feel with the bar under the buttons, which draws the timing the page requested.
- Write your own pattern as alternating vibrate and pause times, for example
200, 100, 200. Values up to 10,000 ms are accepted.
Why it does not work on iPhone
Web pages vibrate a device through the Vibration API (navigator.vibrate). Apple has not implemented it in Safari, and every iPhone browser uses Safari's engine, so no website can make an iPhone vibrate.
On iPhone, haptics are available only to apps. To check the hardware, go to Settings › Sounds & Haptics and make sure System Haptics is on, and Settings › Accessibility › Touch › Vibration is on. A long-press on an app icon should give a light tap.
Developers use Core Haptics (CHHapticEngine) for custom patterns with intensity and sharpness, and the simpler feedback generators: UIImpactFeedbackGenerator (light, medium, heavy, soft, rigid), UINotificationFeedbackGenerator (success, warning, error) and UISelectionFeedbackGenerator. In SwiftUI, .sensoryFeedback does the same on iOS 17 and later.
If you feel nothing on Android
- The browser only reports whether it accepted the request. It cannot tell whether the motor moved, so you have to feel it.
- Chrome ignores vibration until you have tapped the page, and Battery Saver or Do Not Disturb may suppress it without an error.
- Very short pulses (under about 20 ms) are hard to feel on some motors. Try Long buzz first.
- If notifications vibrate but this page does not, try another browser. If nothing vibrates anywhere, the motor or its setting is the problem.
Learn more
A practical guide to iOS haptics and iOS haptic patterns explain which feedback to use where.
Questions
Can a website make my iPhone vibrate?
No. iPhone browsers do not support the Vibration API, so web pages cannot vibrate an iPhone. Native apps use Core Haptics instead.
Which browsers support the vibration test?
Chrome, Samsung Internet, Edge and Opera on Android. Desktop browsers may accept the request but computers rarely have a vibration motor.
How do I write a vibration pattern?
List durations in milliseconds, alternating vibrate and pause: 200, 100, 200 means buzz 200 ms, pause 100 ms, buzz 200 ms.
Can I control vibration strength from the web?
No. The Vibration API only controls timing. Intensity and sharpness are available to native apps, for example through Core Haptics on iPhone.
How do I test haptics on an iPhone?
Check Settings › Sounds & Haptics and Settings › Accessibility › Touch › Vibration, then long-press an app icon. Haptics Explorer lets you feel each system and custom pattern.
From the same developer
- Haptics Explorer: browse, play and generate code for iOS haptic patterns.