Barcode Generator

Barcode Generator

Create a printable barcode in seconds. Type your product code or text, pick a format, and download a crisp PNG you can stick on a label, a price tag or a package. The barcode is drawn right here in your browser — nothing is uploaded.

Type a code, pick a format, then tap “Generate barcode”.

Before you print: EAN-13 and UPC-A codes used on products sold in shops must come from numbers registered with GS1. Codes made here are perfect for internal labels, stock counts, tickets and price tags, but do not print a made-up number on a product for retail sale.

What Is a Barcode Generator?

A barcode generator turns letters and numbers into the striped pattern scanners read at checkouts, in warehouses and on parcels. Each format packs the data differently. CODE128 is the flexible all-rounder — it takes any typed text and is the usual choice for internal labels. EAN-13 is the standard printed on almost every retail product outside North America, while UPC-A plays the same role in the United States and Canada. CODE39 is an older format still found on ID badges and industrial labels. This tool draws all four right in your browser, so the code you type never leaves your device.

The image it makes is a plain PNG with a white background and a quiet zone — the blank margin scanners need to find the edges of the code. Keep that margin when you print: trimming it off is the most common reason a barcode that looks fine refuses to scan. Bar height and width matter too. Thin bars look neat on a small label, but a cheap scanner may struggle with them, so the standard settings here suit most printers and phones.

How to Use the Barcode Generator

  1. Type your code or text. For EAN-13 use 12 digits and the tool adds the check digit for you; for UPC-A use 11. CODE128 takes any text, and CODE39 takes capital letters, digits and a few symbols.
  2. Pick the format. CODE128 works for almost everything. Choose EAN-13 or UPC-A only when you need a retail-style code in that exact format.
  3. Set the size. Standard bar height and width suit most labels. Go taller and thicker for boxes read from a distance, thinner for small stickers.
  4. Tap “Generate barcode”. The barcode appears below with its text underneath, if you left that option on.
  5. Download the PNG. Use it on a label, a price tag, a ticket or a package — and test it with our Barcode Scanner before you print a whole batch.

Who Is This Tool For?

Small sellers and Etsy shops can label stock, gift boxes and parcels without buying specialist software. Warehouse and stockroom teams can print shelf and bin labels for faster counts. Event organisers can put a code on each ticket for quick check-in at the door. Teachers and librarians can label books and equipment for lending. If you also need to read codes back, our Barcode Scanner decodes them from a photo, and our QR Code Generator makes codes that can hold a web link as well as text. For more free utilities, see the Free Tools hub.

Frequently Asked Questions

Which barcode format should I choose?

CODE128 for almost everything — it is compact, reliable and takes any text. EAN-13 or UPC-A only when you need a retail product code in that format. CODE39 is best kept for older systems that already expect it.

Will my barcode actually scan?

If the code follows the format rules and is printed at a sensible size, yes. Print at 100% scale, keep the white quiet zone around it, and use a dark print on white or light paper. A quick test with our Barcode Scanner or any phone camera will confirm it before you print hundreds.

Can I put this barcode on a product I sell in shops?

Not with a made-up number. Retail EAN and UPC numbers must be registered through GS1, the body that issues them, so each product gets a globally unique code. Codes from this tool are right for internal stock, price tags, tickets and parcels, but not for retail sale.

What is the check digit?

The last digit of an EAN-13 or UPC-A code, worked out from the other digits by a fixed formula. Scanners use it to spot a misread. Type 12 digits for EAN-13 or 11 for UPC-A and this tool calculates and adds it for you.

Is my code stored anywhere?

No. The barcode is drawn by a small library loaded from this site, and everything happens in your browser. Your text is never sent to a server, and closing the page wipes it.