High PerformanceLabelprint Engine · .NET 10 & 11 · ZPL II · EPL2 · Barcodes
Create, preview and print labels. With a single library.
zplCore.com is the ZPL SDK for .NET and C#: create labels as ZPL from templates and data, preview ZPL II and EPL2 as PNG or PDF like a virtual Zebra printer, and send them to the printer. 144 barcode symbologies are built in. Runs on Windows, Linux and macOS, with no printer driver. No code needed: run it as a label server with Docker or Kubernetes – templates in, data in, ZPL, PNG or PDF out.
// ZPL → PNG preview, like a virtual printer (4 × 6 in, 203 dpi)var settings = new ZplRenderSettings { Dpi = 203 }
.WithLabelSizeMm(101.6, 152.4);
string zpl = File.ReadAllText("hero-label.zpl");
byte[] png = new ZplRenderer(settings).ProcessCommands(zpl)[0];
// the same ZPL → printer (TCP 9100)await using var printer = new TcpPrinterConnection("10.0.0.7");
await printer.SendAsync(zpl);
This is the label above
Three lines of C# render hero-label.zpl into exactly the PNG shown above; the same ZPL goes to the printer. Open the example in the live demo, change the ZPL and render it again.
One print job from the database: start, shipments, end
Twelve shipments of a delivery tour are stored in a SQLite database. An EF Core query returns them, and PrintJobTemplate turns them into one job in a single ZPL file: start label, twelve 100 × 150 mm shipping labels (sender, recipient, service field, routing code, SSCC as real GS1-128 with FNC1, tracking QR and Code 128, counter 1/12), and an end label with totals and a cut. The templates are the JSON files in samples/templates; the program is in samples/LogisticsShowcase.
Query the data
An EF Core query loads the twelve shipments of tour 17 from SQLite, filtered and sorted in the database.
Start label
Tour, date, number of shipments, total weight and the first and last SSCC.
Shipping labels
Twelve 100 × 150 mm labels: routing code, SSCC as GS1-128, tracking QR code, counter 1/12.
End label
Totals and first/last SSCC; the printer cuts once, after the last label.
Start label: tour, date, count, first/last SSCC
Shipping label from the database (1/12)
Shipping label from the database (2/12)
Shipping label from the database (3/12)
… 9 more shipping labels
End label: totals, first/last SSCC, cut
14labels in one file1 + 12 + 1, CutAfterLastLabel
18.1 KBZPL for the whole job18,541 bytes
2.5 msgeneration (query + ZPL)measured, Release, Apple M3 Max
47 KBvector PDF of the jobsearchable text, 100 × 150 mm
Office and laser printers, label printers of other brands through their driver, print servers: whatever prints PDF prints your ZPL labels. The vector PDF is small and fast – 2.75 MB for 1,000 shipping labels of 100 × 150 mm (about 3 KB per label; Skia's PDF: 46.8 MB), about 11 ms per label including rendering. Text stays searchable and copyable, barcodes stay vectors and print crisp at any printer resolution. Optional PDF/A-2 for archiving. Measurements
var job = PrintJobTemplate.FromFiles("leading.json", "shipping.json", "trailing.json");
job.JobName = "Tour 17 · Wien Süd";
job.KeyField = "TrackingNo"; // first/last SSCC on the end label
job.CutAfterLastLabel = true; // cut after the end labelvar shipments = db.Shipments.AsNoTracking() // EF Core, executed by SQLite
.Where(s => s.Tour == 17 && !s.Printed)
.OrderBy(s => s.RoutingCode).ThenBy(s => s.TrackingNo)
.ToList();
job.Leading.Expressions // header values for the start label
.SetCustomVariable("FIRST_SSCC", shipments[0].TrackingNo)
.SetCustomVariable("LAST_SSCC", shipments[^1].TrackingNo)
.SetCustomVariable("TOTAL_WEIGHT", $"{shipments.Sum(s => s.WeightKg):0.0} kg");
string zpl = job.For<Shipment>()
.Map("Total", s => $"{s.WeightKg:0.0} kg")
.ToZpl(shipments); // start label + 12 shipping labels + end label
File.WriteAllText("tour17.zpl", zpl);
One NuGet package for designing, previewing, checking and printing labels. Each card leads to the full details.
Design
templates and data become ZPL
Label model:text, barcodes, tables, images and RFID in mm or inches, with expressions, validation and AutoFit; saved as JSON templates, multilingual.
Barcodes & GS1:144 symbologies as PNG, SVG, PDF or ZPL, GS1 validation, GS1 Digital Link and a Sunrise 2027 pre-check.
Rich text:HTML formatting in text fields, printed natively as ZPL; RTF import.
World scripts:Arabic, Hebrew, Thai, Indic scripts and CJK with correct shaping and bidi via TrueType fonts.
Import:existing ZPL becomes an editable template; PDF and SVG become native ZPL instead of a raster image.
Migration:labels from NiceLabel, BarTender, TEKLYNX and other Windows programs become zplCore templates with bound fields via zplCore Capture; only print jobs you create with your own licensed installation are read, never the label files.
Preview & check
know it prints and scans before it prints
Renderer:ZPL II and EPL2 to PNG, PDF and SVG, like a virtual printer; every element knows its line in the ZPL source.
Accuracy:automated pixel comparison with printer-accurate references, mean 0.986 across 169 test cases.
Scan check:every barcode is read back by two independent decoders, with an A–F grade modelled on ISO/IEC 15415/15416.
Quality gates:84 compliance rules (GS1 logistic label, UDI, RFID, carrier rules), unit tests with ZplAssert and zplcore check in CI: a broken template stops the build.
Printer twin:24 device profiles show what goes beyond the printhead, missing options, firmware limits and the print time.
Print & output
to the printer or into a file
Printers:TCP 9100, USB, serial, Windows spooler and CUPS behind one interface, with status query and dry run.
Files:PNG, PDF and SVG (vector), plus TIFF, PCL, ESC/POS, EPS, GIF and HTML.
Printer languages:ZPL II and EPL2; EPL forms convert to ZPL, raw ZPL converts between 203, 300 and 600 dpi.
Print jobs & cutting:start label, records and end label in one job, cut after the last label; a virtual printer on TCP 9100 shows where it cuts.
RFID:EPC encoding per GS1 EPC Tag Data Standard with the matching ^RF commands, checked against the printed SSCC.
Integrate
runs wherever your backend runs
Platforms:.NET 10 (LTS) and .NET 11 on Windows, Linux and macOS, in IIS, Docker and Kubernetes, on a Raspberry Pi or a NAS; no printer driver, NativeAOT-compatible.
Data sources:any IEnumerable, IQueryable or IAsyncEnumerable, so every EF Core provider, MongoDB, LiteDB and JSON; streamed with constant memory. Without C#: JSON, CSV or named SQL queries over the REST API of zplCore Server. Example: logistics print job
Containers:Dockerfile (distroless, non-root, /health) and Helm chart included; NativeAOT image from about 79 MB.
AI agents:the MCP server zplcore-mcp gives coding agents 26 tools to render, lint and check labels, offline and sandboxed.
Command line:the zplcore dotnet tool renders, converts, prints and checks labels in scripts and pipelines.
Get started
Try it with your own labels
Perpetual licence from €990 net plus VAT per developer (businesses only), no runtime fees. We are happy to check your own ZPL/EPL files before you buy.