Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. All processing happens entirely in your browser - your files never leave your device. No uploads, no accounts, complete privacy.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Converters & Encoders
  3. Barcode Generator
Add to favorites

Barcode Generator

Generate barcodes in CODE128, CODE39, EAN13, UPC formats

Create barcodes in popular formats including Code 128, EAN-13, UPC-A, Code 39, and more. Enter your data, pick a format, and download the barcode as an image ready for labels, inventory systems, or product packaging.

Runs locally in your browserMore converters & encodersJump to full guide

Related reading

  • Barcode Symbologies and the Math of Check Digits9 min read
  • QR Code Best Practices: Size, Error Correction, and Design Tips14 min read

Initializing in your browser…

You might also like

QR Code Generator

Generate QR codes from text or URLs

Color Palette Generator

Generate harmonious color schemes using color theory

Hash Generator

Generate MD5, SHA1, SHA256, SHA384, SHA512 hashes from text

An example conversion

A retail system needs an EAN-13 barcode for a new product and you only have the 12-digit prefix, not the final check digit.

First 12 digits

012345678901
Barcode Generator produces

EAN-13 barcode

0123456789012  (check digit 2 computed and appended)

EAN-13's 13th digit is a checksum: alternate digits are weighted ×1 and ×3, summed, and the digit needed to reach the next multiple of 10 is appended (here, 2). The tool computes it for you and renders the bars at the correct module width, so a scanner will actually read it instead of rejecting an invalid code.

What this converter does

Create barcodes in popular formats including Code 128, EAN-13, UPC-A, Code 39, and more. Enter your data, pick a format, and download the barcode as an image ready for labels, inventory systems, or product packaging.

How it works

This generator renders linear (1D) barcodes in 21 symbologies using the jsbarcode library, grouped in the picker as Standard (CODE 128 plus its A/B/C subsets, CODE 39, CODE 93), Retail/Product (EAN-13, EAN-8, EAN-5, EAN-2, UPC-A, UPC-E), and Industrial (ITF-14, ITF/Interleaved 2 of 5, MSI with mod-10/mod-11 variants, Pharmacode, and Codabar). The CODE 128 subsets are not interchangeable: CODE 128A accepts uppercase, digits and a limited symbol set, CODE 128B accepts all printable ASCII, and CODE 128C only encodes digit pairs (input must be numeric and even-length), which is why each is offered separately. These are all one-dimensional formats - there is no QR or DataMatrix support here, since those are 2D matrix codes.

Input is validated live against per-format rules before anything is drawn. For EAN-13, EAN-8, UPC-A and ITF-14 the tool computes the trailing check digit with a Mod-10 algorithm using 3-1-3 positional weighting (each digit at an odd position from the right is multiplied by 3), so you can type the 12-digit body of an EAN-13 and it auto-completes the 13th digit, but supplying a full code with a wrong check digit is rejected with an inline error. Other formats enforce their own constraints: Pharmacode only accepts integers from 3 to 131070, Codabar requires A-D start/stop letters wrapping the data, ITF and CODE 128C require even digit counts, and EAN-5/EAN-2 are the 5- and 2-digit supplemental add-ons. A green 'Valid input' confirmation or a red error message updates as you type.

Appearance is adjustable through a settings panel with six color presets (Classic, Blue, Green, Red, Purple, Dark) plus custom foreground/background color pickers, a bar-width slider from 1 to 5, a height slider from 50 to 200px, and a font-size slider from 10 to 24px, with an option to hide the human-readable text. Output can be downloaded as PNG, copied to the clipboard as a PNG image, or exported as SVG (note the SVG simply embeds the rasterized PNG inside an <image> element rather than emitting true vector bars). A batch mode lets you queue multiple data/format pairs and download them all as separate PNGs in sequence, and the full configuration - data, format, size, colors - is encoded in the URL so a specific barcode setup can be shared via link.

Examples

  • Auto-completed EAN-13

    Choosing EAN-13 and entering the 12-digit body 590123412345 produces a valid 13-digit retail barcode with the check digit filled in automatically.

  • Pharmacode range

    Pharmacode accepts only integers from 3 to 131070, so a value like 1234 generates a valid pharmaceutical packaging code while 2 or 200000 is rejected.

How to use

  1. 1Select the barcode format you need.
  2. 2Enter the data to encode (check format requirements for digit counts).
  3. 3Customize width, height, and display options.
  4. 4Download the generated barcode image.

Key features

  • Multiple barcode formats: Code 128, EAN-13, UPC-A, Code 39, ITF-14, and others
  • Adjustable bar width and height
  • Optional human-readable text below the barcode
  • PNG download for print and digital use
  • Input validation per format

Tips & best practices

  • Type the first 12 digits of an EAN-13 (or 11 of a UPC-A) and the tool auto-calculates the final Mod-10 check digit for you.
  • For dense numeric data use CODE 128C, but the input must be an even number of digits or validation fails.
  • The SVG export wraps a PNG raster rather than emitting vector bars, so prefer the PNG download when you only need a bitmap.

Where this fits

  • Inventory management

    Generate Code 128 barcodes for internal stock tracking and warehouse operations.

  • Retail product labeling

    Create EAN-13 or UPC-A barcodes for products sold in stores.

  • Shipping labels

    Produce barcodes for package tracking and logistics systems.

Frequently asked questions

Which format should I use?

Code 128 is versatile and supports the full ASCII set. Use EAN-13 or UPC-A for retail products, and Code 39 for simple alphanumeric labels.

Why does my barcode not scan?

Check that the data matches the format requirements (e.g., EAN-13 needs exactly 12 or 13 digits) and that the print resolution is sufficient.

Related tools and how they differ

  • Barcode Reader & Scanner: Reads 1D barcodes from a photo or camera and identifies the symbology; use it to decode an existing barcode rather than create one.
  • QR Code Generator: Encodes WiFi, contacts, payments and URLs into 2D QR codes with styling and batch mode; use it when you need a QR matrix, not a linear barcode.
  • QR Code Reader & Scanner: Scans and decodes QR codes from image or camera with content-type detection; use it to read a QR, not to generate a striped barcode.

Further reading

  • Barcode Symbologies and the Math of Check Digits9 min read
  • QR Code Best Practices: Size, Error Correction, and Design Tips14 min read

Private by design

Conversions run on your device in JavaScript. The values you enter are never sent over the network.