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. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

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

Create Code 128, EAN-13, UPC-A, Code 39, ITF-14 and other barcodes with automatic check digits, and download them as PNG or vector SVG.

Runs locally in your browserMore converters & encodersJump to full guide
Related readingBarcode Symbologies and the Math of Check Digits11 minQR Code Best Practices: Size, Error Correction, and Design Tips11 min

Initializing in your browser…

You might also like

QR Code Generator

Make QR codes for links, Wi-Fi, contacts, events and payments as you type, check that each one scans, and download it as PNG or SVG.

Color Palette Generator

Generate colour palettes from one base colour, with tints and shades, contrast and colour-blindness checks, and CSS, Tailwind or JSON export.

Hash Generator

Hash text or files with MD5, SHA-1, SHA-256 or SHA-512 as you type, create HMAC signatures, and check a download against its published digest.

An example conversion

A new product needs an EAN-13 barcode, and you have the 12-digit number from your GS1 allocation but not the final check digit.

EAN-13, first 12 digits

590123412345
What Barcode Generator produces

Result

Encoding 5901234123457 (check digit 7 added)
Checked: the bars match the ISO/IEC 15420 pattern for 5901234123457 exactly
Narrowest bar 2 pixels
Quiet zone 23.0 modules left and 7.0 right (11 and 7 required by GS1)

The check digit comes from the GS1 rule: counting from the right of the 12 digits, every other digit is multiplied by 3 and the rest by 1, giving a total of 83, and 7 is the digit that brings it to the next multiple of ten, 90. The barcode is drawn with 2 pixels per module, and the margins are set in modules so they meet the GS1 minimum of 11 on the left and 7 on the right; the left side shows more because the first digit, 5, is printed in that margin. The tool then reads the bars back from the image and confirms they are exactly the pattern the standard gives for 5901234123457. For the printed packaging, download the SVG.

What this converter does

Create barcodes in more than 20 formats, including Code 128, EAN-13, UPC-A, Code 39 and ITF-14, and download them as PNG or vector SVG. Check digits are calculated for you, the blank margin each standard requires is added automatically, and retail barcodes are read back from the image to confirm the bars are right.

How it works

A linear barcode stores a short value as a row of dark bars and light spaces whose widths are multiples of one narrow unit, called a module. Pick a format, type the value, and the barcode appears at once. Code 128 is the usual choice for internal labels because it takes any letters, numbers and symbols and stays compact. Code 39 is older and only takes capitals, digits and a few symbols, but almost every scanner reads it. EAN-13 and UPC-A are the retail product codes printed on packaging, EAN-8 and UPC-E are their short forms for small packs, ITF-14 marks shipping cartons, and Codabar, MSI and Pharmacode still turn up in libraries, warehouses and pharmacies.

Retail codes end in a check digit that scanners use to catch misreads. Type the first 12 digits of an EAN-13 (or 11 of a UPC-A, 7 of an EAN-8, 13 of an ITF-14) and the tool calculates and appends the check digit with the GS1 modulo 10 rule, and it shows the full value a scanner will report. If you type the check digit yourself and it is wrong, the tool tells you the correct one instead of printing a code that will be rejected at the till.

Scanners also need a blank margin, the quiet zone, on each side of the bars to find where the code starts. The standards specify it in modules, not pixels: GS1 requires 11 modules on the left of an EAN-13 and 7 on the right, and Code 128 needs 10 on each side. The tool sizes the margin from the bar width so it stays correct at any size. For EAN-13, EAN-8 and UPC-A it then reads a row of pixels from the finished image and compares the bars with the pattern ISO/IEC 15420 defines for that number; the green check under the barcode confirms they match exactly and reports the measured quiet zone and bar width.

For printing, a bar width of at least 2 pixels per module keeps bars crisp, and the SVG download is drawn with vector rectangles, so it scales to any size in design software without blurring. Under Size and colours you can set the bar width, height and text size, hide the human-readable digits, and change colours. Keep dark bars on a light background: scanners use red light, so red or pale bars, low contrast and light-on-dark barcodes often fail, and the tool warns about these.

Batch mode turns a list of values, one per line, into a ZIP of PNG files, which is handy for shelf labels or an inventory. Each line uses the selected format, or a line can start with a format and a comma, such as EAN13, to choose its own. Lines that cannot be encoded are listed with the reason. Everything runs in your browser.

How to use

  1. 1Choose a format from the list. Code 128 suits most labels; use EAN-13 or UPC-A for retail products.
  2. 2Type the value, or press Try an example. For retail codes you can leave out the check digit.
  3. 3Check the line under the barcode, which confirms what will be scanned and whether the bars and margins are right.
  4. 4Download a PNG for screens or an SVG for print, or copy the image.
  5. 5For many barcodes, switch to Batch, paste one value per line and download the ZIP.

Key features

  • More than 20 formats: Code 128 (A, B, C), Code 39, Code 93, EAN-13, EAN-8, EAN-5, EAN-2, UPC-A, UPC-E, ITF-14, ITF, MSI, Pharmacode and Codabar
  • Automatic GS1 check digits, and wrong check digits caught with the correct one shown
  • Quiet zones sized in modules to each standard
  • EAN and UPC barcodes read back from the image and compared with the standard pattern
  • PNG and true vector SVG downloads, and copy as an image
  • Bar width in whole pixels, height, text size and colours
  • Warnings for low contrast and reversed (light on dark) colours
  • Batch mode with per-line formats and a ZIP of PNGs
  • Runs in your browser; nothing is uploaded

Tips & best practices

  • Scale barcodes in steps of whole modules; stretching an image by an odd amount blurs the bars.
  • Leave the human-readable digits on for retail codes; staff type them in when a scan fails.
  • Test a printed sample with the scanner or phone app you will actually use.
  • Keep at least the quiet zone of white space around the code when placing it in a design.

Where this fits

  • Retail product labels

    Enter the 12 digits of your EAN-13 from your GS1 allocation, let the tool add the check digit, and download an SVG for the packaging designer.

  • Inventory and asset tags

    Turn a list of item numbers into Code 128 labels in Batch mode and print them on sticker sheets.

  • Shipping cartons

    Create ITF-14 codes for outer cases from the product's GTIN, with the check digit calculated.

  • Library and event tickets

    Generate Codabar or Code 39 codes for systems that expect them, and test them with your scanner before printing a batch.

Frequently asked questions

Which barcode format should I use?

For products sold in shops, EAN-13 (or UPC-A in North America) with a number from GS1. For your own labels, Code 128, which encodes any text compactly. For shipping cartons, ITF-14. Use another format only when a system specifically requires it.

Do I need to enter the check digit?

No. For EAN-13, EAN-8, UPC-A and ITF-14 you can type the number without its last digit and the tool calculates it. If you include a check digit that is wrong, it shows the correct one.

Can I make my own EAN-13 numbers?

You can generate the barcode for any number, but codes for products sold in shops must come from GS1, which issues company prefixes. A made-up number may clash with another product.

Why does my barcode not scan?

The usual causes are too little blank space around it, bars printed too small or blurred, low contrast, or light bars on a dark background. Keep the quiet zone clear, use at least 2 pixels per module, print dark bars on white, and check the warnings under the preview.

Should I download PNG or SVG?

SVG for print and design work, because it is vector and stays sharp at any size. PNG for screens, documents and label software that needs an image.

What is the quiet zone?

The blank margin on each side of the bars. Scanners need it to find where the code begins and ends. Its width is set by each standard in modules, which is why the tool adjusts it when you change the bar width.

Related tools and how they differ

  • QR Code Generator: Makes square QR codes, which hold links, Wi-Fi details and longer text that a linear barcode cannot.
  • Barcode Reader & Scanner: Reads an existing barcode from a photo or your camera.

Further reading

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

Private by design

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