条形码生成器
Enter any text or number to instantly generate a scannable barcode — choose from CODE128, EAN-13, UPC-A, CODE39 and more, then download it as a PNG or SVG.
Barcode content
Type the text or number you want turned into a barcode.
Different formats expect different kinds of values (see the guide below).
Preview & download
Updates instantly as you type or change format.
Recent barcodes
Reviews
Everything you need to know about Barcode Generator
How barcode formats work, which one to pick, and how to get a scannable result.
- Type a value, pick a format, and your barcode renders instantly.
- Everything runs locally in your browser — nothing you type is ever uploaded.
- Not every value works with every format — check the format guide below before you print.
How to use Barcode Generator
- Type the text or number you want encoded into the input field.
- Choose the barcode format that matches your value — CODE128, EAN-13, UPC-A, CODE39, or another supported type.
- Your barcode renders instantly — download it as a PNG or SVG file.
Why generate a barcode online
Design software and dedicated labeling programs can create barcodes, but they usually require an install, a license, or an account just to produce a single scannable image.
This tool skips all of that: it renders the barcode live in your browser using JavaScript, so you get a print-ready PNG or SVG in seconds, with nothing to install and nothing sent to a server.
Choosing a barcode format
| Format | Best for | Why it's worth checking |
|---|---|---|
| CODE128 Recommended | General purpose, shipping, internal tracking | Accepts letters, numbers and symbols, so it fits almost any value. |
| EAN-13 / UPC-A | Retail products | Required by most point-of-sale systems, but needs a valid product number. |
| CODE39 | Inventory, ID badges, older scanners | Widely supported by legacy hardware, but only encodes uppercase letters and numbers. |
Barcode Generator without uploading anything
The value you type is passed directly to a barcode-rendering script running in your own browser tab — it's drawn to an on-page image and never transmitted anywhere.
Because nothing is uploaded, there's no server-side size limit either; the only practical constraint is how much text a given barcode format can encode.
Your data never leaves your device. Barcode rendering happens entirely client-side, with nothing logged or stored.
Need to turn that barcode into a label sheet? The Image to PDF tool can combine it with other images into a printable PDF.
What value does each format expect?
| Format | Valid input | Trade-off |
|---|---|---|
| CODE128 Good default | Any letters, numbers, and most symbols | Most flexible, but not the standard for retail scanning at checkout. |
| EAN-13 | 12–13 digits | Standard for retail products worldwide, but won't accept letters. |
| UPC-A | 11–12 digits | Common in the US/Canada retail, but limited to numbers only. |
| CODE39 | Uppercase A–Z, 0–9, and a few symbols | Reliable on older scanners, but takes up more horizontal space per character. |
If you're not sure which to pick, CODE128 accepts almost anything and is a safe starting point — switch to EAN-13 or UPC-A only if a specific retail system requires it.
What people use Barcode Generator for
- Retail & inventoryLabeling products or stock items with a scannable UPC or EAN code.
- Shipping & logisticsTagging packages and pallets with CODE128 tracking barcodes.
- Event & ID badgesPrinting CODE39 barcodes for check-in and access control.
- Asset trackingGenerating unique codes for equipment, files, or internal records.
- Testing & prototypingQuickly producing sample barcodes for scanner apps or POS demos.
How This Tool Works
The barcode is rendered live in your browser via JavaScript using the JsBarcode library: it encodes your text into standard barcode symbology and draws it as an SVG image — nothing is uploaded, stored, or logged.
Last updated: September 12, 2026.
Was this guide helpful?
More tools in the box
Fourteen more free, no-API-key tools live on the homepage.