# Barcode Generator - Create Code 128, EAN-13 & Code 39 Barcodes Online

> Free online barcode generator: Code 128 with automatic code sets, EAN-13 with its check digit and Code 39. Adjust size, quiet zone and colours; SVG or PNG.

- URL: https://qilingtools.com/en/barcode
- Category: Productivity (https://qilingtools.com/en/office)
- Tags: [Image](https://qilingtools.com/en/tags/image), [QR & Barcode](https://qilingtools.com/en/tags/qrcode), [Productivity](https://qilingtools.com/en/tags/office)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Type your data and get a scannable 1D barcode. Code 128 suits shipping numbers, asset tags and inventory labels with mixed letters and digits; the generator switches between code sets B and C automatically, packing digit runs two per symbol for a shorter barcode. EAN-13 is the 13-digit retail product barcode: enter 12 digits and the check digit is calculated for you, or enter 13 to validate it. Code 39 is common in industry and ID badges. Customize bar width, height, quiet zone, font size and colors, then download a vector SVG (ideal for print) or a PNG. Batch mode takes one code per line and packs hundreds of barcodes into a ZIP. Everything is generated in your browser.

## How to use

1. Choose a symbology (Code 128, EAN-13 or Code 39)
2. Enter the content — one per line in batch mode
3. Adjust bar width, height, quiet zone and colors, then download SVG or PNG (ZIP for batches)

## Features

- Code 128 for all printable ASCII with B/C code-set optimization
- EAN-13 with automatic check digit and validation
- Code 39 with optional Mod 43 check character
- Custom bar width, height, quiet zone, font size and colors
- Vector SVG for print and pixel-aligned PNG
- Batch generation with one-click ZIP download
- Pure client-side generation, nothing uploaded

## FAQ

### Which should I use: Code 128, EAN-13 or Code 39?

Use EAN-13 for retail products sold in stores (you need a company prefix from GS1 for official use). For internal uses like shipping labels, warehouse bins and asset tags, Code 128 is best: it supports letters and digits and is compact. Code 39 only supports uppercase letters, digits and a few symbols and is mainly for legacy scanners.

### How is the EAN-13 check digit calculated?

Take the first 12 digits, multiply digits in odd positions by 1 and even positions by 3, add them up, and subtract the last digit of the sum from 10 (a result of 10 becomes 0). Enter 12 digits and the tool appends it; enter 13 and it tells you if the check digit is wrong.

### My barcode won't scan — what should I check?

Make sure the contrast is strong (dark bars on a light background, not inverted), the quiet zones on both sides are wide enough (at least 10× the bar width), and printed bars aren't too thin — use 2 px or more and the SVG format to avoid blur. EAN-13 data must be a valid 13-digit number.

### Can I use the barcodes commercially? Is my data uploaded?

Yes, the generated images are free for commercial use. Barcodes are generated locally in your browser and your data is never uploaded. The tool is free and needs no account.

## Related tools

- [QiLing Mind](https://qilingtools.com/en/mindmap): QiLing Mind is a free online mind map editor: add nodes with Tab/Enter, drag to restructure, import and export XMind and Markdown, export PNG/SVG/PDF.
- [Password Generator](https://qilingtools.com/en/password): Free online random password generator: choose length, character sets and look-alike exclusions, generate several at once with a strength meter, all locally.
- [QR Code Generator](https://qilingtools.com/en/qrcode): Free online QR code generator: turn URLs, text, Wi-Fi or contact cards into QR codes with custom size, colour and error correction. Crisp PNG or vector SVG.
- [Word Counter](https://qilingtools.com/en/word-count): Free online word counter: live counts of characters with and without spaces, words, CJK characters, lines, paragraphs, sentences, bytes and reading time.
- [Case Converter](https://qilingtools.com/en/case-convert): Free online case and naming converter: get UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE at once.
- [Lorem Ipsum Generator](https://qilingtools.com/en/lorem): Free online Lorem Ipsum generator: classic Latin placeholder text or Chinese filler by paragraph, sentence or word, with one-click copy for mockups.
- [Sort & Dedupe Text](https://qilingtools.com/en/text-sort): Free online text tool: sort lines alphabetically or by length, remove duplicate and empty lines, trim whitespace, optionally ignoring case. Runs locally.
- [Sign & Stamp PDF](https://qilingtools.com/en/pdf/sign): Free online PDF signing tool: drop in a handwritten signature or company stamp, drag it into place on a page preview, adjust size and opacity, then export.
