Barcode Generator

Generate Code 128, Code 39, EAN-13, EAN-8, UPC-A, and ITF-14 barcodes in your browser. Customize size and color, then download as PNG.

barcode code128 code39 ean13 ean8 upc itf14 generator 1d barcode qr
Free Client-Side Private
Any printable ASCII character
Configure settings and a barcode will appear here.
🔒 This tool runs entirely in your browser — your files are never uploaded to any server.

Barcode Generator is a free browser-based tool that creates standard 1D barcodes instantly — no upload, no server, no sign-up required. Choose a format, type your value, and download the result as a PNG.

Supported Formats

Format Valid characters Length Common use
Code 128 All printable ASCII Variable Shipping, logistics, inventory
Code 39 A–Z, 0–9, 7 symbols Variable Government, military, automotive
EAN-13 Digits 0–9 12 + checksum Retail products worldwide
EAN-8 Digits 0–9 7 + checksum Small retail packaging
UPC-A Digits 0–9 11 + checksum North American retail
UPC-E Digits 0–9 7 digits Compact North American retail
ITF-14 Even-length digits 13 + checksum Shipping containers (GS1)

How to Use

  1. Select a Format from the dropdown. Code 128 works for almost any text or number.
  2. Enter the value to encode in the Content field. The hint below the field shows what characters are valid for the selected format.
  3. Adjust Bar width, Height, and Margin with the sliders.
  4. Toggle Show human-readable text to add or remove the label below the bars.
  5. Use the color pickers to set bar and background colors.
  6. Click Download PNG to save the barcode, or Copy Image to copy it directly to your clipboard.

FAQ

What is the difference between Code 128 and Code 39?

Code 128 encodes the full ASCII character set and produces shorter, denser barcodes than Code 39. Code 39 is an older standard limited to A–Z, digits 0–9, and seven special symbols, but it is simpler to implement in hardware and does not require a checksum digit.

Does EAN-13 require exactly 12 digits?

Yes. EAN-13 takes 12 user-supplied digits; the 13th digit is a checksum computed automatically. If you paste a complete 13-digit EAN-13 value (checksum already included), the tool will validate and encode it as-is.

Why is my barcode showing an error?

Each format enforces strict character and length rules. EAN-13 requires exactly 12 digits, Code 39 only allows uppercase letters and certain symbols, and ITF-14 requires an even number of digits. The hint text below the content field shows exactly what is allowed for the selected format.

What resolution is the downloaded PNG?

The barcode is rendered on an HTML5 canvas at screen resolution. To get a larger, higher-DPI output, increase the Bar width (try 3 or 4) and Height sliders — this produces a bigger canvas and therefore a sharper image when printed.

Can I use barcodes generated here in commercial products?

Yes. The barcode is generated entirely in your browser and belongs to you. There are no usage restrictions on the output image.

Report an issue