Use case
Apparel tags: hang tags, size labels and item tags from your data
A garment can carry three kinds of small label: a hang tag with a barcode for the register, a size or care label that is sewn in, and an item tag with an RFID tag in it. They are the same few facts in different shapes, and they come from your product file. Care, fiber-content and country-of-origin labeling are separate obligations with their own rules GS1 US, and this page says nothing about what such a label must show. BarcoderX prints the text, barcodes and tag data it is given. It knows no labeling law.
The tags at a glance
GM is the GS1 GTIN Management Standard, GS the GS1 General Specifications Standard, TDS the GS1 EPC Tag Data Standard, GS1 US a page from GS1 US, a GS1 member organization, and GS1 GO a support article from the GS1 GO customer service portal. Gray references point to the sources listed at the end. The sample data is invented, except the serial number 4711, which is the one GS1 prints in its own example.
The documents cited below are the authority; this page summarizes, in our own words, the parts we read. BarcoderX prints the label from the data it is given. It does not issue GTINs or serial numbers, read or verify barcodes or tags, know what a care, fiber-content or country-of-origin label must say, or certify, approve or validate a label under any rule.
- Style name and colorText from your product file, as you supply it.
- SizeText from your product file. GS1 treats each size as a separate product with its own GTIN: see element 4.
- PriceText from your own price list. BarcoderX prints the figure and the currency symbol you give it and decides nothing about them.
- GTIN barcodeThe variant's GTIN as UPC-A or EAN-13, with its digits as readable text. Each style, color and size has its own GTIN. GM 2.1; GS 2.1
- Size or care labelLines of text, and symbol images, that you supply. BarcoderX has no wording, symbols or rules of its own for care or content labels.
- Item tag with RFID (optional)A tag in the label that holds the item's number and is read without line of sight. Encoding is through ZPL only. TDS 4.3, 6.3.1
The tags on a garment
A hang tag hangs from the garment and carries what the shop needs at the register: the style, the size, the price and a barcode for the GTIN. GS1 US names hang tags, price tickets, adhesive labels and polybags as the usual places for a retail barcode, and says a barcode almost never goes on the fabric itself. GS1 US
A sewn-in size or care label stays with the garment. Care, fiber-content and country-of-origin labeling are separate obligations with their own rules GS1 US, and this page does not cover them: BarcoderX prints the wording and the symbols you supply and knows no labeling law. Whether a stock and ribbon survive washing, dry cleaning or ironing is stated by the media maker; BarcoderX makes no statement about it.
An item tag with an RFID tag in it identifies the single garment, where the barcode identifies the variant. GS1 US says RFID does not replace the retail barcode in most environments, so apparel brands typically run both. GS1 US
What GS1 says about garment identifiers
- One GTIN for every variant. The GTIN Management Standard gives a jeans line as an example of a new product: each style, color and size variation is a unique product and is assigned a unique GTIN. GM 2.1 GS1's own support page says the same of sizes and colors: each size, each color and each combination needs its own GTIN. GS1 GO
- Packs. A predefined assortment of trade items is a product of its own, and replacing one of the items in it, for example a blue shirt in a pack by a yellow one, needs a new GTIN. GM 2.9
- A price on a hang tag. The rule on a price printed on the package covers pre-pricing in the package graphics, and it says that this is not a price marked on a price ticket, sticker or hangtag. GM 2.10
- Regulations come first. The standard adds that local, national or regional regulations may require more frequent GTIN changes and take precedence over its rules. GM 2.9, 2.10
- Which barcode (GS1 US). UPC-A, which carries a GTIN-12, is described as the usual choice for individual garments sold at retail in North America, and EAN-13, which carries a GTIN-13, as the one used in other markets; check what your retailer requires. ITF-14 and GS1-128 are named for shipping cases rather than single garments. GS1 US; GS 2.1
- From a GTIN to an RFID tag. A GTIN identifies a class of trade items, not one item, so by itself it does not correspond to an EPC. A GTIN with a unique serial number does, and that combination is the SGTIN. TDS 4.3, 6.3.1 The serial number in the SGTIN is defined as equivalent to Application Identifier (21). TDS 7.3
- The SGTIN-96 serial number. In the TDS, an SGTIN-96 serial number is numeric only, without leading zeros, from 0 through 274,877,906,943. That is what the TDS defines, not a statement of what BarcoderX encodes. TDS 14.6.1
- What the TDS covers. Besides the EPC, it specifies the data carried on Gen 2 RFID tags: the EPC, user memory data, control information and tag manufacture information. TDS Foreword; 9.1
None of these documents says what BarcoderX must do. We cite no rule for care, fiber-content or country-of-origin labels.
Which barcodes, and why
A GTIN is the GS1 product identifier: 8, 12, 13 or 14 digits ending in a check digit. EAN-13 carries a GTIN-13, UPC-A a GTIN-12 and ITF-14 a GTIN-14. GS 2.1 Which one a tag needs depends on where the garment is scanned.
| Barcode | Role | Edition |
|---|---|---|
| UPC-A or EAN-13 | The variant's GTIN at the register. Both are fixed-length numeric codes. See the ^BU and ^BE pages. GS1 US; GS 2.1 | Basic |
| Code 128 | Your own style or SKU code. Not a GS1 structure. | Basic |
| ITF-14 or GS1-128 | On a carton of garments rather than on a garment. GS1 US names both for shipping cases. GS1 US GS1-128 explainer | Basic |
| Data Matrix or QR Code | A 2D symbol, if a scanner or a partner asks for one. GS1 Data Matrix and GS1 QR Code are GS1 carriers. | Ultimate |
BarcoderX has the Application Identifier dictionary, per-identifier validation, check digits, and SSCC and GTIN helpers built in; you enter data in brackets or with FNC1 and the check digit is computed for you. GS1 built in Check digit calculator
Tags are small, so size is counted in dots. BarcoderX snaps the module width to whole dots, reports the effective size, enforces quiet zones and warns when a box clips one. Symbol options
The data it needs
Apparel tags are printed in batches from a product file, so the data usually already exists in your product system. The sample values are made up, except the serial number, which is the one in GS1's own example.
| Field | Sample value | Where it goes |
|---|---|---|
| Style name and color | Linen shirt, Navy | Text, element 1. Accented letters need the right font and character set. |
| Size | M | Text, element 2, and on the size label, element 5. |
| Price | $49.95 | Text, element 3, from your own price list. |
| GTIN | 5901234123457 | The barcode, element 4, and the same digits as readable text. The last digit is a check digit. GS 2.1 |
| Care or content wording | Your own text | Text lines, and symbol images you supply as PNG or JPEG, element 5. Thermal output is monochrome, so an image is converted to dots by threshold or dithering (raster); barcodes and shapes are drawn to exact dots and never dithered. |
| Serial number | 4711 | One per item, for the RFID tag only, element 6: from your own system. TDS 6.3.1 |
Three colors and five sizes of one style are fifteen variants, so fifteen GTINs GS1 US and fifteen rows, and one template binds to all of them. The rows come from objects, a DataTable, CSV, JSON or XML. Templates and data
Names and wording with accents print right only if the font has the glyphs. Fonts and accents
RFID-ready item tags
An item tag is a label with an RFID tag in it, so the garment can be identified without line of sight. What the tag holds is the item's EPC, which for a garment is the variant's GTIN plus a serial number that is unique to that one item. TDS 4.3, 6.3.1 The GTIN comes from your product file and the serial number from your own system.
RFID encoding is through ZPL only.
The TDS is the authority on what a tag holds and how the numbers are packed into it. It runs to 313 pages, and we read the sections cited here, not the encoding procedures.
How it reaches the printer
The printer commands are the same on both routes, and both run on infrastructure you operate.
- Direct, from your application. The SDK packages send the printer commands from your own .NET process over TCP port 9100, serial, the Windows spooler, CUPS or USB. No API server and no agent is in the path.
- Through your API server. Your application queues a print job through the REST API on your API server. A print agent on the printer's network collects it and writes it to the printer beside it. The agent only dials out, so the printer network needs no inbound port.
A batch of tags is many labels at once, and your own application starts the print. Many labels come out as one multi-page PDF or as a ZIP of files when you export. When you print a job with many labels, static content is stored on the printer once, recalled for each label and deleted at the end of the job by default. Delivery to the agent is at-least-once and the agent de-duplicates by job id, so a reconnect does not print a label twice, and a retried request with an idempotency key does not queue a second label.
How long the print lasts depends on the media: direct thermal print fades with heat, light and age, and thermal transfer lasts longer. You choose the media, and the printer must know which kind is loaded. Whether a stock and ribbon survive washing, dry cleaning or ironing is stated by the media maker; BarcoderX makes no statement about it. Direct thermal and thermal transfer
Which edition covers it
EditionsBasic covers the linear (1D) and postal symbologies, including every GS1 DataBar variant; Ultimate adds the PDF417 family, other multi-row symbologies, every matrix (2D) symbology and GS1 composites, as set out on the pricing page.
For an apparel tag, that means UPC-A, EAN-13, ITF-14, Code 128 and GS1-128 are in Basic. A Data Matrix, GS1 Data Matrix or QR Code symbol is a matrix (2D) symbology and needs Ultimate.
The ZPL behind it
If you read the printer commands, these are the ones the barcodes and the quantity of an apparel tag use. Each page explains one command in our own words from the programming guide.
What BarcoderX does not do here
- No labeling law. BarcoderX prints what you supply. It does not know what a care, fiber-content, size or country-of-origin label must say in any country, and it does not check wording or symbols.
- No identifiers. GTINs and serial numbers come from your own systems. BarcoderX does not issue them and does not decide when a variant needs a new GTIN.
- No reading. BarcoderX does not read barcodes or RFID tags.
- No statement about EPC schemes. This page does not say which EPC coding schemes BarcoderX can write. The TDS is the authority on the schemes.
- No certification. BarcoderX does not certify, approve or validate a label or a tag under any rule, and does not report to any regulator.
Keep reading
Product labels Asset tags: identifying equipment, tools and fixed assets Pallet labels Server-side label printing for .NET Templates and data Fonts and accents Barcodes: the symbology registry GS1 check digit calculator Glossary: RFID Glossary: GTIN Pricing: what each edition covers All use casesNew to the printer language? Read the ZPL guides and command reference.
Sources
- GS1: GTIN Management Standard (GM)
- GS1 AISBL, Release 1.1, ratified September 2023. Sections 2.1, 2.9 and 2.10, read in the PDF behind this address. The other sections were not read. https://
ref.gs1.org/ standards/ gtin-management/ - GS1 GO: How many GS1 GTINs do I need when I have a product with many sizes and colours? (GS1 GO)
- GS1 support article, modified August 30, 2024. https://
support.gs1.org/ support/ solutions/ articles/ 43000734083-how-many-gs1-gtins-do-i-need-when-i-have-a-product-with-many-sizes-and-colours- - GS1: EPC Tag Data Standard TDS (TDS)
- GS1 AISBL, Release 2.1, ratified February 2024, at the permanent address of that release. Foreword (abstract), sections 4.3, 6.3.1, 7.3, 9.1 and 14.6.1. Not read: the encoding and decoding procedures, filter values, the other EPC schemes and user memory. https://
ref.gs1.org/ standards/ tds/ 2.1.0/ - GS1 US: Barcodes for Clothing & Garment Labels (GS1 US)
- GS1 US, a GS1 member organization; the page shows no date. Read as the summary of where barcodes go on garments and of UPC-A, EAN-13, ITF-14 and GS1-128. https://
www.gs1us.org/ upcs-barcodes-prefixes/ barcodes-for-clothing - GS1 General Specifications Standard (GS)
- Release 26.0, ratified January 2026. Section 2.1 only, as the product labels page cites it; it was not read again for this page. https://
ref.gs1.org/ standards/ genspecs/
Written by BarcoderX in its own words; not a publication of the bodies named above, whose documents are the authority. Read on November 15, 2026. Check the current edition before you rely on a detail. Not read: the GS1 RFID overview pages on gs1.org (they could not be opened), the GS1 RFID/Barcode Interoperability Guideline, the Gen 2 air-interface standard, the GS1 US Color and Size Codes Guidelines, and every care, fiber-content and country-of-origin labeling rule of any country.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.