Barcode Generator

Make scannable Code 128, UPC, EAN, QR and Data Matrix codes at exact print sizes with this free barcode generator, one at a time or in bulk on label sheets.

Valid Code 128

Size & print options

Everything runs in your browser. Nothing you type is uploaded.

Preview

0.330 mm X · 15.0 mm high

Retail UPC/EAN numbers are licensed by GS1. This tool draws the barcode for a number you already own; it does not issue numbers.

How to make a barcode in 3 steps

First choose the barcode type. Code 128 is the safest default for stock-keeping units, asset tags, bins and order numbers because almost every handheld scanner reads it. Retail products need UPC or EAN numbers, cartons use ITF-14, and phones expect QR codes. If you are unsure, start with Code 128 and change the type later — the data field keeps its contents.

Second, type the data. The tool checks the characters that the chosen symbology can encode, adds a mandatory check character where the standard requires one, and shows the exact size before you download. A Code 128 check character is calculated automatically and is not printed under the bars.

Third, set the size and download. Keep the suggested 0.33 mm module width and 15 mm bar height unless your label or scanner instructions say otherwise. Download the PDF for printing, or the SVG when a designer needs vector artwork. Print at 100 percent — never “Fit to page” — and compare the printed width with the size shown on screen.

Which barcode type should you use?

Type Best for Notes
Code 128 SKUs, assets, bins, orders, packing lists Compact, encodes all printable ASCII, one mandatory check character
Code 39 Older inventory and workshop systems Uppercase letters, digits and a few symbols; wider than Code 128
UPC-A / UPC-E Retail products in the US and Canada Requires a GS1 company prefix; UPC-E is a shortened UPC-A
EAN-13 / EAN-8 Retail products internationally EAN-13 is the global retail standard; EAN-8 suits very small packs
ITF-14 Shipping cartons and cases Fourteen digits, printed on corrugated board with a bearer frame
QR Code Phones, links, Wi-Fi joining, short instructions Holds text or a URL; scan with a camera app
Data Matrix Very small parts and industrial labels Square or rectangular, reads well at low contrast

For retail work, open the UPC barcode generator instead: it adds magnification presets, check-digit workings and converters between UPC-A, UPC-E, EAN-13 and ITF-14.

Bulk barcodes from a list or a sequence

The Batch tab turns a pasted column into a print-ready sheet. Put one value per row; optional comma-separated columns after the first can carry a product name or a price, and a copies column repeats a row. Blank rows are skipped, and any row that the chosen type cannot encode is reported before a PDF is made.

Sequence mode is quicker for asset tags. Enter a prefix such as ASSET-, a start number, a step, a count and a zero-pad width. The preview list shows exactly what will be printed, so you can check that ASSET-0007 follows ASSET-0001 with a step of two. Sequences avoid the mistakes that appear when numbers are typed by hand.

Choose a label sheet that matches the packet in front of you. The catalogue includes the common 30-per-sheet layout on Letter paper, 1 × 2-5/8 inches, which is compatible with Avery® 5160, plus A4 sheets with 21 labels at 63.5 × 38.1 mm. Start at the first free label if part of the sheet has already been used; the remaining labels continue in the correct order.

Always print one plain-paper test page first. Hold it against a window with the label sheet behind it, or place both on a light table, and check that the symbols sit inside the label outlines. Small printer margins vary, so a tiny nudge may be needed before a large run. Avery is a trademark of its owner; PrintableMate is not affiliated with Avery.

Barcode sizes that scan

A barcode is made of modules: the narrowest bar or space. Its width is called the X-dimension. Print too small and the scanner sees a grey blur; print too large and the symbol may not fit the label. For Code 128, keep X at or above 0.19 mm and leave a quiet zone of at least ten modules on both sides. The bar height should be at least 15 percent of the symbol length and never less than 6.35 mm.

Retail symbols follow GS1 rules. UPC-A and EAN-13 are usually printed at 100 percent, which gives an X-dimension of about 0.33 mm. The permitted range is roughly 80 to 200 percent. Shorter bars are allowed only for very small packages, and only within the standard.

Thermal printers work in dots, not millimetres. A 203 dpi printer has dots about 0.125 mm wide, so a requested 0.33 mm bar may become three dots, or 0.375 mm. Use the DPI snap control to round the module width to whole printer dots; the result line then shows the effective X-dimension and how many dots it uses. This is the difference between a barcode that scans every time and one that fails at the till.

Download formats: SVG, PNG or PDF

The PDF is the print file. It contains the symbol at the exact size shown, with a two-millimetre margin, and no logo, URL or watermark. Print it from a desktop PDF viewer at 100 percent or Actual size.

SVG is for design work. It uses millimetre units, so placing it in a layout program at 100 percent keeps the bars at the intended width. Do not scale a barcode non-proportionally: width and height must change together, or the bars become too narrow to read.

PNG is useful for slides and simple documents. It is written at 600 dpi so that the image has a known physical size in programs that read image resolution. Do not stretch a PNG after inserting it; replace it with a new export at the size you need.

How this barcode generator works

Everything runs locally in your browser. The drawing engine is bwip-js, an open-source barcode library, and the PDF writer is pdf-lib. When you type, the tool validates the data, asks the encoder for the exact module pattern and draws each bar as a vector rectangle. Because the geometry is vector-first, the SVG and PDF stay crisp at any print resolution.

Check characters are part of the standard, not a security feature. Code 128 uses a weighted mod-103 calculation; UPC and EAN use a mod-10 weighted sum. The tool verifies a check digit you supply and offers the corrected number when it is wrong, so a single typing mistake does not become a thousand bad labels.

Nothing is uploaded, and there is no account. Share links store the settings after the # fragment, which browsers keep on the device; the website never receives that part of the URL. Saved settings stay in local storage until you press Clear my data.

Tips and limits

Print dark bars on a light background with strong contrast. Black on white is best; avoid red bars, glossy paper and coloured backgrounds behind the quiet zones. Keep the symbol away from folds, seams and the edge of a curved label.

Test with the scanner you will actually use. A phone camera is a good first check, but a warehouse laser scanner may need a larger X-dimension. Our barcode scanner reads camera frames and images on the device, so you can confirm a print without installing anything.

Code 128 accepts up to 80 characters here. QR codes accept up to 1,000 characters, enough for a short URL or joining instructions. A single batch is capped at 500 labels to keep the browser responsive. GS1-128 application identifiers, PDF417 and ISBN add-ons are not part of this version.

Updated:

Frequently asked questions

Is this barcode generator really free?

Yes. There is no sign-up, no watermark and no limit on how many codes you make. Ads may appear around the page, but never inside the barcode, the PDF, the SVG or the PNG you download.

How does a barcode generator work?

It converts each character into a pattern of bars and spaces. A Code 128 symbol adds a start character, a mod-103 check character and a stop pattern, then the tool draws those modules at your chosen width and height.

Do I need to install barcode generator software?

No. This online barcode generator runs entirely in your browser and works offline after the page has loaded. You only need label software if you print from a large product database with your own templates.

How do I make a Code 128 barcode?

Code 128 is the default. Type up to 80 printable ASCII characters, keep the suggested 0.33 mm X-dimension and 15 mm bar height, then download the PDF. The code sets and check character are handled for you.

Can I make barcodes in bulk from Excel or Google Sheets?

Yes. Copy a column from your spreadsheet into the Batch tab. Column A becomes the barcode data, and the list can be laid out on a label sheet or one symbol per page. Up to 500 rows are handled in one PDF.

What size should a printed barcode be?

Start with an X-dimension of at least 0.19 mm for Code 128 and keep quiet zones of at least ten narrow modules on each side. Bar height should be at least 15 percent of the symbol length, and never shorter than 6.35 mm.

Can I put these barcodes on products I sell in stores?

Only if the number is licensed from GS1 by your company. This tool draws a barcode for a number you already own; it does not issue retail numbers. Use Code 128 for internal SKUs and the UPC generator for retail symbols.

Is my data uploaded anywhere?

No. The barcode is drawn on your device and nothing you type is sent to a server. A share link keeps the settings after the