PWA Demos
Serial Port

Serial Port

The Web Serial API lets websites communicate directly with serial devices connected to your computer through a browser.

Serial Port Logo

Demo

  1. Install the app on your computer
  2. Tap the button below to connect using to a device using the Web Serial API.
  3. Scroll down to see the code of this demo below.

What's a Serial Port?

A serial port is a physical or virtual interface that sends data one bit at a time between a computer and an external device, commonly used for devices like microcontrollers, sensors, and older communication hardware.

Common devices that use serial ports

  • Arduino boards (e.g., Arduino Uno, Nano)
  • Raspberry Pi Pico and other microcontroller boards
  • GPS modules
  • Temperature / environmental sensors (UART-based)
  • 3D printers (for sending G-code directly)
  • Serial consoles for networking equipment (routers, switches)
  • Older modems and industrial equipment

Browser support

The Web Serial API is supported in most Chromium-based browsers (Edge, Chrome, etc), but has limited or no support in Firefox and Safari. It's a desktop-only API.

API

navigator.serial
window.TextDecoderStream

Code

Links & Documentation

Your app here

Ready to generate your PWA?

Try our PWA toolkit free of charge and without limits for 14 days. No credit card required.

Generate PWA See plans