Print ZPL from browser

This tutorial explains how to use WebLabel as a simple and straightforward way to print ZPL commands from your browser.
24 Feb, 2026

Introduction

When you install the WebLabel program on your computer, it runs a small web server that facilitates communication between the printers installed on your device and the web pages and applications accessed in your browser. Your web page can send print requests via JavaScript or directly through POST requests in forms.

Listing installed printers

Using Javascript, you can make a request that returns a list of local printers in JSON format.

Using Javascript, you can make a request to http://localhost:8201/print/list that returns a list of local printers in JSON format. You can display this list on your web page as you prefer. WebLabel offers Javascript code by default that can be included to automatically generate the checkbox and print button.

Sending print commands

Printing is performed when WebLabel receives a POST request at http://localhost:8201/print with the fields data (e.g., zpl commands) and printer (the name of the desired printer).


This website uses cookies for a better browsing experience.