Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Barcode generator, one or a hundred.

Type a number or text and get a barcode for a product, a shelf label, a parcel or a stock list. EAN-13, UPC-A, Code 128, Code 39, ITF-14 and more. Check digits are added for you, every code is read back to check it scans, and many codes can be made at once from a list or by counting up. Download PNG, SVG, JPG or a print-ready PDF, including a sheet of labels. No account, no watermark.

Need a custom tool, app or website? Contact us 

Size

Text

Colours

Scanners need dark bars on a light background. Keep strong contrast.

Your settings and values are kept in this browser for next time.

Barcodes are made in your browser. What you type is never uploaded.

Which one

Pick the type your scanner reads.

01 / Shops

EAN-13 and UPC-A

The codes on products sold in shops. EAN-13 is used worldwide, UPC-A mainly in the US and Canada. Numbers only.

02 / Your own use

Code 128

Letters, numbers and symbols in a compact code. A good pick for stock, assets, tickets and shipping labels.

03 / Cartons

ITF-14

14 digits for outer boxes and cases, readable even on rough cardboard.

Guide

How to make a barcode, and pick the right type.

A barcode generator turns a number or a short text into the black and white bars a scanner reads. This one makes twelve types, from EAN-13 and UPC-A for shop products to Code 128 for stock and shipping labels. It adds check digits for you, reads each code back to check it scans, can make up to 500 barcodes from a list at once, and saves PNG, SVG, JPG or PDF files, with a PDF sheet of labels for a batch.

How to use the barcode generator

  1. Choose One barcode, or Many from a list to make a batch.
  2. Pick the Type. The hint under the fields says what that type accepts, such as 12 digits for EAN-13.
  3. Type the Value, or paste One value per line for a batch, for example a column copied from a spreadsheet. To number a batch, fill in Or count up from, How many and Step, and click Make the list.
  4. Set the Bar width, Height and Quiet zone under Size, and choose whether to show the value under the bars.
  5. Check the line under the barcode. It says It scans after reading the code back, or tells you what went wrong.
  6. Pick Save as PNG, SVG, PDF or JPG and click Download. A batch downloads as one ZIP with a file for each value, or as a PDF sheet of labels. Your settings and values are kept in this browser for next time.

Which barcode type to use

TypeWhat it holdsUsed for
EAN-1313 digits, the last a check digitProducts sold in shops around the world
UPC-A12 digits, the last a check digitProducts sold in shops, mainly in the US and Canada
EAN-8 and UPC-E8 digitsSmall packs with little room for a full code
Code 128Any keyboard letters, numbers and symbolsStock, assets, tickets, shipping labels, your own systems
Code 39 and Code 93Capital letters, numbers, spaces and the symbols -.$/+%Older label and ID systems that ask for them
ITF-1414 digits, the last a check digitOuter cartons and cases of products
ITFAn even number of digitsWarehouses and some industrial labels
CodabarDigits and a few symbols, with A, B, C or D at each endLibraries and blood banks
MSIDigits onlyShelf labels in some shops
PharmacodeA whole number from 3 to 131070Medicine packaging lines

If you are making codes for your own use, such as tagging equipment or tracking stock, Code 128 is the easy choice. It takes letters and numbers and stays short. If your scanner, shop system or a customer asks for a type, use that one.

How the check digit works: an example

EAN-13, UPC-A, EAN-8 and ITF-14 end in a check digit worked out from the other digits, so a scanner can spot a misread. Here is EAN-13 for the 12 digits 590123412345:

  1. Add the digits in the odd places (1st, 3rd, 5th and so on): 5 + 0 + 2 + 4 + 2 + 4 = 17.
  2. Add the digits in the even places and multiply by 3: (9 + 1 + 3 + 1 + 3 + 5) x 3 = 22 x 3 = 66.
  3. Add the two: 17 + 66 = 83.
  4. Find what takes it to the next multiple of 10: 90 minus 83 is 7.

So the full number is 5901234123457. Type the 12 digits and the tool adds the 7. Type all 13 and it checks your last digit. If it does not match, the page says the value does not fit, which usually means a digit was typed wrong.

Size, quiet zone and print quality

  • Bar width sets how wide the thinnest bar is, from 1 to 4. Wider bars are easier to scan from a distance and on rough paper, but make the code longer.
  • Height runs from 30 to 200. Taller bars give the scanner more room to aim, which helps with handheld scanners.
  • Quiet zone is the blank space on each side. Scanners need it to find where the code starts and ends, so do not set it to 0 unless you leave space where you place the code.
  • Picture scale multiplies the pixels of a PNG or JPG. At bar width 2 and 4x, the thinnest bar is 8 pixels wide. Printed at 300 dots per inch, that is 8/300 of an inch, about 0.68 mm.
  • SVG is made of shapes, so it prints sharp at any size. Use it for packaging and labels made in a design app.
  • PDF is also drawn from shapes, at the size you see on screen, where one pixel is 1/96 of an inch. At bar width 2, the thinnest bar is 2/96 of an inch, about 0.53 mm.

Keep the bars dark and the background light. Red bars, pale colours and light bars on a dark background often fail on laser scanners, which see red light.

Making many barcodes at once

Choose Many from a list and paste up to 500 values, one per line. Each one is drawn below. Lines that do not fit the type are left out and listed in the note, so you can fix them. The ZIP names each file after its value, such as STOCK-42.png, which makes them easy to match to your list later. If a value appears twice, the second file gets -2 on the end.

To number a batch, type the first value in Or count up from, such as STOCK-0001, choose How many and a Step, and click Make the list. The last group of digits counts up and keeps its leading zeros, so you get STOCK-0001, STOCK-0002 and so on.

Printing a sheet of labels

Choose Many from a list, set Save as to PDF, and pick the Sheet (A4 or Letter) and how many labels go Across. The PDF puts the codes in rows, as many as fit on each page, with more pages for a long list. Each code keeps its on-screen size, or shrinks to fit its label, so print at 100% (actual size) rather than "fit to page". Print one page on plain paper first and hold it over your label sheet to check the spacing.

Need to read a barcode instead? Use the barcode scanner. For a link or Wi-Fi details that phones can read, make a code with the QR code generator.

Questions

Good to know.

Can I sell a product in shops with a barcode from here?

The picture is a correct EAN or UPC barcode, but shops need the number inside it to be yours. Retail numbers come from GS1, the organisation that hands out company prefixes; a made-up number can clash with another company's product. Get your numbers from GS1 in your country, then make the barcodes here.

What is the check digit?

EAN, UPC and ITF-14 end in a digit worked out from the others, so a scanner can tell when it misread a bar. Type 12 digits for EAN-13 (or 11 for UPC-A) and the last digit is added for you. If you type all 13, the tool checks that the last one is right.

PNG, SVG or PDF?

SVG and PDF are drawn from shapes, so the bars stay sharp at any size: use SVG in a design app and PDF to print straight away. PNG works everywhere; 4x is enough for most labels.

Can I make many barcodes at once?

Yes. Choose "Many from a list", paste one value per line (from a spreadsheet column, for example), and download one ZIP with a file for each.

Will it scan?

The page reads each new code back in every browser and says whether it scans, or what it read instead. MSI and Pharmacode cannot be read back here. Print one and test it with your own scanner before printing many.

Can I print barcodes on a sheet of labels?

Yes. Choose Many from a list, set Save as to PDF, and pick A4 or Letter and 2, 3 or 4 labels across. Print at actual size.

Can I make numbered barcodes?

Yes. In Many from a list, type a start value such as STOCK-0001 in Or count up from, choose how many and the step, and click Make the list.

Is it free for business use?

Yes, with no limit and no watermark.

Why does it say my value does not fit?

Each type only takes certain characters and lengths. EAN-13 takes 12 or 13 digits, Code 39 takes only capital letters, numbers and a few symbols. Check the hint under the fields, or switch to Code 128, which takes almost anything.

Can I put a product name under the barcode?

Yes. Type it in Text under the code instead of the value. The bars still hold the value; only the printed line changes.

Is a barcode the same as a QR code?

No. A barcode is a single row of bars that holds a short number or text. A QR code is a square grid that holds much more, such as a full web address, and phones read it with the camera.

How big should I print a barcode?

Print it large enough that the thinnest bars are clean and sharp on your printer, and keep the quiet zone clear. Print a test, scan it with the scanner you will use, then print the rest.

Which barcode types can I make?

Code 128, EAN-13, UPC-A, EAN-8, UPC-E, Code 39, Code 93, ITF-14, ITF, Codabar, MSI and Pharmacode. If you are not sure, Code 128 takes almost any text.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch