Skip to content
Tatva ERP

Inventory · 17 November 2026 · 5 min read

Print barcode labels on a Zebra printer: ZPL basics for shops

Barcode label printing software and Zebra printers explained for shops: label sizes, dots and DPI, ZPL in plain words, and how to design price and size labels.

By the Tatva ERP team at Kentron Technologies

In short

  • Zebra label printers understand ZPL, a short text language that tells the printer where to put each line of text and each barcode.
  • A 203 dpi printer has 8 dots per millimetre, so a 50×25 mm label is 400×200 dots; a 300 dpi printer has about 12 dots per mm.
  • Every ZPL label starts with ^XA and ends with ^XZ; ^FO sets a position, ^FD holds the data, and ^BC draws a Code 128 barcode.
  • Common shop label sizes are 38×25 mm and 50×25 mm, printed 1 to 4 across a roll.
  • You do not have to write ZPL yourself; billing software with a label designer sends it for you.

Barcode label printing on a Zebra printer works through ZPL, a short text language that tells the printer where to put each piece of text and each barcode. You rarely need to write it by hand: label software or your billing software sends it. But knowing the basics helps you pick label sizes, fix alignment and understand what goes wrong.

This guide covers Zebra and other label printers only. Thermal receipt printers for bills are a different topic.

Label sizes shops actually use

Size (mm)Good forTypical fields
25×20Small items, jewellery boxes, cosmeticsBarcode, MRP
38×25Grocery, medical, general price stickersItem, barcode, MRP
50×25Most retail itemsShop, item, barcode, MRP, size
50×38Garment tags, footwear boxesShop, item, size, colour, barcode, MRP
75×50 and 100×50Cartons, godown labelsItem, batch, expiry, quantity, barcode

Rolls come 1, 2, 3 or 4 labels across. A 2-across roll of 38×25 prints two labels at once, which halves printing time for big stock arrivals.

Dots, not millimetres

A label printer thinks in dots. The number depends on its resolution:

  • 203 dpi: 8 dots per mm. A 50×25 mm label is 400 × 200 dots.
  • 300 dpi: about 12 dots per mm. The same label is about 600 × 300 dots.

This is why a label designed for one printer can print too small or cut off on another. Tell your software which resolution you have.

ZPL in plain words

Here is a complete 50×25 mm garment label for a 203 dpi printer, one command per row:

ZPLWhat it means
^XAStart of label
^PW400Print width 400 dots (50 mm)
^FO20,15^A0N,24,24^FDShree Garments^FSAt 20 dots across, 15 down, print the shop name in font 0, 24 dots tall
^FO20,45^A0N,22,22^FDCotton Shirt / Size M^FSItem and size on the next line
^FO20,75^BY2^BCN,60,Y,N,N^FD100001^FSA Code 128 barcode, 60 dots tall, with the number printed below it
^FO20,165^A0N,26,26^FDMRP Rs. 799^FSThe MRP near the bottom
^PQ2Print 2 copies
^XZEnd of label

The pattern repeats: ^FO (field origin) says where, a font or barcode command says how, ^FD holds the data, and ^FS closes the field. ^BY sets the bar width; a bigger number makes a wider barcode that is easier to scan but needs more room. The full command list is in Zebra's ZPL programming guide.

The numbers after ^FO are dots from the top-left corner of the label. To move a line 2 mm to the right on a 203 dpi printer, add 16 to the first number. To move it 1 mm down, add 8 to the second. That is all most alignment fixes need.

Because ZPL is text, the printer receives a few hundred bytes per label and prints fast. Sending a label as a picture works on any label printer but is slower on long runs.

Designing a label that scans every time

  1. Keep the quiet zone. Leave blank space on both sides of the barcode. Text touching the bars causes failed scans.
  2. Do not squeeze the barcode. Shorter numbers make shorter barcodes. A six-digit in-house code fits a 38 mm label comfortably.
  3. Put the price where the customer looks. MRP in the largest font after the barcode.
  4. Mind the rupee symbol. Built-in printer fonts may not have ₹. Print "Rs." or "MRP", or send the label as a picture.
  5. Test before a full run. Print three labels and scan each one.

Common problems and fixes

ProblemLikely causeFix
Print drifts down label by labelPrinter has not sensed the gap between labelsRun the media calibration given in your printer's manual
Half the label is cut offDesign is for a different DPI or widthSet the correct resolution and ^PW
Faint printDarkness too low or wrong label stockRaise darkness a little; use the stock your printer supports
Barcode prints but will not scanBars too thin or no quiet zoneIncrease ^BY or the label size

Choosing label stock

Labels come in two kinds. Direct thermal labels darken with heat and need no ribbon; they are cheap but fade in sunlight and heat over months, so they suit short-life price stickers. Thermal transfer labels use a ribbon and last much longer, which suits garment tags, cartons and anything that sits in stock for a season. Check which method your printer supports, and buy labels with the right core size and gap for it.

Count your monthly need before ordering rolls. A garment shop receiving 2,000 pieces a month needs at least 2,000 labels a month, plus spares for reprints. Running out of labels on the day a big lot arrives means stock sitting unlabelled and unsellable.

Size labels for garments and footwear

In a garment shop each size is often its own barcode, so one design in five sizes needs five label types. Good software prints the right number of each straight from the purchase entry: 3 of S, 6 of M, 6 of L and so on. More in size-wise stock for garment shops.

How Tatva ERP does it

Tatva ERP has a label designer with the ready sizes above and 1 to 4 labels across. You choose fields such as company, item, MRP, size or batch, expiry, cost code and rack, and print to a Zebra printer in ZPL or to any other label printer as a picture. Barcodes come from the item, size or batch, and new items can be numbered automatically from your own series. Start with our barcode billing setup guide, see the full list on the features page, or book a demo.

Questions people ask

What is ZPL in a Zebra printer?

ZPL (Zebra Programming Language) is the text language Zebra label printers use. A label is a short set of commands saying where to print text and barcodes, which the printer turns into a label very quickly.

What label size is best for a retail shop?

38×25 mm suits small items and price stickers; 50×25 mm gives room for shop name, item, size and MRP. Garment tags often use larger sizes such as 50×38 mm.

Can I print the rupee symbol on a Zebra label?

The printer's built-in fonts may not include ₹. Many shops print 'Rs.' or 'MRP'. Software that sends the label as a picture can print any symbol, at some cost in speed.

Do I need special software to print barcode labels?

You need something that creates the label: the printer maker's design tool, or billing software with a label designer. The second option fills item name, MRP and barcode from your stock automatically.

Keep reading

Book a demo

See Tatva ERP on your own kind of bill.

A 30-minute call, on your screen. Bring one of your bills; we will make it in Tatva while you watch.