Barcode Generator
Make a barcode for a product label, a shipping carton or an asset tag. Pick a format, type the number and download a clean PNG or SVG.
- Private: nothing uploaded
- Free
- No sign-up
Letters, digits and punctuation. The safest general choice.
Size and spacing
The quiet zone is the empty space around the bars. Ten pixels or more helps a scanner find the barcode.
Your barcode
Type a value above to see the barcode.
Nothing to draw yet.
The bars are drawn in this browser tab. Your numbers are not sent anywhere and nothing is stored after you close the page.
How to use it
Choose the barcode format that the scanner in your workflow expects.
Type the number or code. The check digit is added when the format uses one.
Set the bar width, height and quiet zone, then look at the preview.
Download PNG for a quick label or SVG for a printer. Test one printed copy with a real scanner first.
About this tool
A barcode is a row of bars that a scanner turns back into a number or a short text string. The formats look similar to a person and very different to a scanner, so the first decision is always the format. This page draws six common ones in your browser, checks the values that have a check digit, and gives you a file sized for a label or a print run.
Which format to choose
CODE128 holds letters, digits and punctuation, which makes it the best general purpose choice for shipping labels, internal tags and anything a person has to read. EAN-13 is the retail barcode on groceries and most products outside North America, while UPC-A is the twelve digit version used in the United States and Canada. EAN-8 is a shorter retail code for small packages. CODE39 is an older format still common on asset tags and inventory labels; it only holds capital letters, digits and a handful of symbols. ITF-14 is the fourteen digit code printed on shipping cartons, not on the product itself.
The check digit is not random
EAN, UPC and ITF-14 values end with a check digit. It is calculated from all the digits before it, using alternating weights of three and one, and a scanner uses it to catch a misread. Type the number without the last digit and this tool works it out and adds it. Type all the digits and the tool checks the last one; if it is wrong, you get the digit it should be. CODE128 and CODE39 have their own internal checks inside the bars, which is why there is no check digit to type.
Retail barcodes need real numbers
An EAN-13 that starts with 0 to 9 usually comes from a GS1 company prefix. That prefix is issued to a business and is what makes a product number unique in shops worldwide. A number made up by hand will print and scan, and it is fine for an internal label, a school project or a stock test. It is not fine for a product that will sit on a retail shelf, because it can clash with another company prefix. If you need a retail code, get a prefix from GS1 in your country first.
Printing bars that a scanner can read
Bars must stay sharp. Scaling a barcode up or down in a word processor blurs the edges, so print it at the size you need or use the SVG. Keep the bars black on a white background, and keep the quiet zone, the empty space at both ends, clear of other text and graphics. A laser printer on plain paper usually beats an inkjet for small bars. ITF-14 needs a wider print because the bars are longer. Before a large print run, scan one label with the exact scanner that will be used, at the distance it will be used from.
What the two downloads contain
The SVG keeps the bars as shapes, so it stays crisp at any size and is the better choice for a print house. The PNG is a normal image with a fixed pixel size and a white background, which is quick for a document or a web page. The value under the bars is optional: some labels look cleaner without it, but a human readable number helps when a scanner fails. If you want a square code that a camera reads instead of a laser, use the QR code generator. For the data behind a label, the CSV to Excel converter turns a number list into a workbook.