QR & Barcode
Barcode Generator
Generate barcodes in Code 128, EAN, UPC formats. Free online tool — no sign-up, runs entirely in your browser.
See how to use this toolBarcode Generator
Generate Code 128, Code 39, EAN, UPC, and ITF barcodes locally.
Compact general-purpose barcode for inventory and logistics.
A valid check digit does not prove that a GS1 number is assigned to your organization.
Code 128
Enter valid data to generate a barcode.
Privacy: QR and GS1 data is processed locally in this browser.
About Barcode Generator
ToolConv's barcode generator renders 1D barcodes — Code128, Code39, EAN-13, EAN-8, UPC-A, and ITF (Interleaved 2 of 5) — entirely in your browser via the JsBarcode library. You pick a symbology, type the data, and the matrix is rasterized to a Canvas pixel buffer locally; nothing is uploaded, which matters for internal SKU codes, member IDs, or anything else you'd rather not send to a third-party API.
Each symbology has its own input rules: Code128 accepts any ASCII and is the most flexible; EAN-13/UPC-A require a fixed-length numeric string with a valid check digit (use our gs1-check-digit-calculator to compute it); ITF needs an even number of digits. The generator validates input against each symbology's spec and shows a clear error before you export, so you never print an unscannable code.
How to use it
- 1Choose a symbology (Code128 for general use, EAN-13 for retail products, UPC-A for North America).
- 2Type the data string, respecting length and character-set rules for the chosen symbology.
- 3Adjust bar width, height, and margin if you need a specific scan size.
- 4Preview the rendered barcode and read any validation warnings.
- 5Export as PNG, SVG, or JPG and print at full print resolution.
When to use it
- ✓Generating a Code128 barcode for an internal warehouse SKU.
- ✓Creating an EAN-13 barcode for a retail product packaging.
- ✓Printing a UPC-A barcode for a product sold in North American stores.
- ✓Making an ITF barcode for logistic carton (SSCC) labeling.
Features
- •Six symbologies: Code128, Code39, EAN-13, EAN-8, UPC-A, ITF — via JsBarcode.
- •Per-symbology input validation so you never print an invalid code.
- •Adjustable bar width, height, margin, and show-text toggle.
- •Local Canvas rendering — codes and data never leave your device.
Related tools
Printable Barcode Labels
Generate printable barcode label sheets. Free online tool — no sign-up, runs entirely in your browser.
GS1 Check Digit Calculator
Calculate GS1 check digits for GTINs. Free online tool — no sign-up, runs entirely in your browser.
QR Code Scanner
Scan and decode QR codes from images or camera. Free online tool — no sign-up, runs entirely in your browser.
Bulk QR Code Generator
Generate multiple QR codes at once from a list. Free online tool — no sign-up, runs entirely in your browser.
URL QR Code Generator
Turn a complete HTTP or HTTPS address into a static QR code. Preview it, copy the encoded address, or download the SVG.
Calendar Event QR Code Generator
Generate QR codes for calendar events. Free online tool — no sign-up, runs entirely in your browser.
Email QR Code Generator
Generate QR codes for email addresses. Free online tool — no sign-up, runs entirely in your browser.
Phone QR Code Generator
Generate QR codes for phone numbers. Free online tool — no sign-up, runs entirely in your browser.
FAQ
Which symbology should I choose?
Code128 for internal/general use (any ASCII, variable length); EAN-13 for retail products outside North America (13 digits); UPC-A for North American retail (12 digits); ITF for logistics cartons (even number of digits).
Why does EAN-13 need a check digit?
The last digit of an EAN-13 is a Mod10 check digit computed from the first 12, used by scanners to detect misreads. If you type a 12-digit base, the generator appends the correct check digit; if you type 13, it validates the final digit.
Is my barcode data uploaded to a server?
No. The barcode is rendered to a Canvas pixel buffer entirely in your browser by the JsBarcode JavaScript library. No data string is transmitted over the network.
Can I print the barcode at any size?
Each symbology has a minimum scannable width determined by its narrowest bar. For reliable scanning keep the magnification between 80% and 200% of the symbology's nominal size, and export SVG for crisp edges at any print scale.
Why is my Code39 barcode wider than expected?
Code39 encodes each character with start/stop patterns and is relatively low-density. If width matters, switch to Code128, which uses a more compact encoding and supports the same alphanumeric data in fewer modules.
Can I show the human-readable text under the bars?
Yes. The 'show text' toggle renders the data string beneath the bars in a readable font, which is standard practice for retail and logistics labels so a human can key-enter the number if the scan fails.