Barcode Generator
Generate barcodes in Code 128, Code 39, EAN-13, UPC-A, and other common formats. Adjust size and label display, then export PNG or SVG directly in your browser.
Generate Barcode
px
px
Preview
Click "Generate Barcode" to see preview
Verify a barcode number
Paste an EAN-13, EAN-8, UPC-A, ITF-14 or MSI number to check its check digit — no barcode image needed
Do I need a GS1 number to use these barcodes?
For EAN-13 and UPC-A codes on retail products, yes — you need a licensed GS1 company prefix so your numbers are unique worldwide. For internal uses like inventory, asset tags, or tickets, Code 128 and Code 39 require no registration.
GS1 US: GTIN and company-prefix optionsBarcode format reference
Data capacity, character set and check-digit scheme for every supported format
| Format | Data | Charset | Check digit | Typical use |
|---|---|---|---|---|
| CODE 128 | Variable length | Full ASCII | mod-103 (auto) | Logistics, inventory, any-length labels |
| EAN-13 | 13 digits (fixed) | Digits 0–9 | mod-10 (3/1) | Retail products worldwide |
| EAN-8 | 8 digits (fixed) | Digits 0–9 | mod-10 (3/1) | Small retail packages |
| UPC-A | 12 digits (fixed) | Digits 0–9 | mod-10 (3/1) | Retail in North America |
| CODE 39 | Variable length | A–Z 0–9 - . $ / + % space | mod-43 (optional) | Industrial, names and IDs |
| ITF-14 | 14 digits (fixed) | Digits 0–9 | mod-10 (3/1) | Shipping containers (cartons of EAN-13) |
| MSI | Variable length | Digits 0–9 | mod-10 (Luhn) | Warehouse shelves, library inventory |
| PHARMACODE | Variable length | Digits 0–9 | none | Pharmaceutical packaging |
What Is a Barcode Generator?
Use this barcode generator to encode product IDs, inventory numbers, ticket references, and other short values in common linear barcode formats. You can preview the output, adjust width and height, and export files for print or digital workflows.
Professional Features
- 01 High-resolution exportCreate clean barcode images in PNG and SVG for labels, packaging, and print layouts.
- 02 Flexible sizingAdjust bar width, height, and whether readable text appears below the barcode.
- 03 Instant preview and exportGenerate a barcode, review the result, then download or print without extra steps.
- 04 Browser-based workflowCreate and export barcode images directly in the tool interface.
- 05 Retail and logistics formatsSwitch between Code 128, Code 39, EAN-13, EAN-8, UPC-A, ITF-14, MSI, and Pharmacode.
- 06 Works on desktop and mobileAdjust settings and export barcodes from a phone, tablet, or desktop browser.
Common Use Cases
- 01 Retail product labelsUse EAN-13 or UPC-A for product labels, shelf tags, and packaging workflows.
- 02 Inventory managementCreate Code 128 or Code 39 labels for bins, assets, and warehouse tracking.
- 03 Event tickets and passesGenerate scannable references for tickets, badges, and check-in materials.
- 04 Document and parcel trackingAdd barcode identifiers to files, packages, and internal routing labels.
Why Choose Our Barcode Generator?
Professional quality
- 01 Supports common barcode formats used in labeling and retail workflows
- 02 Provides PNG and SVG output for screen and print use
- 03 Lets you preview barcode text and sizing before export
Browser-based workflow
- 01 Create barcode images directly in the browser interface
- 02 No account is required to generate or export a barcode
- 03 Adjust format, size, and label display before downloading
Built for labels, inventory, and ticket workflows • Browser-based generation • PNG and SVG export
Barcode Generator FAQ
What barcode format should I choose?
Code 128 is a flexible default for many internal labels, while EAN-13 and UPC-A are commonly used for retail product codes.
Can I print barcodes created here?
Yes. Preview the barcode at the size you need, then export PNG or SVG for your print workflow.
What text lengths are supported?
It depends on the selected format. Retail formats like EAN-13 and UPC-A require fixed lengths, while formats such as Code 128 are more flexible.
Should I show the text below the barcode?
Human-readable text is useful on many labels because it lets people verify the encoded value when a scanner is not available.
Does the barcode generator send my data to a server?
No. Generation runs entirely in your browser, so the text you type never leaves your device. Nothing is stored or logged, and you can keep generating barcodes even after losing your internet connection.
What is the difference between PNG and SVG export?
PNG is a raster image with fixed pixel dimensions, best for websites and documents. SVG is vector-based and scales to any size without blurring, which makes it the better choice for packaging, labels, and professional print work.
Why is my barcode not scanning?
Common causes are printing too small (keep UPC-A and EAN-13 at least 3 cm, about 1.2 inches, wide), cropping the quiet zone margins, low contrast, or characters the format cannot encode. Export as SVG or high-resolution PNG and leave the surrounding margins intact.
Do I need a GS1 number to use these barcodes?
For EAN-13 and UPC-A codes on retail products, yes — you need a licensed GS1 company prefix so your numbers are unique worldwide. For internal uses like inventory, asset tags, or tickets, Code 128 and Code 39 require no registration.
EAN-13/EAN-8/UPC-A/ITF-14 accept a data-only length (the check digit is added) or a full code whose check digit is verified. Leading zeros are data and are preserved. Code 128 encodes characters; it does not assign a GTIN. Creating a barcode image does not register, allocate or establish ownership of a GS1 identifier. A successful image read-back checks encoded content, not GS1 registration or print certification.
Batch labels: existing product-label generator · GS1 check digit
References & Resources
-
Barcode - Wikipedia
Comprehensive guide to barcode technology and standards.
-
GS1 Standards
Global standards for barcodes, including UPC, EAN, and GS1-128.