UtilityNest

Barcode Generator

Type a product number or any text and get a crisp barcode for labels, packaging mockups, inventory tags, library cards and documents. The preview updates as you type, the tool checks the value against the rules of the barcode type, and you download PNG or SVG.

Any text or numbers. Shipping, inventory, badges

UN-2026-0042
A barcode is only a picture of your number. To sell a product in shops you need a GS1 company prefix for the EAN/UPC number itself; this tool draws any number you give it.

How to use Barcode Generator

  1. 1Type the text or number to encode. While the box is empty, the preview shows a sample for the selected type so you can see the format.
  2. 2Choose the type: Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, ITF, Codabar, MSI or Pharmacode. The hint under the box says what each one accepts.
  3. 3Set Height (20 to 300) and Bar width (1 to 5), and switch Print the text under the bars on or off.
  4. 4Press Download PNG for documents and label software, or Download SVG (print quality) for print files and design tools.

Where people use it

A small shop owner prints Code 128 stickers for stock that arrived without labels, so a cheap USB scanner can ring it up from the inventory sheet. An office marks laptops and monitors with asset tags before an audit. A designer needs a realistic EAN-13 on a packaging mockup before the client has a registered number. A teacher or librarian makes Codabar or Code 39 labels for a classroom library, and an event organizer puts a Code 128 ticket number on printed badges. In all of these, the barcode is only a way to type a number quickly with a scanner, and the meaning lives in your own spreadsheet or system.

Which barcode type

EAN-13 is the 13-digit code printed on retail products in Europe, Asia and most of the world; UPC-A is its 12-digit North American counterpart, and EAN-8 is the short version for small packs. Both need a number issued by GS1 if the product will be sold in stores; this tool only draws the code. Code 128 encodes letters and digits of any length and is the usual choice for shipping labels, asset tags and internal inventory. Code 39 is older and wider, accepts capitals, digits and a few symbols, and still reads on very old scanners. ITF-14 marks outer shipping cartons, Codabar is common in libraries and blood banks, MSI appears on warehouse shelves, and Pharmacode is a number from 3 to 131070 used on pharmaceutical packaging.

Check digits and validation

Retail codes end with a check digit calculated from the others, which lets a scanner catch misreads. If you type 12 digits for EAN-13 or 11 for UPC-A, the tool calculates the last digit and adds it for you. If you type the full length, it checks your digit, and a wrong one is reported in red with the download buttons disabled. That protects you from printing a label that will never scan.

What happened when we tested it

We chose EAN-13 and typed the 12 digits 880123456789. The tool added the check digit 3, printed 8801234567893 under the bars, and showed the note that the 13th digit was added. The downloaded PNG was 714 by 366 pixels and 17 KB, three times the on-screen size so it stays sharp on a label, and the SVG was just 2.3 KB. Typing the same number with a wrong final digit, 8801234567890, produced the message that the value is not valid for EAN-13 and disabled both downloads.

For an internal invoice tag we switched to Code 128 and typed INV-2026-00417. Letters, digits and hyphens were all accepted, and the PNG came out at 1140 by 366 pixels, wider because Code 128 needs more bars for a longer value.

Printing barcodes that scan

Print at 100 percent scale with black bars on a white background. Leave the empty margin on both sides, called the quiet zone, because a scanner needs it to find where the code starts. Do not stretch a barcode only horizontally or vertically in a layout program; scale it evenly, or change Bar width and Height here instead. A bar width of 1 is fine for laser printers on large labels but risky on thermal printers and small stickers, where 2 or 3 is safer. SVG is the better choice for professional print, because it is drawn from shapes and stays exact at any size.

What it cannot do

The tool makes one barcode at a time; for a sheet of sequential labels you would need label software that reads a list. It does not make 2D codes such as Data Matrix or PDF417; for a QR code, use the QR Code Generator. It cannot register a product number for you, and a barcode made here with an unregistered number is fine for internal use but not for retail.

Frequently asked questions

Can I sell a product with a barcode made here?

The barcode image is fine, but the number itself must come from GS1 for products sold in retail stores. For internal use any number works.

PNG or SVG?

SVG stays sharp at any size and is what designers and printers prefer. PNG is simplest for Word, Excel and label software.

Why is the download button disabled?

The value does not fit the selected type: wrong length, letters in a digits-only format, or a wrong check digit. The red message under the preview says which rule applies.

My scanner reads the code but shows the wrong characters

Most USB scanners act like a keyboard, so a wrong keyboard layout on the computer can swap symbols such as hyphens. Test with a digits-only value first, then check the layout setting.

Is anything uploaded?

No. The barcode is drawn in your browser, and your type, size and text settings are remembered only in this browser.