Home › Generators › Barcode Generator
🏷️

Barcode Generator

Create barcodes online in one click — Code 128, EAN-13, UPC-A and more. Download as SVG, PNG or PDF, or generate up to 100 at once. Free, no signup.

About this tool

This free barcode generator turns any text or number into a scannable Code 128 barcode in one click. Type what you want to encode, and it creates a crisp barcode image you can download as an SVG — no signup, no software to install, and no cost.

Our free tool uses the Code 128 standard, the most widely supported barcode format in the world. It works with almost every handheld scanner and phone scanning app. Everything runs entirely in your browser, so the text you enter never leaves your device.

By Azhar Hussain · Last updated: 7 November 2026

How to use

Pick a barcode format first. Code 128 works for any text or numbers and is the best choice for warehouse labels, asset tags and shipping. For products sold in shops, choose EAN-13 or UPC-A and enter the number without its check digit — the tool works it out and adds it for you. EAN-8 is for small items, and Code 39 handles letters, numbers and a few symbols.

Type your text or number, click Generate Barcode, and your barcode appears below. Download it as SVG for sharp printing at any size, PNG for documents and labels, or PDF for printing. You can also print the page directly from your browser.

To make many barcodes at once, paste up to 100 values in the bulk box — one per line — and click Generate Barcode. You get every barcode on one page, ready to download as a ZIP file or print as a sheet. Test-scan one barcode with your phone before printing a large batch.

The math behind it

Code 128 encodes each character as a pattern of dark bars and light spaces of varying widths. A start symbol tells the scanner which character set is used, then every character becomes an 11-module pattern, and a check digit at the end lets the scanner verify it read the code correctly.

Retail barcodes end in a check digit that catches typing mistakes. It is worked out from the other digits with weights of 3 and 1, alternating from the right: add the weighted digits up, and the check digit is what brings the total up to the next multiple of 10. For example, 590123412345 adds up to 83, so the check digit is 7 and the full number is 5901234123457. A correct check digit only means the number is well-formed — it does not mean the number is officially registered with GS1.

Which barcode type should I use?

If you are labelling your own stock, shelves or equipment, Code 128 or Code 39 is the simplest choice — no registration is needed. If the barcode will be scanned at a shop till, you need a GTIN number registered with GS1 first; a correct check digit alone is not enough.

FormatBest forTypical dataNeeds GS1 registration?
Code 128Internal tracking, shipping, warehouse labels, asset tagsAny letters, numbers and symbolsNo
EAN-13Retail products sold worldwide (outside the US and Canada)13 digits (12 + check digit)Yes — for products sold in stores
UPC-ARetail products sold in the US and Canada12 digits (11 + check digit)Yes — for products sold in stores
EAN-8Small retail items with little label space8 digits (7 + check digit)Yes — for products sold in stores
Code 39Industrial labels, ID cards, asset tagsLetters, numbers and - . $ / + %No

Code 128 is the flexible all-rounder: it handles letters, numbers and symbols, so it suits warehouse labels, asset tags, shipping and tickets. EAN-13 is the retail standard for most of the world, UPC-A is the retail standard for the United States and Canada, and EAN-8 is the same idea in a smaller code for tiny items. Code 39 is an older standard still common on industrial labels and ID cards.

Understanding check digits

Retail barcodes end in a check digit that catches typing mistakes. It is worked out from the other digits with weights of 3 and 1, alternating from the right: multiply the digits by 3, 1, 3, 1 and so on, add them up, and the check digit is what brings the total up to the next multiple of 10.

Worked example: 590123412345. From the right, the weighted sum is 5×3 + 4×1 + 3×3 + 2×1 + 1×3 + 4×1 + 3×3 + 2×1 + 1×3 + 0×1 + 9×3 + 5×1 = 83. The next multiple of 10 is 90, so the check digit is 7 and the full number is 5901234123457.

If you type a full 13-digit EAN-13, this tool checks the last digit for you and tells you if it is wrong, instead of drawing a barcode that will not scan. Remember: a correct check digit only means the number is well-formed. It does not mean the number is officially registered with GS1 — for products sold in stores, the number itself must come from GS1.

Printing tips

Barcode won’t scan? Try this

Frequently asked questions

What is a Code 128 barcode?
Code 128 is a high-density barcode standard that can encode all 128 ASCII characters, including letters, numbers and symbols. It is the default choice for shipping, logistics and retail because almost every scanner ever made can read it. Our generator produces Code 128 barcodes, so yours will work with standard equipment.
Will my barcode scan with a phone camera?
Yes. Modern phones can scan Code 128 barcodes with the built-in camera app or any free scanner app. Print the barcode at a reasonable size, at least 3 cm wide, on a light background with good contrast, and it should scan on the first try. Always test one print before producing hundreds.
Can I use the generated barcodes commercially?
Yes. Barcodes you create with this tool are yours to use on products, packaging, tickets or labels, including for business purposes. One thing to know: retail products sold in major stores usually need an officially registered GTIN number, which this tool does not provide. For internal tracking, assets and small shops, these barcodes are perfect.
What is the difference between UPC, EAN and Code 128?
UPC-A (12 digits) is the retail standard for the United States and Canada, and EAN-13 (13 digits) is the retail standard for most of the rest of the world. Both need a number registered with GS1 for products sold in stores. Code 128 is the flexible format for internal use — warehouse labels, asset tags and shipping — and needs no registration. This tool generates Code 128 barcodes.
How do I create a barcode for free?
Type your text or number into a free online barcode generator, pick the barcode type and download the image. With this tool, enter your text or SKU, click Generate Barcode and download the crisp SVG — no sign-up needed. One thing to know: for products sold at retail, the number itself must come from GS1 — the generator only draws the barcode image.
Can I generate many barcodes at once?
Yes. Paste up to 100 values in the bulk box, one per line, and click Generate Barcode. You get every barcode on one page as Code 128, ready to download as a ZIP file or print as a sheet. If you paste more than 100 values, the tool asks you to split the list into smaller batches.
Which download format should I choose — SVG, PNG or PDF?
SVG is a vector image, so it stays sharp at any size — the best choice for packaging and labels. PNG is best for documents, emails and label software that needs an image file. PDF is best for printing, because it keeps the barcode at the right size on the page. All three are free and made in your browser.
My barcode won't scan. What should I check?
The most common causes are a barcode printed too small, the quiet zone covered up, low contrast, printing at the wrong scale, or a wrong check digit. Print at 100% scale, at least 3 cm wide, with dark bars on a light background and clear space on both sides — then test-scan one copy with your phone before printing a large batch.
Do I need a GS1 number for EAN-13 or UPC-A?
A valid check digit only proves the number is well-formed — it does not mean the number is registered. Products sold in major stores need a GTIN number registered with GS1, and the barcode must show that number. For your own stock, shelves or equipment, Code 128 or Code 39 needs no registration at all. This tool only draws the barcode image; it does not register numbers.

Related tools

💬 Comments

Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.