Skip to content

Barcode Generator

UPC-A barcode 412345678903

412345678903, check digit 3 added. 37.29 x 25.82 mm (1.47 x 1.02 in), quiet zones included.

Sizes from 80% to 200% follow the GS1 range for checkout scanners. The PNG rounds each bar to whole pixels at 300 dpi.

Free to use, with no signup. Check the first print with your own scanner or phone before a full run.

Type the number, pick the barcode type and the size, then download. The barcode is drawn in your browser: vector bars in the SVG, EPS and PDF, bars on whole pixels in the PNG, and the check digit worked out for you.

  • UPC-A for stores in the US and Canada, EAN-13 and EAN-8 for the rest of the world, Code 128 for letters, SKUs and stock labels
  • Real size: bar width and bar height in millimeters, from 80% to 200% of the standard size
  • SVG for Cricut and laser software, EPS and PDF for print shops, PNG at 300 dpi for Word, Canva and label printers
  • Nothing is uploaded: the number stays in your browser

By the VectoSolve design team, technical review by Robin Monteiro, founder and developer.

Three barcodes made with this generator

Each one was drawn by the code of the tool above, and each file is the one you get from its buttons. Download them, print them at actual size, and scan them with your phone.

UPC-A

412345678903

A label for goods that never leave the business: GS1 keeps UPC-A numbers that start with 4 for use inside a company.

Size
100% (0.33 mm bars)
Bar height
22.85 mm
Overall
37.29 x 25.82 mm (1.47 x 1.02 in)
Modules
95 wide, 30 bars

EAN-13

2001234567893

A shelf tag at the smallest size checkout scanners are built for. EAN-13 numbers that start with 2 are for in-store use.

Size
80% (0.264 mm bars)
Bar height
18.28 mm
Overall
29.83 x 20.66 mm (1.17 x 0.81 in)
Modules
95 wide, 30 bars

Code 128

OAK-SIGN-1204

A stock label for an engraved oak sign: capitals, hyphens and digits, which UPC and EAN cannot hold.

Size
0.5 mm bars
Bar height
15 mm
Overall
93.5 x 20.45 mm (3.68 x 0.81 in)
Modules
167 wide, 46 bars

Which barcode to make

UPC-A

12 digits, the barcode on products sold in the US and Canada. 95 bar widths between 9-module quiet zones on each side; the bars of the first and last digit run down with the guard bars.

EAN-13

13 digits, the retail barcode everywhere else, and on books: an ISBN-13 is an EAN-13 that starts with 978 or 979. The same 95 bar widths as UPC-A, with 11 modules of quiet zone on the left and 7 on the right.

EAN-8

8 digits in 67 bar widths, for packs too small for an EAN-13, such as a lip balm or a pencil. GS1 hands out EAN-8 numbers one by one, on request.

Code 128

Letters, digits and punctuation, up to 48 characters here. For stock and bin labels, asset tags, order numbers and shipping. Store checkouts expect UPC or EAN on a product; Code 128 is for everything inside the business.

Where the number comes from

A barcode only carries a number. For a product sold in stores or on large marketplaces, that number has to be a GTIN licensed to your company by GS1 (GS1 US in the United States): retailers check it against the GS1 register. This generator draws any valid number; it does not sell or register numbers.

For things that stay inside your business, such as shelves, bins, a craft fair stock list or tool checkout, you need no license: use Code 128 with your own SKU, or an in-store number, a UPC-A that starts with 4 or an EAN-13 that starts with 2.

The check digit, worked out

The last digit of a UPC or EAN is not chosen: it is computed from the others, so a scanner can tell a misread. Here is the UPC-A example, 41234567890. From the right, the digits are multiplied by 3, 1, 3, 1 and so on.

Digit41234567890
Times31313131313
Product121631251872490

The products add up to 97. The check digit is what takes that sum to the next multiple of ten: 3, so the full number is 412345678903. Type 11 digits in the tool and it adds this digit; type all 12 and it checks it.

Inside a Code 128, symbol by symbol

The stock label OAK-SIGN-1204 holds 13 characters in 15 symbols. Letters go in set B, one per symbol; the four digits at the end switch to set C, which packs two digits into one symbol. Each symbol is 11 modules wide, three bars and three spaces; the stop symbol is 13.

SymbolValueBar and space widths
Start, set B104211214
O47133121
A33111323
K43112331
-13122132
S51213113
I41231311
G39211313
N46113321
-13122132
Switch to set C99113141
1212112232
044121322
Check symbol46113321
Stop1062331112

The check symbol: the start value plus each following value times its position, 2827 in all, divided by 103 leaves 46. The tool picks set B or C by the rules of the Code 128 standard, ISO/IEC 15417, so a run of digits takes fewer symbols and the barcode stays short.

Size, quiet zones and printing

Bar width

The narrowest bar, the X-dimension, is 0.33 mm at 100% for UPC and EAN. Checkout scanners are built for 80% to 200%, 0.264 mm to 0.66 mm; every other bar is a multiple of it.

Bar height

At 100% the bars of a UPC-A or an EAN-13 are 22.85 mm tall, 18.23 mm on an EAN-8, and the guard bars run 5 modules lower. The tool scales the height with the size; cutting it shorter makes the code harder to scan at a checkout, so do it only when the pack leaves no room.

Quiet zones

Leave blank space on both sides: 9 modules for UPC-A, 11 on the left and 7 on the right for EAN-13, 7 for EAN-8, 10 for Code 128. The files include it, so do not crop them tight.

Colors

Dark bars on a light background. Scanners read with red light, so bars printed in red look blank to them; black or dark blue on white is the safe choice.

Printing

Print at actual size, 100% in the print dialog, never fit to page. Stretching or squeezing a barcode changes the ratio between its bars, and a scanner reads those ratios.

Which file to download

SVG

For Cricut Design Space (Print Then Cut), Silhouette software, Inkscape and laser programs. All the bars are one shape. Some cutting and laser programs skip the text of an SVG: turn the digits off for a bars-only file and add them in your program.

PDF

For a print shop or a label sheet. One page exactly the size of the barcode, quiet zones included; the bars are vector rectangles and the digits are set in Helvetica, built into every PDF reader, so nothing is embedded.

EPS

For packaging designers and older layout software that place EPS art. The same vector bars as the PDF, in PostScript.

PNG

For Word, Canva and label printer software. At 300 dpi each bar is a whole number of pixels, so the edges stay sharp: a 0.33 mm bar becomes 4 pixels, 0.3387 mm. Place it at its own size and do not stretch it.

Barcode questions

Is this barcode generator free?

Yes. It costs nothing, needs no account and puts no watermark on the barcodes. The SVG, PDF, EPS and PNG files are yours to print or sell on your products.

Do I need to buy a UPC code?

To sell a product in stores or on large marketplaces, yes: the number must be licensed to your company by GS1, and retailers check it. To label things inside your business, no: use Code 128 or an in-store number.

What is the difference between UPC-A and EAN-13?

An EAN-13 is a UPC-A with a 13th digit in front. Put a 0 before a 12-digit UPC-A and you get the EAN-13 of the same product, with exactly the same bars; only the digits printed under them change.

Can I make an ISBN barcode for a book?

Yes: an ISBN-13 is an EAN-13, so pick EAN-13 and type the 13 digits of the ISBN. The small 5-digit add-on that US books carry for the price is not drawn here.

What size should a UPC barcode be?

At 100%, a UPC-A with its quiet zones and digits is 37.29 x 25.82 mm (1.47 x 1.02 in). You can go down to 80% and up to 200%; below that, checkout scanners may fail.

Why does my barcode not scan?

The usual causes: the quiet zone was cropped, the print was scaled to fit the page, the bars were cut too short, the bars are red or too light, or ink spread and made the bars thicker. Print at actual size on a light background and try again.

Can a barcode hold letters?

Not UPC or EAN, which hold digits only. Code 128 holds capitals, lower case, digits, spaces and punctuation, up to 48 characters in this tool.

Can I engrave a barcode with a laser?

Yes, on materials where the laser leaves dark marks, such as wood, leather or coated metal: engrave the bars as the filled shape of the SVG. On dark materials where the laser leaves light marks, the code comes out light on dark, and many scanners only read dark bars on a light background, so test one first.

Which file should I send to my printer?

The PDF, or the EPS if they ask for one. Both are vector, so the bars stay exact at any size, and the page is the barcode itself, quiet zones included.

More: what a printer means by a vector file, sticker sheet maker, Cricut Print Then Cut and all tools.

The logo on the same label

Labels, tags and packaging carry a logo next to the barcode, and a print shop wants it as a vector too. Drop the logo picture here to turn it into SVG paths for print, Cricut or a laser.

Current plans and prices: pricing.

The preview is free, with a watermark, and needs no signup.

Your logo as a vector, next to the barcode

Upload the logo for your label and get clean SVG paths for print, cutting or engraving.

Vectorize my logo