Open Application Platform Docs

sPrint playground

Encode labels and pages with the sPrint core in the browser and print them to Bluetooth LE, USB and serial printers.

sPrint

This page runs the same printing engine as every sPrint package, compiled to WebAssembly. The bytes are produced in the browser; nothing is sent to a server.

A 100 × 150 mm shipping label with Chinese and accented text, a Code 128 barcode and a QR code, in TSPL at 203 dpi.

Printer

Empty width: the label is printed at its own width. An XPP printer over Bluetooth LE without a width is printed 832 dots wide at 203 dpi.

Loading the sPrint core…

Preview

Bytes


            
            
            

Print from the browser

Sends the bytes above over Web Bluetooth, WebUSB or Web Serial. The browser shows its own device list.

Network printers and system print queues cannot be reached from a browser; use an sPrint package for them. Safari and every browser on iOS have none of these connections.

Identify a printer

Finds a printer's language from its name, USB ID (vvvv:pppp) or IEEE 1284 device ID, without connecting to it.