Barcode Generator
Generate barcodes in 8 formats — download as SVG or PNG, all in your browser.
Barcode settings
Preview
Download
Examples
EAN-13 product barcode
Enter 12 digits (check digit auto-computed) or all 13 digits, select EAN13, and download the SVG to include on a product label. EAN-13 is the standard format used on most retail products worldwide.
CODE128 internal label
CODE128 encodes any printable ASCII character, making it ideal for internal part numbers, shipping labels, or any alphanumeric identifier. Enter your value, adjust height to 60px for a compact label, and export as PNG.
Details
This tool generates standard 1-D barcodes entirely in your browser — no data is sent to a server. Choose from eight widely-used formats, enter a value, tweak line width and height, and toggle the human-readable text below the bars. When the value is invalid for the chosen format (wrong character set or digit count) the error is shown instantly. Download the result as a lossless SVG or a rasterised PNG for print or web use.
About this tool
The Barcode Generator creates standard 1-D barcodes for products, logistics, pharmaceuticals, and internal labels — all inside your browser with no data ever leaving your device. Enter a value, pick from eight widely-used formats, and the barcode renders immediately.
Each format enforces its own character set and length rules. The tool validates your input before rendering and surfaces a clear error when the value is incompatible — for example EAN-13 requires 12–13 digits, while CODE39 permits only uppercase letters, digits, and a few symbols.
When the barcode looks right, export it as a lossless SVG for scalable print use or as a 2× PNG for web and documents. Controls for line width, bar height, and human-readable text let you match any label specification.
How to use
Generate a CODE128 barcode
Select CODE128, type any text value, and adjust the line width and height sliders. The barcode updates live; click Download SVG or PNG to save.
Create an EAN-13 product barcode
Select EAN-13 and enter 12 digits (the check digit is computed automatically) or all 13. An invalid value shows an error; once valid, download for print.
Export a high-resolution PNG
Click Download PNG to render the barcode into a canvas at 2× resolution with a white background — ready for labels or documents.
Barcode format reference
| Format | Typical use |
|---|---|
| CODE128 | Shipping labels, part numbers, any ASCII text |
| CODE39 | Automotive/military labels, uppercase alphanumeric IDs |
| EAN-13 | Retail product packaging worldwide (13 digits) |
| EAN-8 | Small product packaging (8 digits) |
| UPC-A | North-American retail products (12 digits) |
| ITF-14 | Outer carton / wholesale packaging (14 digits) |
| Pharmacode | Pharmaceutical packaging (number 3–131070) |
Frequently asked questions
Related tools
CSS Grid Generator
Visually build CSS Grid layouts — set columns, rows and gaps, see a live preview, and copy production-ready grid-template CSS.
Flexbox Playground
Visually configure a CSS flexbox container — set direction, alignment, wrap and gap, see a live preview, and copy production-ready CSS.
Border Radius Generator
Visually craft CSS border-radius values — including the advanced 8-value slash syntax for organic blob shapes — with a live preview and one-click copy.
Cubic Bezier / Easing Generator
Build a CSS cubic-bezier() timing function visually — drag control points, preview common presets, see the easing curve live, and copy the transition-timing-function CSS.
CSV to JSON Converter
Paste CSV data and convert it to pretty-printed JSON instantly — supports custom delimiters, header row toggling, and value trimming.
HTML to Markdown Converter
Paste HTML and get clean Markdown. Configurable heading style, bullet marker, and code block style — all processed locally in your browser.