EZ
EZ2Conv

Barcode Generator

Create Code 128, Code 39, EAN-13, EAN-8, UPC, ITF-14, MSI, and Pharmacode barcodes from any text or number. Adjust bar width, height, margins, colors, and the printed value label, then download as a PNG or copy the barcode as scalable SVG.

Input

Universal - supports all ASCII characters

Current: 0 characters(Required: 1-80)

Preview

📊

Enter a value to generate a barcode

Format Reference

CODE128ABC-12345

Universal - supports all ASCII characters

CODE39ABC-123

Industrial - A-Z, 0-9, and special characters

EAN-135901234123457

International retail - 12-13 digits

EAN-812345670

Small items - 7-8 digits

UPC-A012345678905

US retail - 11-12 digits

ITF-1415400141288763

Logistics - 13-14 digits

MSI12345678

Inventory - digits only

Pharmacode1234

Pharmaceutical - numbers 3-131070

How to Use

  1. Select the barcode format that matches your needs
  2. Enter the value to encode in the input field
  3. Adjust settings like width, height, and colors if needed
  4. Download as PNG or SVG format

Understanding Barcode Symbologies and How to Encode Them

What this generator does

A barcode packs a short string — a product code, an SKU, a batch number — into a pattern of bars and spaces that a scanner can read. This generator turns whatever value you type into that pattern with the JsBarcode library, drawing the result as a live SVG. It covers eight symbologies: Code 128, Code 39, EAN-13, EAN-8, UPC, ITF-14, MSI, and Pharmacode, each encoding data under its own rules. An Auto Detect mode inspects your input and picks a compatible symbology when you are not sure which one fits.

Beyond the raw bars, you control bar width, height, margins, the line and background colors, and the human-readable value printed underneath. Once the layout looks right, download it as a PNG for everyday use or copy it as SVG for print work that has to stay sharp at any size.

Choosing the right symbology

The format you pick depends on where the barcode will be scanned. Code 128 is the versatile choice for internal labels because it encodes the full ASCII set, letters and symbols included. Code 39 still appears in industrial and defense settings where older scanners are common. For anything sold in a shop, retail symbologies apply: EAN-13 and EAN-8 for international products, UPC for the United States. ITF-14 marks shipping cartons, MSI turns up on warehouse shelf labels, and Pharmacode is the dedicated standard for pharmaceutical packaging.

A concrete example

Enter 590123412345 and choose EAN-13. The symbology expects twelve digits plus a thirteenth check digit calculated from the first twelve. If your value is off, the tool reports the correct check digit instead of drawing an invalid code, so you can fix it before printing. Pharmacode behaves differently again: it accepts only a number between 3 and 131070 and rejects anything outside that window.

Notes and edge cases

Each symbology enforces its own length and character rules — EAN-8 wants seven to eight digits, MSI accepts digits only, and Code 39 allows A–Z, 0–9, and a handful of symbols. When the input breaks a rule, an inline message names the problem, whether it is an invalid character, a length mismatch, or a bad check digit. You can also hide the printed value, realign it left, center, or right, and adjust the font size when the label has to fit a tight space.

Frequently Asked Questions

Every symbology here — Code 128, EAN-13, UPC, ITF-14, Pharmacode and the rest — generates without a watermark, a scan cap, or locked settings. Customize the colors, size, and value label and export as many PNG or SVG barcodes as you need.
The bars are drawn by the JsBarcode library as an SVG directly on your device, so the value you encode — a product code, SKU, or batch number — is never uploaded anywhere. Nothing leaves your machine during generation.
No sign-up is involved. Choose a symbology, type a value, adjust the width and colors, and the barcode appears at once, ready to download as PNG or copy as SVG.
Match the format to the scan context: Code 128 for versatile internal labels with any ASCII characters, Code 39 for industrial use, EAN-13 and EAN-8 for international retail, UPC for US retail, ITF-14 for shipping cartons, MSI for warehouse inventory, and Pharmacode for pharmaceutical packaging. If you are unsure, Auto Detect suggests a compatible symbology from your input.
Retail symbologies like EAN-13, EAN-8, and UPC end in a check digit computed from the preceding digits. If the digit you entered does not match, the tool shows the correct one so you can correct the value rather than print a code that scanners will reject.
PNG is a fixed-resolution image that suits screens and quick sharing. SVG is a vector, so it scales to any size without blurring — the better pick for print labels and professional layouts. You can save PNG or copy the SVG markup straight to the clipboard.