coderef

Web serialLimited availability

The navigator.serial API communicates with devices over serial ports, such as microcontrollers.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–88Not supported
89+Supportedsince Mar 2, 2021
Current: 155
Edge
12–88Not supported
89+Supportedsince Mar 4, 2021
Current: 154
Firefox
1–150Not supported
151+Supportedsince May 19, 2026
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–147Not supported
148+Supportedsince May 5, 2026
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: serial.

Feature detection

JS · check before using
if ("Serial" in globalThis) {
  // Serial is available
} else {
  // load a polyfill or use a fallback
}

Sub-features

Support for each part of the feature (24). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Navigator.serial8989151✕148✕✕
Serial8989151✕148✕✕
Serial.getPorts8989151✕148✕✕
Serial.requestPort8989151✕148✕✕
Serial.requestPort.allowedBluetoothServiceClassIds_option117117✕✕148✕✕
Serial.requestPort.filters_bluetoothServiceClassId117117✕✕148✕✕
SerialPort8989151✕148✕✕
SerialPort.close8989151✕148✕✕
SerialPort.connect_event8989151✕148✕✕
SerialPort.connect_event.bluetooth_rfcomm130130✕✕148✕✕
SerialPort.connected130130151✕148✕✕
SerialPort.disconnect_event8989151✕148✕✕
SerialPort.disconnect_event.bluetooth_rfcomm130130✕✕148✕✕
SerialPort.forget103103151✕148✕✕
SerialPort.getInfo8989151✕148✕✕
SerialPort.getInfo.bluetoothServiceClassId117117✕✕148✕✕
SerialPort.getSignals8989151✕148✕✕
SerialPort.open8989151✕148✕✕
SerialPort.readable8989151✕148✕✕
SerialPort.setSignals8989151✕148✕✕
Show 4 more
Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
SerialPort.writable8989151✕148✕✕
WorkerNavigator.serial8989151✕148✕✕
iframe.allow.serial8989151✕89✕✕
http.headers.Permissions-Policy.serial8989✕✕89✕✕