Generate professional, print-ready barcodes instantly with this free online barcode generator. Choose from Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, MSI, Pharmacode, and Codabar formats. Customise bar width, height, color, and text visibility, then download as PNG or PDF, print directly, or share to WhatsApp — all without uploading your data anywhere.

How to Use This Barcode Generator

1

Enter Your Barcode Value

Type the number or text you want to encode. It updates the barcode in real time as you type.

2

Choose the Barcode Format

Pick the standard that matches your need — Code 128 for general use, EAN-13/UPC-A for retail, ITF-14 for cartons, and so on. Each format has strict rules (e.g., EAN-13 needs exactly 13 digits).

3

Customise Appearance

Adjust bar width, bar height, bar color, and whether the numeric text appears beneath the barcode.

4

Download, Print or Share

Download as a sharp PNG or a print-ready PDF, print directly, or share the image to any app.

Barcode Formats Explained

Different barcode formats serve different purposes. Choosing the right one is essential — retail systems, shipping carriers, and pharmacies all expect specific barcode standards.

Format Characters Allowed Common Use
CODE128All ASCII (numbers, letters, symbols)Most versatile — shipping, inventory, ID cards
CODE128A/B/CSubsets of ASCII (C = digits only)Fine-tuned for specific character sets
EAN-13Exactly 13 digitsRetail products (Europe, Asia)
EAN-8Exactly 8 digitsSmall retail packaging
UPC-AExactly 12 digitsRetail products in North America
CODE 39Digits + uppercase A–Z + a few symbolsID cards, inventory, healthcare
ITF-14Exactly 14 digitsCartons, logistics, outer packaging
MSIDigits onlySupermarket shelves, warehouse
PharmacodeInteger 3–131070Pharmaceutical packaging
CodabarDigits + start/stop letters (A–D)Blood banks, libraries, FedEx

Customisation Options

  • Bar Width — thin (1px) to extra-thick (4px). Wider bars are easier to scan from a distance but take more space.
  • Bar Height — 50 px to 160 px. Taller bars suit shelf-edge labels and outer cartons.
  • Show / Hide Text — the human-readable value can be toggled off if the barcode is small and printed near the product name.
  • Bar Color — usually black, but dark navy, maroon, or brand colors are fine. Avoid light or low-contrast colors (red, yellow) — scanners need high contrast against white.
Quick tip: For retail products, always use EAN-13 (Europe/Asia) or UPC-A (USA/Canada). For shipping cartons use ITF-14. For internal tracking, Code 128 is the safest universal choice.

Tips for Professional Barcodes

  • Leave quiet zones — at least 10× the bar width of white space on both sides.
  • Print on high-quality paper or label stock — smudged bars fail scans.
  • Avoid glossy lamination directly over bars — reflections confuse laser scanners.
  • Test-scan before mass printing — use a smartphone scanner app to verify.
  • Download PDF for printing — vector-sharp edges scale cleanly at any size.
  • Verify checksum digits for EAN/UPC — the tool auto-generates them for you.
Note: This tool runs entirely in your browser using JsBarcode. No barcode value is ever uploaded. Some retail barcode prefixes (the first 6–9 digits) are officially issued by GS1 — for commercial use, ensure you have a valid GS1 company prefix.

Frequently Asked Questions (FAQs)

Yes, it is 100% free. You can generate unlimited barcodes in any supported format and download them as PNG or PDF without paying anything or creating an account.
For general-purpose use, choose CODE128. For retail products, use EAN-13 (Europe/Asia) or UPC-A (USA). For shipping cartons, use ITF-14. For ID cards and internal tracking, CODE 39 or CODE128 are both fine.
EAN-13 requires exactly 13 digits. If you enter 12 digits, JsBarcode automatically calculates the 13th checksum digit. If you enter fewer or non-numeric characters, it will show an error. Try CODE128 if you have a variable-length value.
The generated barcode images are free to use. However, for retail products (EAN-13, UPC-A), you need a licensed GS1 company prefix — otherwise the barcode number won't belong to you. For internal use (CODE128, CODE39), you can generate any value freely.
This tool generates one barcode at a time. To batch-generate, you can simply change the value and download each barcode individually — it only takes a second per barcode. For large batches, a spreadsheet-based tool or an API would be more efficient.
Yes, if you print on good-quality paper at sufficient resolution and maintain proper white space (quiet zone) on both sides. Use a scanner app on your phone to test before bulk printing.
Laser barcode scanners use red light. Bars in red or orange colors can become invisible to the scanner. Always use dark colors (black, navy, dark green) on white background for maximum reliability.
Yes. Click the Share button — the barcode will be generated as a PNG image and your device's share menu will open. Choose WhatsApp, Email, or any other app. On desktop browsers without native share, the image downloads automatically.
EAN, UPC, and ITF-14 barcodes require a final "checksum" digit calculated from the preceding digits. JsBarcode automatically calculates and appends this digit — so you can enter 12 digits for EAN-13 and it will add the 13th automatically.
No. Everything runs in your browser using JsBarcode. No data is uploaded to any server. Your barcode values remain on your device only.