Barcode Generator
Input
Preview
ExampleAbout
A barcode is a machine-readable representation of data using parallel lines of varying width. Different formats serve different industries: Code 128 handles any ASCII text and is common in shipping and logistics, EAN-13 is the standard for retail products worldwide, and UPC-A is used primarily in North American retail.
How to use
1.
Type into Value to encode - the barcode updates as you type, and if the value does not suit the format the preview says why
2.
Choose a Format - Code 128, the default, takes any plain ASCII text; EAN-13, EAN-8, UPC-A and ITF-14 need a fixed number of digits
3.
Select PNG or SVG to download the barcode, or Copy SVG to copy its markup
Common uses
▸
Generating barcodes for product labels or inventory management
▸
Creating barcodes for internal tracking systems
▸
Testing barcode scanner integrations during development
Similar tools
Frequently asked questions
Which barcode formats are supported?
The tool supports Code 128, Code 39, EAN-13, EAN-8, UPC-A, ITF-14, and MSI via the JsBarcode library.
What is the difference between Code 128 and EAN-13?
Code 128 can encode any ASCII character and is used for general-purpose barcodes (shipping, inventory). EAN-13 encodes exactly 13 digits and is the standard barcode format for retail products worldwide.
Can I download the barcode?
Download as PNG for raster use, or as SVG for a scalable vector file suitable for print - or use Copy SVG to paste the markup straight into a web page. The PNG is rendered at 4× resolution (8 pixels per bar module), so the bars stay sharp.
Is my data sent to a server?
Barcode generation runs entirely in your browser using the JsBarcode library. No data is transmitted anywhere.
What happens if my input is invalid for the selected format?
The error tells you which rule the value breaks. EAN-13, EAN-8, UPC-A and ITF-14 accept digits only: enter one digit fewer than the full length (12 for EAN-13) and the check digit is calculated for you, or enter every digit and the last one must be the correct check digit - if it is not, the error shows the digit it should be. Code 39 accepts letters, digits, space and - . $ / + % (lowercase is encoded as uppercase), MSI accepts digits only, and Code 128 accepts standard ASCII characters but no accented letters or emoji.