Barcode Generator
Create a scannable barcode from any number or text, right here in your browser. Choose CODE128, EAN-13, EAN-8, UPC, Code 39 or ITF-14, then download a PNG or SVG — no signup, no watermark, no expiry. Your data never leaves your device.
What is the Barcode Generator?
This barcode generator turns a number or short string into a scannable 1D barcode, right in your browser. A barcode is a row of parallel bars and spaces of varying width that a laser or camera scanner reads as data — the value behind a product, an asset tag or a shipping carton. This tool supports six of the most widely used symbologies (CODE128, EAN-13, EAN-8, UPC-A, Code 39 and ITF-14), validates your input as you type, and lets you download the result as a PNG image or a sharp SVG vector. Nothing is uploaded.
How to use it
- Type or paste the data you want to encode into the input box.
- Choose a format — Code 128 is the flexible default; pick EAN/UPC for retail products or ITF-14 for shipping cartons.
- The barcode updates live. If the data is not valid for that format, a clear message tells you exactly what to fix.
- Optionally adjust the bar width, height, colors, and whether the human-readable text shows under the bars.
- Click Download PNG for an image, or Download SVG for a vector you can scale for print.
That is the whole workflow: type, pick a format, download, done. No account, no email, no paywall.
The method behind it
A 1D barcode encodes characters as a fixed pattern of bars and spaces defined by its symbology standard. CODE128 packs full ASCII into a dense, compact code and is the right choice when you simply need any text or number scannable. The retail formats — EAN-13, EAN-8 and UPC-A — encode a fixed number of digits and end with a modulo-10 check digit so a scanner can catch a misread. ITF-14 encodes 14 digits in an interleaved two-of-five pattern for cases and cartons. Code 39 encodes uppercase letters, digits and a handful of symbols, and is popular for internal asset tags because it needs no check digit.
For the GS1 numeric formats this tool computes the check digit the same way scanners verify it: each digit is multiplied by an alternating weight of 3 and 1 from the right, the weighted values are summed, and the check digit is the amount needed to reach the next multiple of ten. If you type the full code the check digit is verified, and if you leave it off it is calculated and appended for you. All of this runs in JavaScript on your device, which is why the result appears instantly and your data stays private.
Examples
- Internal SKU: encode
UTIL-2026-001as CODE128 and download a PNG for a label sheet. - Retail UPC: enter the 12 digits
036000291452to print a North American product barcode. - EAN-13 with auto check digit: type the first 12 digits and let the tool append the 13th digit.
- Shipping carton: generate an ITF-14 such as
15400141288763as an SVG for a corrugated box.
Common use cases
- Labeling inventory, stock and shelves in a small shop or warehouse.
- Printing retail product codes (EAN/UPC) for items you sell online or in store.
- Tagging assets, tools and equipment so they can be checked in and out by scan.
- Marking shipping cartons and outer cases with ITF-14 codes.
- Adding a quick scannable reference to a packing slip, form or library item.
Why use this one
Many barcode sites push you to create an account, stamp a watermark on the image, cap how many codes you can make, or charge for the vector download. This one does none of that. Every barcode is generated 100% in your browser, so the value you enter never leaves your machine — you can verify it in the network tab. You get six common formats in a single tool, live check-digit validation so EAN and UPC codes are correct before you print them, and free PNG and SVG downloads with no signup, no watermark and no expiry. Need a 2D code instead? Try the QR Code Generator, mint identifiers with the UUID Generator, or create a strong secret with the Password Generator.
Frequently asked questions
Which barcode format should I choose?
Use CODE128 when you just need any text or number encoded — it is the flexible all-purpose default. Use EAN-13 or UPC-A for retail products sold in stores, EAN-8 for very small packages, Code 39 for internal logistics or asset tags, and ITF-14 for shipping cartons and outer cases.
Is my data sent to a server?
No. The barcode is drawn entirely in your browser with JavaScript, so the value you type stays on your device and is never uploaded. You can confirm this by opening your browser's network tab while you generate a code.
What is a check digit and do I have to add it?
EAN, UPC and ITF-14 codes end in a check digit that scanners use to detect typing errors. You can type the full code and the tool verifies the check digit, or leave the last digit off and it is calculated and appended for you automatically.
Can I download a barcode as a vector for printing?
Yes. You can download a PNG for screens and quick sharing, or an SVG vector that stays perfectly sharp at any print size — both are free with no watermark and no account.
Why will my barcode not scan?
The usual causes are printing it too small, too little quiet space around the bars, low contrast, or invalid data for the chosen format. Keep dark bars on a white background, leave the default height and margins, and make sure the value matches the format's rules.