CPCL Viewer
Paste CPCL printer code below and render it as a label image. CPCL is the native language of Zebra mobile printers; the label height and copy count come from the session header (! 0 200 200 <height> <qty>) and the width from PAGE-WIDTH.
Paste your code
Paste code or load the sample — the result appears below, with the line and severity of each finding.
Result
Preview assumes 203 dpi; CONTRAST, TONE and SPEED are printer settings and do not change the image. The TEXT sub-size and SETMAG scaling are outside the MVP.
Command syntax: CPCL command reference
Need a logo, or Arabic or Hebrew text, in CPCL? Convert an image to a CPCL EG session
How to preview CPCL code
- Paste the CPCL session — from a spool file, a Zebra mobile printer integration or a legacy application.
- Press Render. The label height and copies come from the session header (!), the width from PAGE-WIDTH; the image is drawn at 203 dpi.
- Rendering warnings (skipped commands, unsupported barcode types, missing header) are counted above the image; the validator gives line-level detail.
- Not sure the code is CPCL? Use the printer language detector first.
When this is the right tool
Use it when you build or maintain labels and receipts for Zebra mobile printers (QL, ZQ, iMZ series and compatibles) and need to see the output without hardware. Remember the mode split: this renders native CPCL — if your device runs in its documented ZPL or EPL mode, those jobs belong in the matching viewer.
Frequently asked questions
- Is the preview pixel-identical to the printout? — No. It is a 203 dpi interpretation of the CPCL programming guide, not physically verified; fonts in particular are approximate.
- Why is my barcode skipped? — The MVP renders 128, 39, EAN13 and UPCA. Other types are reported honestly instead of drawn wrongly.
- Where does the label size come from? — Height and copies from the session header (! 0 200 200 <height> <qty>), width from PAGE-WIDTH; without a header the preview uses defaults and says so.
Save your labels to your account and print them with DirectPrint — free account. Create free account
Same engine, same result: REST API, command line, or an AI assistant over MCP. Anonymous calls work; an API key raises the quota.
curl -X POST "https://api.labelixa.com/v1/cpcl/render" --data-binary @label.cpcl -o label.pngclaude mcp add --transport http labelixa https://api.labelixa.com/mcp # cpcl_previewAPI reference · MCP setup · Thermal label API: ZPL, EPL, TSPL, CPCL