zplCore.comzplCore.com

Features

Everything that happens between data and label

Create

Template + data (C# objects, JSON, EF Core) → ZPL

Barcode generator

144 symbologies, from Code 128, GS1 DataBar and QR to MaxiCode, DotCode and Han Xin. Output as PNG, SVG, PDF, EPS or ^GFA. GS1 validation included. Styled codes: QR codes with a logo or shaped modules and bar motifs, each read back before printing. Artistic codes →

Label model

Text, barcode, table, image, RFID in mm or inches. Expressions with element references, validation, AutoFit, duplex with front and back. Multilingual templates with {t:key} and a culture per print job. Save and load as JSON templates. Try expressions in the expression builder →

Visual label editor

The zplCore Designer edits this label model WYSIWYG in the browser: canvas, properties, data binding with JSON records, ZPL/PDF/PNG preview from the same engine. Embed it in your app via NuGet, Docker, JavaScript, Web Component or Blazor – your app keeps the design JSON. Try the live editor →

Data binding

label.For<T>() binds C# objects, EF Core queries and MongoDB or LiteDB documents via LINQ. Plus JSON (JsonElement) and dynamic records. Streaming with constant memory, asynchronously into Stream and PipeWriter.

ZPL optimizer

Shrinks ZPL without changing a single pixel: removes redundant commands and default parameters and recompresses graphics (Hex, ACS, Z64). Verified pixel-identical across the entire reference corpus.

DPI conversion

ZplRescaler converts raw ZPL between 203, 300 and 600 dpi. ZplGraphicEncoder encodes images as Hex, ACS, Z64 or B64 with 5 dithering methods.

Migration from label software

zplCore Capture turns labels from NiceLabel, BarTender, TEKLYNX and other Windows programs into JSON templates with bound fields and native barcodes. It reads only the print job, never the label files; use your own licensed installation and observe the licence terms of your program. Migration with zplCore Capture →

Preview & emulation

ZPL/EPL → PNG, PDF, SVG like a virtual Zebra printer

ZPL II renderer

Output as PNG, JPEG, WebP, BMP, GIF, PDF, GRF, HTML, EPS, TIFF (CCITT G3/G4, LZW, Deflate, PackBits, multi-page), PCL (mono, grayscale, color) and ESC/POS with NV logos. Stored formats with ^DF/^XF, graphics, barcodes, fonts.

Vector output

Entire labels as vector SVG and PDF: text as glyph outlines in SVG and as real, searchable text in the PDF (embedded font subset, optional PDF/A-2 and tagged PDF), barcodes and boxes as paths, graphics as 1-bit images. Every SVG element carries its position in the ZPL source. Rasterized back, the output matches the PNG (mean 1.000 at a 2-dot tolerance, 126 labels).

EPL2 renderer

EPL2 runs through the same engine. ToZpl() converts existing EPL forms to ZPL.

Diagnostics & source mapping

Structured diagnostics with stable codes. Every rendered element knows its position in the ZPL source and can be exported as JSON. Safety limits for untrusted ZPL.

Verified accuracy

Automated pixel comparison against printer-accurate reference renderings, averaging 0.986 across 169 test cases. QR Codes (^BQ, model 2) are module-identical with the printer-accurate reference renderings – mode selection, version, error correction and mask, checked on more than 3,600 reference symbols. QR model 1 is printed as model 2. Barcode encoders are verified bit-exact against bwip-js.

World scripts

HarfBuzz shaping and bidi for Arabic, Hebrew, Thai, Indic scripts and CJK.

Print

TCP 9100, USB, Windows spooler, CUPS, virtual printer

Print jobs

Leading label, records, trailing label and a cut after the last label, all in one job. Transport via TCP 9100, serial, USB, the Windows spooler or CUPS. ^MM/^MN/^MT, extended ~HQ status, dry run.

Virtual printer

ZplVirtualPrinter listens on TCP 9100, renders incoming print jobs and answers status queries. Test without hardware, optionally with simulated printer faults and a cutter.

RFID & EPC

EPC encoder and decoder for all 15 schemes of the GS1 EPC Tag Data Standard 2.3, ^RS/^RF/^HV commands, the RFID pre-check (ZPL3901–ZPL3912) and a Gen2 tag simulation. Try it in the RFID Studio →

Command line

The zplcore dotnet tool renders, converts EPL to ZPL, prints, generates barcodes, formats and diffs ZPL, checks labels (comply, verify, check) and redacts personal data.

TrueType fonts

TTF fonts go into printer memory via ~DY or are printed as graphics (PrintAsGraphic).

Data sources

JSON, CSV, SQL, REST or C# objects: your data on the label

A template plus records gives labels. The records can be JSON or CSV, the rows of a database query, the response of a REST API or your own .NET objects. C# is one way in, not a requirement: zplCore Server takes the data over HTTP from any language, the zplCore Designer works with JSON records, and in .NET the SDK binds any object.

JSON

One object, an array of records or { "records": [...] }, with nested objects and arrays: Customer.Address.City, Items[1].Sku. Field names match exactly first, then ignoring case. zplCore Server reads NDJSON record by record and takes values for the whole job, such as those on the start label, in "variables".

CSV

The header row gives the field names; quoting follows RFC 4180, including line breaks in quoted fields. The delimiter (, ; tab or |) is detected from the header or set with ?delimiter=. zplCore Server streams CSV without loading the whole file; the Designer loads CSV test data from a file or a URL.

SQL databases

Named, parameterised, read-only queries in zplCore Server: PostgreSQL, SQL Server and Azure SQL, MySQL and MariaDB, SQLite; Oracle in the -full image with your own Oracle driver. Parameters are always bound, never pasted into the SQL. Column types are kept, so a date column formats as a date. In .NET the SDK binds EF Core and every driver with LINQ (list below).

REST APIs

zplCore Server fetches the records itself: a path with parameters, the list of items by JSON path, paging through the Link header or a JSON field, bearer, basic or header authentication. Only allowed hosts; private networks only if you allow them (SSRF protection).

C# objects

label.For<T>() binds classes (POCOs), dictionaries, ExpandoObject, DataRow, JsonElement and JsonNode from any IEnumerable<T>, IQueryable<T> or IAsyncEnumerable<T>, streamed into a file, a Stream or straight to the printer.

Expressions & formatting

Compute and format in the template, whatever the source: Format([ShipDate], "dd.MM.yyyy"), If(), AddDays(Today(), 365), Gs1CheckDigit(), number formats like 0.0 kg and a culture per print job. Try it in the expression builder →

Not only a C# library

Four ways to your labels

The same JSON templates and the same engine on every way: send data over HTTP from any language, bind objects in .NET, edit the template in a visual editor inside your application, or work on ZPL in scripts, CI and AI agents.

Data
  • JSON
  • NDJSON
  • CSV
  • SQL
  • REST API
  • C# objects
Template
  • Label JSON
  • Print job
  • Designer document
zplCorebinds · computes · renders · prints
  • ZPL · PDF · PNG · SVGas a file or HTTP response
  • PrinterTCP 9100, USB, spooler, CUPS
  • Previewin the Designer, same engine
  • Storage · webhookzplCore Server
Data and template in, labels out: the same engine whether you call it over HTTP, from C#, in the Designer or on the command line.

zplCore Server · Docker

REST API: JSON in, ZPL, PDF or PNG out

  • Records in the request body as JSON, NDJSON or CSV, or by name from a database or REST query: ?query=open-shipments&country=AT
  • ZPL as a stream, PNG, SVG, PDF, ZIP or a JSON report, chosen with the Accept header
  • Templates from a volume or Kubernetes ConfigMap, Git (git-sync), S3/MinIO, Azure Blob, Google Cloud Storage or HTTP; versioned, with hot reload
  • Straight to named printers over TCP 9100, optionally checked first by the printer twin; output to a volume, S3, Azure Blob or GCS
  • Asynchronous jobs with status and result (?async=true, /v1/jobs), signed webhooks, several templates in one batch request (/v1/batch)

.NET SDK · NuGet

in your own .NET application

  • label.For<T>() binds objects, EF Core queries, dictionaries, DataRow and JSON
  • ZPL into a file, a Stream or a PipeWriter, or straight to the printer over TCP 9100, USB, the Windows spooler or CUPS
  • The same JSON templates as the server and the Designer (Label.FromJson, PrintJobTemplate.FromFiles)
  • Windows, Linux and macOS, NativeAOT-compatible, no printer driver

zplCore Designer

the visual editor in your application

  • Edits the JSON template WYSIWYG, with ZPL, PDF and PNG preview from the same engine
  • Test data as JSON or CSV, from a file, a JSON endpoint or a CSV URL; your application passes its own records with setData(records)
  • Embedded via NuGet, Docker, JavaScript, Web Component or Blazor; your application keeps the design JSON

CLI and MCP server

scripts, CI and AI agents

  • zplcore (dotnet tool) renders, converts, prints and checks ZPL in scripts and pipelines; --field 1=ACME fills ^FN fields
  • zplcore-mcp gives AI agents the same engine: render, lint, check and fill ^FN templates, offline and sandboxed
  • Both work on ZPL; JSON, CSV and database records go through zplCore Server or the SDK

zplCore Server: one HTTP call

# JSON records in, ZPL out
curl -X POST localhost:8080/v1/labels/versand/dhl-100x150 \
  -H 'X-Api-Key: <key>' -H 'Content-Type: application/json' \
  -d '[{"Name":"Anna Huber","Address":{"City":"Wien"}}]' -o labels.zpl

# rows of a named SQL query (zplcore.yaml) as a PDF
curl -X POST 'localhost:8080/v1/labels/versand/dhl-100x150?query=open-shipments&country=AT' \
  -H 'X-Api-Key: <key>' -H 'Accept: application/pdf' -o tour.pdf

# CSV in, printed on the configured printer lager-1
curl -X POST 'localhost:8080/v1/labels/versand/dhl-100x150?print=lager-1' \
  -H 'X-Api-Key: <key>' -H 'Content-Type: text/csv' --data-binary @shipments.csv

.NET SDK: one line of C#

var label = Label.FromJson(File.ReadAllText("dhl-100x150.json")); // the same template
using var json = JsonDocument.Parse(File.ReadAllText("records.json"));

// JSON records → ZPL
string zpl = label.For<JsonElement>().ToZpl(json.RootElement.EnumerateArray());

// or your own objects, e.g. an EF Core query
string zpl2 = label.For<Shipment>().ToZpl(db.Shipments.Where(s => !s.Printed));

In .NET: any data source that delivers C# objects

Data binding works with any IEnumerable<T>, IQueryable<T> or IAsyncEnumerable<T>. Filtering and sorting run in the database, and the labels are streamed. That means every EF Core provider and every database driver with LINQ support works.

Anything C# can read

via EF Core, official .NET drivers or your own objects

  • Microsoft SQL Server
  • Azure SQL
  • PostgreSQL
  • MySQL
  • MariaDB
  • Oracle
  • SQLite
  • MongoDB
  • Azure Cosmos DB
  • SAP HANA
  • IBM Db2 / Informix
  • Couchbase
  • Firebird
  • Amazon DynamoDB
  • RavenDB
  • Elasticsearch
  • OpenSearch
  • LiteDB
  • Dapper / ADO.NET
  • Entity Framework Core
  • C# objects / LINQ
  • JSON

Example: logistics print job → Twelve shipments from SQLite, via EF Core into one print job

World scripts

Arabic, Chinese, Hindi, Korean, Japanese, Russian: shaped correctly

Load a TrueType font into printer memory or print it as graphics. These outputs come straight from the engine.

Arabic label, rendered with ZplCore
Arabic (TTF)
Chinese label – rendered with zplCore.com
Chinese (TTF)
Hindi label – rendered with zplCore.com
Hindi (TTF)
Korean label – rendered with zplCore.com
Korean (TTF)
Japanese label – rendered with zplCore.com
Japanese (TTF)
Russian label (Cyrillic)
Russian (TTF)
Shipping label, rendered from ZPL
Shipping label from ZPL
EPL2 label – rendered with zplCore.com
EPL2 rendering
MaxiCode – rendered with zplCore.com
MaxiCode
Data Matrix – rendered with zplCore.com
Data Matrix

Code

Three lines of C# to a preview

var renderer = new ZplRenderer(new ZplRenderSettings { Dpi = 203 }.WithLabelSizeMm(100, 150));
List<byte[]> pngs = renderer.ProcessCommands(
    "^XA^FO50,50^A0N,40,40^FDHello World^FS^BY2^FO50,120^BCN,80^FD12345^FS^XZ");
renderer.Settings.OutputFormat = ZplOutputFormat.Pdf;
File.WriteAllBytes("preview.pdf", renderer.ProcessFile("labels.zpl")[0]);

One package instead of four

One NuGet package for four jobs

Many .NET teams buy several SDKs just for labels: a ZPL emulator, an EPL emulator, a label designer and a barcode library. zplCore.com covers ZPL rendering, EPL rendering, label design and barcode generation in a single SDK and assembly.

Use caseTypicallyzplCore.com
ZPL → PNG/PDF previewZPL emulator SDKZplRenderer
EPL2 → image, EPL → ZPL migrationEPL emulator SDKEplRenderer · ToZpl()
Design labels in code, bind data, printLabel designer SDKLabels.Label · PrintJobTemplate
Barcodes as image/vector, GS1 validationBarcode SDKBarcodes.Barcode · Gs1

Switching from another SDK? zplCore.com is not a 1:1 copy of other vendors' APIs and does not have every feature. Send us your ZPL files and requirements, and we will check coverage before you buy (see also known limitations).