Chrome Web Bluetooth How to Use
In this article
Chrome Web Bluetooth allows websites to connect to nearby Bluetooth devices directly from the browser, enabling interaction without installing native apps. To use it, ensure your device supports Bluetooth LE, enable the feature in Chrome settings, and access it via JavaScript using the Web Bluetooth API.
Background and Development
The Web Bluetooth API is a web standard developed under the umbrella of the World Wide Web Consortium (W3C) to allow secure, controlled access to Bluetooth Low Energy (LE) devices from within a web browser. Google Chrome has been a primary driver in implementing this API, starting experimental support around Chrome 56 and gradually expanding capabilities in subsequent versions. The goal is to enable web applications to interact with a wide range of peripherals—such as fitness trackers, medical devices, smart home sensors, and industrial controllers—without requiring users to download dedicated apps.
Unlike traditional Bluetooth pairing, which often requires system-level permissions and manual setup, Web Bluetooth operates within the browser's security model. It requires user initiation (like a button click), enforces encryption via HTTPS, and limits access to specific services and characteristics defined by the website. This design balances functionality with user safety, preventing silent or background access to Bluetooth hardware.
How Web Bluetooth Works in Chrome
Web Bluetooth operates through a JavaScript API that allows websites to scan for, discover, and communicate with nearby Bluetooth LE devices. The process is event-driven and follows strict security policies enforced by Chrome.
When a website requests access to Bluetooth devices, Chrome prompts the user with a permission dialog listing nearby discoverable devices. The user must manually select a device to pair. Once connected, the website can read from or write to specific GATT (Generic Attribute Profile) services and characteristics exposed by the device.
Communication is structured around GATT services—standardized or custom data containers that define what a device can do. For example, a heart rate monitor might expose a Heart Rate Service with a Heart Rate Measurement characteristic. A web app can request access to that service and read real-time data.
Here's a simplified flow of how a web app uses Web Bluetooth:
- User clicks a button to start device scanning.
- JavaScript calls
navigator.bluetooth.requestDevice()with filters (e.g., specific service UUIDs). - Chrome displays a device picker with nearby devices matching the criteria.
- User selects a device; Chrome establishes a secure connection.
- Website accesses the GATT server via
device.gatt.connect(). - App reads or writes to specific characteristics using
getCharacteristic()and related methods. - Data is processed in the browser for display or further use.
This entire process requires user interaction and HTTPS. It will not work on HTTP pages or in automated scripts.
Supported Devices and Compatibility
Web Bluetooth only works with Bluetooth Low Energy (Bluetooth Smart) devices, not classic Bluetooth (like older audio headsets or keyboards). Most modern smartphones, laptops, and single-board computers (like Raspberry Pi) support BLE, but older hardware may not.
Chrome supports Web Bluetooth on the following platforms:
- Windows 10 and later (with BLE-capable hardware)
- macOS 10.13 and later
- ChromeOS (fully supported)
- Linux (with BlueZ 5.42 or later and proper permissions)
- Android (limited to specific use cases; not for general peripheral access)
iOS does not support Web Bluetooth in Chrome or any browser due to platform restrictions. Safari and Chrome on iOS use WebKit, which lacks the necessary APIs.
Common compatible devices include:
- Fitness trackers (e.g., Polar, Garmin sensors)
- Smart locks and door sensors
- Environmental sensors (temperature, humidity)
- Medical devices (glucose meters, pulse oximeters)
- Custom BLE development boards (nRF52, Arduino Nano 33 BLE)
Setting Up Chrome for Web Bluetooth
To use Web Bluetooth, ensure Chrome is updated to version 70 or later (recommended: latest stable version). Navigate to chrome://settings/content/bluetooth and confirm that "Sites can ask to connect to Bluetooth devices" is enabled. This setting allows websites to request access.
Additionally, check that:
- Bluetooth is turned on in your operating system.
- No other application is exclusively using the Bluetooth adapter.
- Your device is discoverable if required by the peripheral.
- You are on a secure origin (HTTPS or localhost).
Note: Some corporate or managed networks may disable Bluetooth access via policy. In such cases, users won’t be able to grant permission regardless of local settings.
Security and Privacy Considerations
Chrome enforces multiple layers of security for Web Bluetooth. First, websites must be served over HTTPS (except localhost, which is exempt for development). This prevents man-in-the-middle attacks that could hijack Bluetooth connections.
Second, user interaction is required. A website cannot initiate scanning or connection automatically—it must be triggered by a user action like a button click.
Third, the device picker dialog gives users full control over which device to connect to. Chrome does not allow silent pairing or background access.
Finally, access is scoped to specific services. A website requesting access to a heart rate monitor cannot suddenly read data from a nearby smart lock unless explicitly allowed.
Despite these safeguards, users should only connect to trusted websites. Malicious sites could potentially misuse data from connected devices or attempt to exploit firmware vulnerabilities.
Common Problems and Troubleshooting
Several issues commonly prevent Web Bluetooth from working:
- No device picker appears: Check that the page is served over HTTPS (or localhost), that Bluetooth is enabled, and that the user gesture (click) is properly attached to the request.
- "No devices found": Ensure the peripheral is advertising, is within range, and supports BLE. Some devices only appear if filtered by specific service UUIDs.
- Connection fails after selection: The device may have disconnected during handshake, or the GATT server may be busy. Try reconnecting.
- Permission denied: Clear site permissions in Chrome settings or restart the browser. Some extensions may interfere.
- Linux BlueZ errors: Ensure the
bluetoothddaemon is running and the user has permissions (often viabluetoothgroup membership).
Developers can use Chrome DevTools (under the "Sensors" panel) to simulate Bluetooth devices for testing when hardware is unavailable.
Frequently Asked Questions
Can I use Web Bluetooth on iPhone?
No. iOS does not support the Web Bluetooth API in any browser, including Chrome. Safari and Chrome on iOS are both restricted by the underlying WebKit engine, which lacks Bluetooth access. Only native apps can use Bluetooth on iOS.
Do I need a special app to use Web Bluetooth?
No. The entire process happens in the Chrome browser. No separate app is required, as long as the website implements the Web Bluetooth API and your device meets compatibility requirements.
Is Web Bluetooth secure?
Yes, Chrome enforces HTTPS, user consent, and service-specific access. Connections are encrypted, and devices are only accessible after explicit user approval. However, always use Web Bluetooth on trusted websites to avoid data misuse.
Why doesn’t my device show up in the picker?
Your device may not be advertising, may be out of range, or might not support Bluetooth LE. Also, some websites filter devices by service UUID—your device must match that filter to appear. Ensure it’s powered on and discoverable.
Can Web Bluetooth connect to multiple devices?
Yes, a website can maintain connections to multiple devices simultaneously, provided each connection is initiated by user action and the system supports it. However, performance may degrade with too many active connections.
Does Web Bluetooth work offline?
No. Web Bluetooth requires a secure context (HTTPS or localhost). While the connection to the device is direct, the web page must be loaded from a valid origin. You cannot use it from a fully offline HTML file unless served locally via localhost.