ZPL Label Viewer, Editor and PDF to ZPL Converter
Paste or open Zebra ZPL code and see the label at 152, 203, 300 or 600 dpi, click a field to edit its text or move it, and convert PDF or PNG shipping labels into ZPL graphic files for thermal printers.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Open or paste ZPL
Open a .zpl, .prn or .txt file, paste the code, or press Sample label to start from an example.
- 2Set the printer
Choose 152, 203, 300 or 600 dpi and the label size used when the code has no ^PW or ^LL.
- 3Check every label
Step through the ^XA formats and read the notes about skipped or unsupported commands.
- 4Edit fields
Click a field to select it, change its data, drag it, type its position or nudge it with the arrow keys.
- 5Convert PDF labels
On the second tab turn a PDF or PNG label into a ^GFA graphic and open it in the editor.
- 6Save or print
Save the .zpl file, download a PNG, or make a label-size PDF to print a check copy.
Sobre aquesta eina
ZPL, the Zebra Programming Language, is the text that most thermal label printers understand. Warehouse systems, carriers and marketplaces send shipping labels, product labels and pallet labels as .zpl files, and a block of code such as ^XA^FO50,50^A0N,40,40^FDHello^FS^XZ is hard to judge until it is printed. Printing test labels wastes stock and time, and online renderers send your customer addresses to someone else's server. This viewer draws the label in your browser with its own ZPL renderer. Paste the code or open a .zpl, .prn or .txt file and the label appears at the printer resolution you choose: 6, 8, 12 or 24 dots per millimetre. Text fields, boxes, circles, ellipses, diagonal lines, reverse printing, field blocks with wrapping and justification, label home and shift, print orientation and 180-degree inversion are drawn, and so are Code 128 (including the ZPL subset and FNC1 codes used for GS1-128), Code 39, EAN-13, UPC-A, Interleaved 2 of 5 and QR codes. Graphic fields in compressed hex, B64 and Z64 form are decoded, as are graphics downloaded with ~DG and recalled with ^XG. Files with several ^XA ... ^XZ formats show each label in turn. Click any field on the preview to select it, then edit its data in the box, drag it to a new place, type exact dot positions or nudge it with the arrow keys; the ZPL code is rewritten as you go and every change can be undone.
PDF and PNG labels to ZPL
Many couriers and marketplaces give you a PDF or PNG label, while the printer in the warehouse is set up for ZPL. The second tab turns such a file into a ZPL graphic label. Choose the page, the render resolution, threshold for crisp text and barcodes or dithering for logos and photos, crop the white margins, rotate it a quarter turn and scale it to the label width, for example 812 dots for a 4-inch label at 203 dpi. The result is one ^GFA graphic field in Z64 (smallest, for printers from roughly the last fifteen years), compressed hex (accepted by every ZPL printer) or plain hex. Open it in the editor to check it, copy it, or save it as a .zpl file and send it with your printer utility.
Export and print
Save the edited code as .zpl, download the current label as a PNG at printer resolution, or make a PDF with one page per label at the exact label size, which any office printer can print for checking.
Limits
This is a preview, not Zebra firmware. Fonts are close matches drawn with system fonts, so line breaks in long field blocks can differ slightly. Data Matrix, PDF417, MaxiCode, Aztec and some rare barcodes are shown as orange placeholder boxes, not drawn; stored formats (^DF, ^XF), serial numbers (^SN, ^SF), downloaded TrueType fonts and binary graphic data are not handled. The tool cannot send jobs straight to a USB or network printer.
Exemple resolt
A 4 × 6 inch label at 203 dpi is 4 × 203 = 812 dots wide and 6 × 203 = 1,218 dots long, which is why the sample starts with ^PW812 and ^LL1218. Switch the resolution to 300 dpi and the same code draws a label of 812 ÷ 300 = 2.71 by 1,218 ÷ 300 = 4.06 inches, the classic sign that a file was written for a different printer. In the sample, ^BY5,2,270 makes a Code 128 barcode with 5-dot modules and 270 dots of height; the data 12345678 is encoded in subset C as four digit pairs, so the code holds a start symbol, 4 data symbols, a check symbol and a stop pattern, 6 × 11 + 13 = 79 modules or 395 dots wide. A 1-bit PDF label converted at 812 by 1,218 dots holds 102 bytes per row and 124,236 bytes in all; as Z64 it typically shrinks to 10 to 20 KB of text.
En resum
- Categoria: Negocis i feina
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: Zebra ZPL II Programming Guide (command reference for ^XA, ^FO, ^A, ^GB, ^BC, ^BQ, ^GF and others)
Preguntes freqüents
How do I view a ZPL file without a Zebra printer?
Open the .zpl file or paste the code into the box. The label is drawn at once at the resolution you pick, with a list of every field. Nothing is sent to a printer or a server.
Which printer resolution should I choose?
Use the resolution the code was written for: most desktop and shipping printers are 203 dpi (8 dots per millimetre), high-detail models are 300 dpi, and a few are 600 dpi. If text looks far too small or large, the file was made for another resolution.
Can I convert a PDF shipping label to ZPL?
Yes. On the PDF or image to ZPL tab, open the PDF, choose the page, keep Crop white margins on and scale it to your label width. The page becomes a ^GFA graphic. Barcodes stay scannable when you use the threshold mode at the printer resolution.
Which ZPL commands are not supported?
Data Matrix, PDF417, MaxiCode and Aztec barcodes appear as placeholders, and stored formats, serialisation, downloaded fonts and binary graphics are skipped. The page lists any skipped command it met, and printer settings such as darkness and speed are noted as having no effect on the picture.
Can I edit a field and keep the rest of the code the same?
Yes. Only the data between ^FD and ^FS, or the numbers after ^FO or ^FT, are changed. Your other commands, comments and spacing stay as they were, so the edited file still works in the system that made it.
Why is my converted label so large?
Graphic labels store every dot. Choose Z64 for the smallest file, crop white margins and avoid dithering for text-only labels. Plain hex is about eight times larger than Z64 and is only needed for very old printers.
