Free online tool

Barcode Generator

Make barcodes and QR codes for products, shelves, parcels and tickets. 18 types, automatic check digits, batch and number sequences, print-ready PNG, SVG and PDF label sheets. Everything is made in your browser.

🔒 Your data stays on your device
1. Barcode type

2. Content
3. Size and colours
4. Text under the bars

Product codes (EAN, UPC, ISBN) always show their own digits in the standard places.

5. Download and print
Label sheet (PDF)
Type something to see your barcode.

Local browser processingNo account required · No watermark

A barcode generator turns a number or a piece of text into a barcode that machines can scan. With this free tool you can make 14 kinds of line barcodes (such as EAN-13, UPC-A, Code 128 and Code 39) and 4 kinds of square codes (QR Code, Data Matrix, PDF417 and Aztec). It adds check digits for you, makes hundreds of codes at once, and gives you print-ready PNG, SVG and PDF files. Everything is made in your browser, so your data is not uploaded to a server.

Quick answerChoose a type, type your number or text, and press ⬇ PNG or ⬇ SVG. For shop products use EAN-13 or UPC-A. For inventory, shipping and everyday labels use Code 128. For a link people scan with a phone, use QR Code. To make many labels, use the list or number sequence, then press ⬇ PDF label sheet.

Key facts at a glance

Types18 in total. Line barcodes: Code 128, Code 39, EAN-13, EAN-8, UPC-A, UPC-E, ISBN, ITF-14, Interleaved 2 of 5, Codabar, MSI Plessey, Pharmacode, EAN-5 and EAN-2 add-ons. Square codes: QR Code, Data Matrix, PDF417, Aztec Code.
Check digitsAdded and checked for you on EAN, UPC, ISBN and ITF-14. Optional on Code 39 and MSI.
Many at onceA list of up to 500 values, or a number sequence with a prefix, suffix, step and zero padding.
DownloadsPNG with a print resolution (72 to 600 DPI), SVG, copy to clipboard, a ZIP of all codes, and a PDF sheet of labels.
StyleBar width and height, margins, colours, transparent background, rotation, frame, fonts and text position.
Cost and privacyFree. No account, no watermark. Your values stay on your device.
ImportantThis tool makes the picture of a code. It does not give you official product numbers. For shop products, get your numbers from GS1.
SKU 01

What is a barcode generator?

It is a tool that draws a barcode for you. A barcode is a pattern of bars, or squares, that stores a number or some text. A scanner reads the pattern and gives the same number or text back to a computer. Shops, warehouses, libraries, post offices and ticket gates all use them.

Three kinds of codes A Code 128 barcode, an EAN-13 product barcode with digits underneath, and a QR code. Each has a label saying what it is used for. 5901234123457 Code 128EAN-13QR Codeinventory, shipping, labelsproducts in shopslinks, tickets, Wi-Fi, textLine codes are called 1D. Square codes are called 2D.

Line barcodes (1D) are read in one direction, and they hold a short number or a short text. Square codes (2D) are read in two directions, and they hold much more, such as a web address. This tool makes both kinds.

SKU 02

How do I make a barcode?

You choose the type, enter your text, and download the picture. The barcode updates as you type.

The steps to make a barcode Step one, choose a type. Step two, type your number or text. Step three, change the size and colours. Step four, download as PNG, SVG or PDF. EAN-13▾ 590123… ⬇PNG · SVG · PDF 1 Choose a type2 Type your text3 Set size and colours4 Download18 typescheck digit is addedprint-readyor a ZIP of many
  1. Choose a type. Pick it from the list. A short note under it explains what the type is good for, and the Use an example button fills in a working sample.
  2. Enter your content. Type your number or text. If it is not allowed for that type, the tool tells you why, for example “Digits only, please.”
  3. Adjust the look. Open 3. Size and colours to change the bar width, height, margins, colours and rotation. Open 4. Text under the bars to change the text.
  4. Download. Use ⬇ PNG for pictures, ⬇ SVG for sharp printing at any size, or Copy image to paste it into a document.
TipUnder the preview, the tool shows the image size in pixels and in millimetres at your chosen print resolution. Use it to check that the code will fit on your label.
SKU 03

Which barcode type should I use?

Use the type your shop, warehouse or customer asks for. If nobody has asked for a special type, Code 128 is a good choice for text and numbers, and QR Code is the best choice for links.

Choosing a barcode type A question asks what the code is for. Products in shops use EAN-13 or UPC-A. Cartons and boxes use ITF-14. Inventory, shipping and general labels use Code 128. Links that people scan with a phone use QR Code. Very small parts use Data Matrix. What is the code for? Products inshopsCartons andboxesInventory andshippingLinks peoplescan on phonesTiny partsand chips item numberouter packstext or numbersweb addresssmall square EAN-13 / UPC-AITF-14Code 128QR CodeData Matrix
TypeWhat it holdsWhere it is used
Code 128Any text with basic characters (letters, numbers, symbols).Inventory, shipping, asset tags, general labels.
Code 39Capital letters, numbers and - . space $ / + %.Industry, ID cards, older systems.
EAN-1313 digits (12 plus a check digit).Products in shops around the world.
UPC-A12 digits (11 plus a check digit).Products in the USA and Canada.
EAN-8 / UPC-E8 digits.Small products with little space.
ISBNA book number, 978 or 979 plus 10 digits. ISBN-10 is converted for you.Books. An EAN-5 add-on can show the price.
ITF-1414 digits, with bearer bars (a frame).Cartons and cases.
Interleaved 2 of 5An even number of digits.Logistics and cartons.
CodabarDigits and - $ : / . +, with start and stop letters A to D.Libraries, labs and blood banks.
MSI PlesseyDigits, with optional check digits.Shelf labels and inventory.
PharmacodeA whole number from 3 to 131070.Pharmacy packaging.
EAN-5 / EAN-25 or 2 digits, placed next to a main code.Book prices, magazine issue numbers.
QR CodeA lot of text, such as a web address.Links, tickets, menus, Wi-Fi, payments.
Data MatrixShort text in a very small square.Electronic parts, small items.
PDF417A lot of text in a stacked code.IDs, boarding passes, tickets.
Aztec CodeCompact text in a square code.Transport tickets.
SKU 04

What are the parts of a barcode?

A barcode is more than bars. Every part has a job, and a scanner needs all of them to read the code.

The parts of an EAN-13 barcode An EAN-13 barcode with numbered callouts. One, the quiet zone, the empty margin on both sides. Two, the guard bars at the start, middle and end, which are longer. Three, the data bars. Four, the digits printed underneath. Five, the check digit, the last digit. 5901234123457 12345 1 Quiet zone2 Guard bars3 Data bars4 Digits below5 Check digit empty space aroundlonger, mark start,middle and endthe actual numberfor people to readthe last digit
  • Quiet zone. Empty space on both sides. Without it a scanner cannot tell where the code starts. The tool keeps the required minimum for product codes, even if you set a smaller margin.
  • Guard bars. Longer bars at the start, middle and end of EAN and UPC codes.
  • Data bars. The wide and thin bars that hold your number.
  • Digits below. The number in text, so people can type it by hand if a scan fails.
  • Check digit. A last digit that lets the scanner check that it read the code correctly.
SKU 05

What is a check digit, and does the tool add it?

A check digit is the last digit of a code. It is worked out from the other digits, so a scanner can catch a misread. For EAN-13, UPC-A, EAN-8, UPC-E, ISBN and ITF-14, the tool works it out for you. You can type the number without the check digit, or with it.

Working out an EAN-13 check digit The first 12 digits of 5901234123457 are 5 9 0 1 2 3 4 1 2 3 4 5. They are multiplied in turn by 1 and 3 to give 5, 27, 0, 3, 2, 9, 4, 3, 2, 9, 4 and 15. The sum is 83. To reach the next multiple of ten, 90, you add 7. So the check digit is 7. Digits× weight= result 590123412345 ×1×3×1×3×1×3×1×3×1×3×1×3 52703294329415 Sum = 5 + 27 + 0 + 3 + 2 + 9 + 4 + 3 + 2 + 9 + 4 + 15 = 83The next multiple of 10 is 90, and 90 − 83 = 7.So the check digit is 7, and the full number is 5901234123457.
TypeWhat you can typeWhat the tool does
EAN-1312 or 13 digitsWith 12, it adds the check digit. With 13, it checks the last digit and tells you the right one if it is wrong.
UPC-A11 or 12 digitsThe same.
EAN-87 or 8 digitsThe same.
ITF-1413 or 14 digitsThe same.
UPC-E6, 7 or 8 digitsWorks out the check digit from the matching UPC-A number.
ISBN10 or 13 digits, with or without hyphensChecks an ISBN-10, converts it to ISBN-13 and adds the right check digit.
Code 39, MSIAny allowed valueAdds a check character or digit only if you choose it.
Code 128Any textHas its own built-in check inside the code. You do nothing.
SKU 06

How do I make many barcodes at once?

Switch Content from “One code” to “List (batch)” or “Number sequence”. The tool makes up to 500 codes at once. Click any code in the list under the preview to see it, and invalid lines are marked with the reason.

From a number sequence to a sheet of labels A prefix, a start number and a count make a list: BOX-0001, BOX-0002, BOX-0003 and so on. The list becomes a ZIP of PNG or SVG files, or a PDF page with a grid of labels, three columns by eight rows. Prefix BOX-Start 1Count 24Digits 4 BOX-0001BOX-0002BOX-0003… BOX-0024 ZIP file24 PNG or SVG files PDF label sheet3 columns × 8 rows Set the patternThe list
  • List (batch). Paste one value per line. Good for part numbers, names or a list from a spreadsheet.
  • Number sequence. Give a prefix, a suffix, a start number, how many, a step, and zero padding (3 to 12 digits). For example BOX-0001 up to BOX-0024.
  • ZIP. Press ⬇ ZIP (all) to get all valid codes as PNG files or as SVG files.
  • PDF label sheet. Press ⬇ PDF label sheet to get a printable page of labels. Choose A4 or US Letter, the number of columns and rows, the page margin, the gap, and how many copies of each code.
Sheet layoutLabels per pageGood for
A4 · 3 × 824Medium labels, such as shelf and parcel labels.
A4 · 2 × 714Larger labels with more room.
A4 · 4 × 1144Small labels, such as price tags.
Letter · 3 × 1030The common US Letter label layout.
CustomYour choiceAny grid, up to 10 columns and 20 rows.
Good to knowThe layouts are simple grids. They are not exact copies of any brand’s label templates, so print one test page on plain paper and hold it against your label sheet first. Line barcodes are drawn as sharp vector shapes in the PDF.
SKU 07

What size, colour and resolution should I use?

A good barcode is dark, clear and not too small. Black bars on a white background are the safest. The checklist below keeps your codes easy to scan.

Good and bad barcode choices A black barcode on white with a tick. A dark blue barcode on light yellow with a tick. A red barcode on white with a cross, because red can be invisible to red scanner lasers. A white barcode on black with a cross, because most scanners cannot read inverted codes. A very low contrast grey on white with a cross. ✓✓✕✕✕ Black on whiteDark on lightRed barsInvertedToo palesafest choicefine, if contrast is highlasers may not see redmost scanners faillow contrast Keep the quiet zone empty · Do not stretch the code · Test by scanning a printoutThe “Scan check” line under the preview appears in browsers that can read barcodes.
  • Contrast. Dark bars on a light background. Do not use white bars on black, and avoid red bars.
  • Bar width. For EAN-13 and UPC-A, one bar is normally about 0.33 mm wide. Scanners allow roughly 80% to 200% of that. At 300 DPI, a bar of 4 pixels is about 0.34 mm.
  • Bar shrink. Printing makes ink spread a little, so bars look fatter. The Bar shrink slider makes each bar slightly thinner to make up for it.
  • Do not stretch. Keep the proportions. Make the code bigger by raising the bar width, not by resizing the picture in another program.
  • Test. Print one, and scan it with your scanner or phone before you print a hundred.
ResolutionWhere it is used
72 or 96 DPIScreens and web pages.
150 DPIQuick office printing.
203 DPIMany thermal label printers (8 dots per millimetre).
300 DPILaser and good inkjet printers, and some label printers.
600 DPIFine print, and very small codes.

The PNG you download carries the DPI you pick, so a graphics or label program places it at the right physical size. For the sharpest result at any size, use the SVG or the PDF.

SKU 08

Which download should I choose: PNG, SVG, PDF or ZIP?

DownloadBest forGood to know
PNGWeb pages, Word, slides and most label software.A picture. It carries your chosen DPI, so it prints at the right size.
SVGPrint shops, design software and very sharp printing.Vector shapes. You can scale it up without losing sharpness.
Copy imagePasting straight into a document or chat.Copies a PNG to your clipboard.
ZIPMany codes at once.Contains PNG or SVG files, named after the values.
PDF label sheetPrinting a page of labels.Line codes are sharp vector shapes. Square codes are pictures.
SKU 09

How we tested it

A barcode that does not scan is useless, so we checked the tool in three ways before writing this page.

  • Against a reference library. We compared the bar patterns made by our code with the well-known open-source library JsBarcode. We tried 44 inputs across Code 128 (sets A, B and C), Code 39 (with and without a check character), EAN-13, EAN-8, UPC-A, UPC-E, ITF-14, Interleaved 2 of 5, Codabar, MSI (all check types), Pharmacode, EAN-5 and EAN-2. The patterns were the same in every case except one UPC-E input that the reference library cannot make.
  • With a scanner program. We drew the codes as pictures and read them with an independent barcode reader (zxing-cpp). Code 128, Code 39, EAN-13 (also with an add-on), ISBN, EAN-8, UPC-A, UPC-E, Interleaved 2 of 5, ITF-14 and Codabar all gave back the right number. We tried four looks for each: normal, with bar shrink, rotated 90°, and small with the text on the left.
  • The square codes. QR Code, Data Matrix (square and rectangle), PDF417 and Aztec Code were made with the bwip-js library and read back correctly.
  • The downloads. We checked that the PNG carries 300 DPI when asked, and that the PDF label sheet, including a rotated label, can be scanned after printing to an image.
Please noteMSI, Pharmacode and the stand-alone EAN-5 and EAN-2 codes are not read by the scanner program we used, so we could only compare their patterns with the reference library. We did not test with a real printer or a shop’s own scanner. Always test one printed label with the scanner you will use.
SKU 10

What this barcode generator cannot do

You might want toWhat happens
Get official product numbersNot possible. This tool draws the code, but it does not register your number. For products sold in shops, get your numbers from GS1, the organisation that issues them. Random numbers can clash with someone else’s product.
Make GS1-128 or GS1 DataBarNot supported. There is no special code with application identifiers.
Use other typesCode 93, Code 11, Telepen, Micro QR and similar types are not included.
Use accents, emoji or other alphabets in Code 128Code 128 supports basic characters only. Use a QR Code for such text.
Use lowercase in Code 39Code 39 has no lowercase letters, so the tool changes them to capitals.
Make more than 500 codes at onceThe list and the sequence stop at 500.
Match your brand of label sheet exactlyThe PDF layouts are simple grids. Test on plain paper first.
Grade your barcodeThe tool does not measure print quality like a barcode verifier does.
Work fully offlineLine barcodes, PNG and SVG work after the page has loaded. Square codes, ZIP and PDF load a small helper file the first time you use them.
Keep your work next timeNothing is saved. Use Copy share link to keep your settings and codes.
SKU 11

Is my data uploaded anywhere?

No. Your codes are drawn by your own browser, and your downloads are made on your own device. The values you type, such as part numbers, never leave your computer.

Where your data goes Helper code for square codes, ZIP files and PDF files comes from public CDNs only when you use those features. Your values stay on your device, your browser draws the codes, and the files are saved on your device. Our servers receive nothing. Public CDNs (jsDelivr, cdnjs)helper code only, never your values Your valuesstay on your device Your browserdraws the barcodes PNG · SVG · PDFsaved on your device Our servers never receive your values

Questions people ask

Is this barcode generator free?

Yes. It is free, with no signup and no watermark. The site may show ads to cover its costs.

Are my values uploaded to a server?

No. The codes are made in your browser, and the files are made on your device. Only small helper files for square codes, ZIP and PDF are downloaded from public CDNs when you use those features.

Can I use these barcodes on products I sell in shops?

The picture is fine, but the number must be yours. Shops expect EAN-13 or UPC-A numbers issued by GS1, which gives each company its own prefix. This tool does not issue or register numbers. For internal use, such as inventory, you can use any number you like.

Which barcode type is best for inventory and shipping labels?

Code 128. It holds letters, numbers and symbols, it is compact, and almost every scanner reads it.

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

UPC-A has 12 digits and is used in the USA and Canada. EAN-13 has 13 digits and is used in the rest of the world. A UPC-A number is the same as an EAN-13 number with a 0 in front, and most scanners read both.

Why does the tool say “Wrong check digit”?

The last digit you typed does not match the other digits. The message tells you the right one. You can also type the number without its last digit, and the tool adds the correct check digit.

How do I make hundreds of barcodes at once?

Choose “List (batch)” and paste one value per line, or choose “Number sequence” and set a prefix, a start number and how many. Then press ⬇ ZIP (all) for separate files, or ⬇ PDF label sheet for a printable page. You can make up to 500 at a time.

What size should I print my barcode?

For EAN-13 and UPC-A, one bar is normally about 0.33 mm, and scanners accept about 80% to 200% of that. In practice, print at 100% size or a little larger, keep the empty margin, and scan a test print.

Will my barcode scan?

Codes made with the tool were read correctly by an independent scanner program in our tests. In browsers that can read barcodes, you also see a “scan check” result under the preview. Always scan a real printout before you print many.

Can I make a QR code with this tool?

Yes. Choose QR Code, type your text or web address, and pick an error correction level. A higher level (H) still scans when part of the code is damaged, but the code gets denser.

Why did my lowercase letters in Code 39 turn into capitals?

Code 39 has no lowercase letters, so the tool changes them to capitals. Use Code 128 if you need to keep lowercase.

Can I print on a thermal label printer?

Yes. Many thermal printers print at 203 DPI, so choose 203 DPI before you download the PNG, and set the bar width to a whole number of pixels. You can also download the SVG or the PDF and print from your label software.

Can I use colours or a transparent background?

Yes. Use dark bars on a light background for the best result. Avoid red bars and avoid white bars on a dark background, because many scanners cannot read them.

Waqas Amjad

Hi, I’m Waqas, the person behind Brivonto. I build each tool on this site myself, test it, and keep improving it from your feedback. I wrote this page and checked the barcodes against a reference library and a scanner program before publishing. If you find a mistake, please tell me, and I will fix it. For shop products, please get your official numbers from GS1.