---
title: "Barcode Generator"
description: "Pick a barcode type and type your code to get a print-ready barcode for product labels or shipping cartons. The tool calculates the check digit for EAN-13 and UPC automatically…"
url: "https://ahmed-abdelhamed.com/en/tools/barcode-generator/"
date_published: "2026-11-11T22:11:49+00:00"
date_modified: "2026-11-20T02:54:41+00:00"
author: "أحمد عبد الحميد"
---

# Barcode Generator

Pick a barcode type and type your code to get a **print-ready barcode** for product labels or shipping cartons. The tool calculates the **check digit** for EAN-13 and UPC automatically and downloads **PNG or SVG**.

## Which barcode type should you use?

- **Code 128** — the standard for internal use. It accepts letters, digits and symbols, so it suits SKUs, shipping labels and order numbers.
- **EAN-13** — the retail product barcode scanned at supermarkets and pharmacies: exactly 13 digits.
- **EAN-8** — a shorter version for small packages.
- **UPC-A** — used in the US and Canada: 12 digits.
- **ITF-14** — for outer cartons and cases holding several units.
- **Code 39** — an older type still used by some industrial systems.

## Do I need to register my barcode?

For **internal use only** — your warehouse, shipping and your own point of sale — any Code 128 value works without registration. But if you sell through **retail chains, supermarkets, Amazon or Noon**, most require an official EAN or UPC number registered to your company by **GS1** in your country. This tool draws a barcode for any number; the official number itself comes from GS1.

## The check digit

The last digit of EAN-13, UPC and ITF-14 isn’t part of your code: it is a **check digit** calculated from the other digits so scanners can catch errors. Type 12 digits for EAN-13 and the tool adds the 13th. Type 13 with a wrong last digit and it tells you the correct one.

## Tips for barcodes that scan first time

- Use **dark bars on a light background** — black on white is safest. Red or yellow bars fail on most scanners.
- Leave **blank space** on both sides of the barcode, with no text or graphics touching it.
- Use **SVG** for print so bars stay sharp at any size, and PNG for web and documents.
- Don’t shrink it too far: a standard EAN-13 is about 37 mm wide.
- Print one copy and test it with a scanner or phone app before printing in bulk. If you need a code that opens a link, use the [QR code generator](https://ahmed-abdelhamed.com/en/tools/qr-code-generator/).

## Frequently asked questions

### Is this barcode generator free?

Yes. The barcode is drawn in your browser and you can download and use it freely. What may cost money is registering an official EAN number with GS1 if you sell through retailers.

### What’s the difference between a barcode and a QR code?

A linear barcode stores a short number or code and is read by checkout scanners. A QR code stores more data, such as a link, and is read by phone cameras.

### Can a barcode contain any text?

Code 128 accepts Latin letters, digits and symbols; EAN and UPC accept digits only. For other text or links, use a QR code.

### Where do I get an EAN-13 number for my product?

From GS1 in your country. They issue a company prefix you use to create numbers for your products, then you generate a barcode for each number.
