Home » SEO Tools » Barcode Generator
Draw barcode style bars from your text or numbers on a canvas, with the value printed below, and download the image.
Last updated 13 November 2026
Important: these bars are drawn from your input by a simple deterministic pattern in your browser. They are a visual barcode only, and they have not been verified as a scannable barcode standard. Test scanning before you use them for real products or labels.
A barcode is a pattern of bars that stores a short value, such as a product number, in a form a scanner can read. Real barcode standards define exact bar patterns, checksums and quiet zones, and a pattern that does not follow a standard may not scan.
This tool draws bars from your input using a simple deterministic pattern in your browser, with the value printed below, and lets you download the image. It is honest about its limit: the bars are visual only, and they have not been verified as a scannable barcode standard.
When you type a value and click Draw Barcode, this tool draws black vertical bars on a white canvas 600 by 180 pixels, and prints your value below the bars. The bar widths come from a fixed pattern built into the page. It follows no barcode standard, adds no quiet zones and no check digit. The result looks like a barcode, but no checkout scanner is built to read it.
Download saves the canvas as a PNG image, and everything runs in your browser, so nothing you type is sent to a server.
Real barcodes come in formats, each with its own rules about what it can hold and where it is used. This tool does not generate any of these formats. The table below explains them as general knowledge.
| Format | What it holds | Where it is used |
|---|---|---|
| Code 128 | Letters, numbers and symbols | General labels, shipping and stock |
| EAN-13 | 13 digits, the last one a check digit | Retail outside North America |
| UPC-A | 12 digits, the last one a check digit | Retail in North America |
| EAN-8 | 8 digits, the last one a check digit | Small retail products |
| Code 39 | Letters, numbers and a few symbols | Industrial labels |
If you sell a product in a shop, you almost always need EAN-13 or UPC-A, with a number from GS1. None of these is a feature of this tool today.
A barcode generator draws bars. It does not issue a product number. For products sold in shops, the number under the bars must come from GS1, the organisation that issues company prefixes and product numbers for retail. You register with GS1 and build product numbers from your prefix. A number you invent can already belong to another product.
A check digit alone does not make a number valid. It only proves the digits were typed correctly.
A check digit is the last digit of a retail barcode number, worked out from the digits before it, and its only job is to catch typing errors.
Here is how EAN-13 works. Take the first 12 digits 590123412345. Add the digits in the odd positions, 5 plus 0 plus 2 plus 4 plus 2 plus 4, which gives 17. Add the digits in the even positions, 9 plus 1 plus 3 plus 1 plus 3 plus 5, which gives 22, and multiply that by 3 to get 66. Add 17 and 66 to get 83. The next multiple of 10 above 83 is 90, and 90 minus 83 is 7, so the full number is 5901234123457. UPC-A works the same way with 11 digits plus a check digit. This tool does not work out check digits.
These tips are general guidance for real barcodes, and they also help this tool's visual bars look their best. Print black bars on a white background, because scanners read contrast. Leave a clear quiet zone, an empty strip with no text or border, on both sides of the bars. Print the bars tall enough to scan easily, and do not shrink a barcode to fit a small label. Test scan the printed label before you print a whole run.
Visual bars still have honest uses, as long as no scanner needs to read them. Use them in a mockup of a product label, a poster or a web page, where the bars set the look without carrying data. Use them to show a client how a label will look before the real number arrives from GS1.
When a code must be read by a machine, switch to a tool that builds a real format. For a square code a phone camera can read, try the QR Code Generator, and to read a code that already exists, try the QR Scanner. For the paperwork, try the Invoice Generator and the Unit Converter.
Not guaranteed. These bars are a visual pattern only, and they have not been verified as a scannable barcode standard. Test scanning before any real use.
Real standards need exact bar patterns and checksums. This tool draws bars from a simple pattern in your browser, and it does not claim to follow a standard.
Yes. Click Download Image to save the bars as a PNG image.
No. Everything runs in your browser on your own device, so your text never leaves your computer.
It depends on where the code will be used. Code 128 suits general labels, shipping and stock, because it holds letters, numbers and symbols. EAN-13 suits retail products sold outside North America, and UPC-A suits retail products sold in North America. Both need a number from GS1 and a check digit. This tool does not generate any of these formats yet, so pick the format first and use a tool that builds it properly.
Not for products sold in shops. Retail numbers come from GS1, and a number you invent can already belong to another product. For labels inside your own business that no shop will scan, you can use any value you like.
The check digit is the last digit of a retail barcode number, worked out from the digits before it. It catches typing errors. For example, the EAN-13 number 590123412345 has the check digit 7, giving the full number 5901234123457. This tool does not work out check digits.
The usual causes are low contrast, bars printed too small, a missing quiet zone at the sides, or bars built to the wrong format. Check those in that order, and test scan before a full print run. Bars from this tool are a visual pattern only, so they may not scan even when printed well.
No. Use a tool that builds a verified standard barcode, with the right format, check digit and quiet zones, and a number from GS1. The bars from this tool suit mockups, teaching and labels that people read with their eyes only.