W3cubDocs

/Web APIs

Bluetooth

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The Bluetooth interface of the Web Bluetooth API provides methods to query Bluetooth availability and request access to devices.

EventTarget Bluetooth

Instance properties

Inherits properties from its parent EventTarget.

Instance methods

Bluetooth.getAvailability() Experimental

Returns a Promise that resolves to a boolean value indicating whether the user agent can support Bluetooth. Some user agents let the user configure an option that specifies what value is returned by this method.

Bluetooth.getDevices() Experimental

Returns a Promise that resolves to an array of BluetoothDevices this origin is allowed to access. Permission is obtained via previous calls to Bluetooth.requestDevice().

Bluetooth.requestDevice() Experimental

Returns a Promise that resolves to a BluetoothDevice object matching the specified options.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
Bluetooth
70Linux support is not enabled by default.
56–70Only supported on macOS.
79Linux support is not enabled by default.
No
57Linux support is not enabled by default.
43–57Only supported on macOS.
No 56 No 43 No 6.0 No No
getAvailability 78 79 No 65 No 78 No 56 No 12.0 No No
getDevices 85 85 No 71 No 85 No No No No No No
requestDevice 56 79 No 43 No 56 No 43 No 6.0 No No

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth