BAR.
EAN-13 · Code 128 · UPC · ITF-14 · Pharmacode

Barcode Generator.

Generate industry-standard barcodes in seconds. 8 formats. Download high-resolution PNG. Zero sign-up, zero cost.

✓ 8 Formats✓ Free Forever✓ No Watermarks✓ High-Res PNG✓ 100% Private

Loading Barcode Engine…

How to Use

01

Pick a Format

Choose from 8 formats - EAN-13 for retail, Code 128 for internal use, UPC for USA, and more.

02

Enter Your Value

Type your product number, SKU, or text. Each format shows you exactly what's valid.

03

Generate & Save

Click Generate. Preview your barcode, then download as a high-res PNG for print or digital use.

Format Reference

FormatValid CharactersLengthBest For
Code 128All ASCIIAny lengthGeneral purpose, logistics, internal codes
EAN-13Numbers onlyExactly 13Retail product packaging (global standard)
EAN-8Numbers onlyExactly 8Small packaging where EAN-13 doesn't fit
UPC-ANumbers onlyExactly 12Retail in USA and Canada
Code 39A-Z, 0-9, - . $ / + % spaceAnyAutomotive, defence, healthcare
ITF-14Numbers onlyExactly 14Shipping cartons, outer packaging
MSINumbers onlyAnyWarehouse shelving, inventory
PharmacodeNumbers only3-6 digitsPharmaceutical packaging

What is a Barcode?

A barcode is a machine-readable representation of data in a visual, scannable format. Invented in 1948 by Norman Woodland and Bernard Silver, barcodes encode information by varying the widths and spacings of parallel vertical bars. A barcode scanner reads these bars by shining a laser or LED light across the code and measuring the reflected light pattern.

Fun fact: The first product ever scanned with a barcode was a 10-pack of Wrigley's Juicy Fruit gum at a Marsh supermarket in Troy, Ohio on June 26, 1974. That pack of gum is now in the Smithsonian National Museum of American History.

Today, over five billion barcodes are scanned every single day worldwide. Barcodes power the global supply chain - from the moment a product is manufactured, to the warehouse, to the store shelf, to the checkout counter. Without barcodes, modern retail, logistics, and healthcare systems would grind to a halt.

In India, barcodes are regulated and assigned by GS1 India, a non-profit organization affiliated with the global GS1 standards body. Any product sold through major organized retail channels - Big Bazaar, Reliance Retail, Amazon, Flipkart - must carry a valid GS1-registered EAN-13 barcode. Small businesses and startups can apply for a GS1 Company Prefix and begin assigning product numbers to their entire catalogue.

How a Barcode Scanner Works

A laser barcode scanner fires a red laser beam across the barcode. The dark bars absorb light while the white spaces reflect it. A photodiode detects these reflections and converts them into an electrical signal - a series of highs and lows that correspond to the bar and space widths. This signal is decoded by the scanner's processor using the specific rules of the barcode format (Code 128, EAN-13, etc.) and the resulting data is transmitted to the host system.

CCD (Charge-Coupled Device) scanners work similarly but use an array of hundreds of light sensors instead of a laser. Both types require high contrast between the dark bars and light background - which is why black on white is the universally recommended color combination.

1D vs 2D: Barcodes vs QR Codes

Traditional linear (1D) barcodes like EAN-13 and Code 128 encode data horizontally in a single dimension. They are fast to scan, extremely well-supported by hardware scanners, and are the global standard for retail and logistics. However, they are limited in data capacity - typically 20-80 characters.

Two-dimensional (2D) codes like QR codes and Data Matrix encode data in both horizontal and vertical directions, allowing thousands of characters and error correction that lets them scan even when partially damaged. For marketing, customer-facing, and web-link use cases, QR codes are the better choice. For supply chain and retail, 1D barcodes remain the standard because every scanner in every store worldwide supports them.

Barcodes by Industry

IndustryCommon FormatsUse Case
Retail / FMCGEAN-13, EAN-8, UPC-AEvery product on a shelf globally
Logistics / ShippingCode 128, ITF-14Tracking packages and outer cartons
HealthcareCode 128, PharmacodeMedicines, patient wristbands, labs
ManufacturingCode 39, Code 128Assembly lines, parts tracking
WarehousingMSI, Code 128Shelf labels and stock management
PublishingEAN-13, ISBNBook ISBNs use EAN-13 encoding

Real-World Examples

Small Business Product - EAN-13

A homemade food brand wants a barcode for their hot sauce bottle.

  1. 01Register a GS1 Company Prefix at gs1india.org (one-time fee).
  2. 02Assign a 12-digit product number using your prefix.
  3. 03Select EAN-13 in HQCalc, enter the 12 digits (checksum auto-added).
  4. 04Download 1024px height PNG and send to your label printer.

Professional retail-grade barcode, scannable at any Indian retailer POS.

Without a GS1 number, major retailers will not list your product.

Internal Inventory Labels - Code 128

A warehouse manager needs shelf labels for 500 SKUs.

  1. 01Create your internal SKU format e.g. WH-2026-001.
  2. 02Select Code 128 - it handles letters, numbers, and hyphens.
  3. 03Generate and download PNG for each SKU.
  4. 04Print on label sheets and attach to shelf edges.

Scannable inventory labels with your exact internal SKU codes.

Code 128 is the industry default for internal tracking.

Book ISBN - EAN-13

A self-publishing author needs an ISBN barcode for their book cover.

  1. 01Get your ISBN-13 from your national ISBN agency.
  2. 02Select EAN-13 in HQCalc and enter all 13 digits.
  3. 03Set height to 80px minimum for back-cover use.
  4. 04Download PNG and insert into your book cover design file.

Industry-standard ISBN barcode ready for print-on-demand or offset printing.

ISBN-13 is directly compatible with EAN-13 - same format.

More Free Tools

Everything you need, completely free

Barcode FAQ Hub

Everything about creating and using barcodes.

1. Is HQCalc's barcode generator free?

Yes, completely free. No account, no watermarks, no limits. Generate and download as many barcodes as you need.

2. Which barcode format should I use for my product?

For retail products sold globally, use EAN-13. For US/Canada retail, use UPC-A. For internal inventory or logistics, Code 128 is the most flexible choice as it accepts any text or numbers.

3. What is an EAN-13 barcode?

EAN-13 (European Article Number) is the global retail standard. It encodes exactly 13 digits where the last digit is a checksum. The first 2-3 digits represent the country code assigned by GS1.

4. What is the difference between EAN-13 and UPC-A?

EAN-13 is 13 digits and is the global standard. UPC-A is 12 digits and is predominantly used in the USA and Canada. A UPC-A code is technically an EAN-13 with a leading 0. Most modern scanners read both formats.

5. How do I get a proper EAN or UPC number for my product?

You need to purchase a GS1 Company Prefix from GS1 (the global standards body). In India, you can apply through GS1 India at gs1india.org. Once you have a prefix, you can assign numbers to your products and generate barcodes.

6. What is Code 128?

Code 128 is a high-density linear barcode that can encode the full ASCII character set including letters, numbers, and symbols. It is widely used in logistics, shipping labels, healthcare, and internal inventory systems.

7. What is the minimum print size for a barcode?

For EAN-13, the standard minimum is 26.26mm × 37.29mm at 100% magnification. For general-purpose barcodes like Code 128, aim for at least 15mm tall with module width of at least 0.3mm. Always test scan at the intended print size.

8. Can I use any colors for my barcode?

Barcodes need high contrast to scan reliably. Always use a dark bar color on a light background. Black bars on white is the most reliable. Red bars are not recommended as laser scanners use red light and cannot read them.

9. What is a checksum digit?

A checksum digit is the final digit in EAN-13, EAN-8, and UPC-A codes. It is mathematically calculated from the preceding digits to verify the barcode was read correctly. HQCalc's generator automatically calculates and validates it.

10. What is ITF-14?

ITF-14 (Interleaved Two of Five 14) is a barcode used on outer shipping cartons and multipack packaging. It encodes exactly 14 digits and is typically larger than EAN-13 because it's applied to corrugated cardboard.

11. What is a Pharmacode?

Pharmacode (Pharmaceutical Binary Code) is a barcode used exclusively in pharmaceutical packaging. It encodes a 3-6 digit number and allows extremely small printing. It is not used in retail scanning systems.

12. Can I generate ISBN barcodes?

ISBNs use EAN-13 encoding. Select EAN-13 and enter your 13-digit ISBN (without hyphens). The ISBN-13 format was specifically designed to be compatible with the EAN-13 retail standard.

13. What file format does HQCalc barcode generator export?

Barcodes are exported as PNG files. PNG uses lossless compression which preserves the sharp edges critical for barcode scanning. For professional print use, we recommend exporting at the largest height available.

14. Is there a limit to how many barcodes I can generate?

No limit. HQCalc generates barcodes entirely in your browser - there is no server call, so there is nothing to limit. Generate as many as you need.

15. What is the difference between 1D and 2D barcodes?

1D (linear) barcodes like EAN-13 and Code 128 encode data in vertical bars and can only be scanned horizontally. 2D barcodes like QR codes encode data in a square matrix pattern and can be scanned from any angle, holding far more data.

16. Why is my barcode not scanning?

Common causes: insufficient contrast (use black on white), barcode printed too small, bars not sharp (use PNG, not JPEG), scanner not compatible with the format, or invalid data for the format (e.g., wrong digit count for EAN-13).

17. What is MSI barcode format?

MSI (Modified Plessey) is a linear barcode used primarily in warehouse shelving and inventory management. It encodes numeric data and is designed for use with older scanning hardware in storage environments.

18. Do I need a GS1 number to use HQCalc?

No. HQCalc will generate a barcode from any number you provide. However, for retail products sold through major retailers, your EAN/UPC numbers must be officially registered with GS1 to be accepted at point of sale.

19. Can I use these barcodes commercially?

The generated barcode images themselves are yours to use commercially without restriction. However, for globally-traded retail products, always ensure your product numbers are properly registered with GS1 before use.

20. Is my data safe when using HQCalc barcode generator?

Yes. All barcode generation happens 100% in your browser using the open-source JsBarcode library. No product numbers, SKUs, or data of any kind is transmitted to any server.

HQcalc • Free Barcode Generator

Developed by Shivam Sagar. Barcodes generated client-side using the open-source JsBarcode library. No data stored or transmitted. © 2026.