Free · 100% browser-side · zero server upload
Online Barcode Generator Free: Code 128, UPC, EAN, PDF417 & Data Matrix
Generate crisp, scanner-ready 1D and 2D barcodes in your browser with instant check-digit verification and watermark-free SVG, PNG, CSV, and print output.
Interactive barcode workbench
Code 128 Barcode Card
Encoded value: SKU-A1048-US
| Symbology | Code 128 (Auto → Set B) |
|---|---|
| Data codewords | 12 |
| Mod-103 check value | 60 |
| Total modules | 167 |
Barcode Generator · black-on-white print card.
All encoding, check-digit calculation, SVG vector drawing, and PNG rasterization run locally in this tab. Share links keep settings after the hash, which browsers never send to a server.
How to create and export a scannable barcode
Choose a symbology from the Barcode format menu and type or paste your value into the Barcode data field. Every keystroke re-encodes the symbol immediately in the preview stage on the right, displays check-digit and module counts in the diagnostic panel, and updates the live summary strip above the form.
Adjust Bar width (1 to 4 px), Bar height (40 to 180 px), Quiet zone (10 to 30 px), and the Show human-readable text switch to fit your label dimensions. When you are ready to save, click Download SVG for crisp vector artwork, Download PNG for a high-resolution raster file with an opaque quiet zone, Export CSV for a spreadsheet record, or Copy share link to capture your exact setup after the hash.
Use the Try sample button whenever you want to inspect different real-world inputs across Code 128, UPC-A, EAN-13, Code 39, ITF-14, and Codabar; each click steps through distinct samples without repeating the same preset twice in a row. Reset restores the default SKU-A1048-US Code 128 state.
Supported 1D and 2D symbologies on the main bench
Different retail, shipping, warehouse, and electronics workflows call for specific ISO/IEC or GS1 symbologies. Rather than forcing every label into a single format, this studio encodes each standard natively in TypeScript with zero external image APIs:
- Code 128 (Auto, Set A, Set B, and Set C): encodes all 128 ASCII characters, automatically latches into double-density numeric Set C for consecutive digit pairs, and appends the mandatory Modulo-103 check character.
- UPC-A: accepts 11 digits and calculates the twelfth GS1 Modulo-10 check digit automatically, or verifies a full 12-digit retail GTIN-12 code with classic outer guard digits.
- EAN-13: accepts 12 digits and computes the thirteenth Modulo-10 check digit, or validates a complete 13-digit GTIN-13 number using the standard L and G left-side parity pattern.
- Code 39: encodes uppercase alphanumeric warehouse and asset tags with optional Modulo-43 verification; switch to the dedicated Code 39 and VIN page for Full ASCII expansion and 17-character vehicle VIN validation.
- ITF-14: encodes 13 or 14 digits in Interleaved 2 of 5 for corrugated shipping cartons, with selectable full-box, horizontal-only, or unframed bearer bars outside the 10-module quiet zones.
- Codabar: wraps digits and - $ : / . + symbols inside A, B, C, or D start and stop guard characters used in blood banks, libraries, and parcel receipts.
- PDF417 (ISO/IEC 15438) and Data Matrix ECC 200 (ISO/IEC 16022): compact 2D stacked and matrix formats with Reed-Solomon error correction; open their dedicated subpages for compaction, ECL, column, and GS1 FNC1 controls.
Why scanner contrast and quiet zones matter
A barcode is only useful if laser wands, CMOS imagers, and smartphone cameras can decode it on the first pass. Two silent causes account for most print failures: clipped white margins (quiet zones) on the left and right edges, and low luminance contrast or inverted colors when a tool exports transparent PNGs on dark screens.
To protect scanability, both the preview stage and exported SVG or PNG files always paint a solid background rectangle behind the bars—even when your operating system is in Dark Mode. If you customize Foreground color and Background color or pick a palette whose WCAG contrast ratio falls below 4.5:1 (or where bars are lighter than the paper), the diagnostic card displays an explicit scanner warning immediately.
Frequently asked questions
Which barcode formats can I create and download for free?
You can encode Code 128 (Auto, A, B, and C), UPC-A, EAN-13, Bookland ISBN-10 and ISBN-13 with optional EAN-5 price add-ons, Code 39 (including Full ASCII, Mod-43 check characters, and 17-character VINs), ITF-14, Codabar, ISO/IEC 15438 PDF417, and ISO/IEC 16022 Data Matrix ECC 200. Every format exports without watermarks or sign-up in SVG, high-resolution PNG, CSV, and printable label sheets.
How does check-digit calculation work for UPC-A, EAN-13, ITF-14, Code 39, and VIN?
Enter 11 digits for UPC-A, 12 digits for EAN-13, or 13 digits for ITF-14 and the studio automatically computes the GS1 Modulo-10 check digit; if you enter the full 12, 13, or 14 digits, it verifies the final digit and flags mismatches instead of silently altering your code. Code 39 supports optional Modulo-43 verification, and the VIN page enforces ISO 3779 by rejecting I, O, and Q and verifying the ninth-position Modulo-11 check digit.
Can I print Avery or thermal labels and import spreadsheets from Excel or CSV?
Yes. The label sheet workspace includes Avery 5160 (30-up), Avery 5161 (20-up), Avery 5163 (10-up), Avery 5167 (80-up), Thermal 4 by 6 inch, and Thermal 2.25 by 1.25 inch presets ready for browser printing. The bulk Excel and CSV workspace accepts tab-separated pastes directly from Excel or Google Sheets as well as CSV files up to 50 rows per batch, validates every row before rendering, and reconciles valid and invalid label counts in the exported CSV.
Why do the preview stage and exported PNG keep a solid white background in Dark Mode?
Laser and camera barcode scanners read dark bars against a bright reflective background with intact quiet zones on both sides. Keeping the barcode stage and exported SVG or PNG on an opaque light background (and alerting you whenever foreground-to-background contrast falls below 4.5:1) prevents unreadable transparent-background codes when viewing or printing from Dark Mode.
Does this barcode generator send my SKUs, serial numbers, or VINs to a server?
No. Every 1D and 2D encoder, check-digit verifier, SVG renderer, PNG canvas rasterizer, and CSV exporter runs locally inside your browser tab. Share links store configuration in the URL fragment after the hash, which browsers never send to a server, and anonymous usage telemetry excludes barcode values and hash fragments.
Barcode workspaces in this studio
Every workspace shares the same pure TypeScript encoders and scanner-safe contrast rules, with dedicated controls for 2D codes, label sheets, spreadsheets, VINs, and books.
Specifications & standards
All bar/space tables, error-correction polynomials, and check-digit formulas are implemented directly from published ISO/IEC, GS1, and federal standards.
- GS1 General Specifications — Modulo-10 check digit rules and quiet-zone standards for UPC-A, EAN-13, ITF-14, and GS1 Data Matrix.
- ISO/IEC 15438 (PDF417) & ISO/IEC 16022 (Data Matrix ECC 200) — GF(929) and GF(256) 0x12D Reed-Solomon error correction and symbol placement specifications.
- ISO 3779 / US 49 CFR Part 565 — 17-character Vehicle Identification Number (VIN) alphabet exclusions (I, O, Q) and position-9 Modulo-11 check digit.
- ISO 2108 & Bookland EAN-13 / EAN-5 — ISBN-10 Modulo-11 to 978 ISBN-13 conversion and 3/9 weighted EAN-5 price add-on parity table.
All barcodes are generated deterministically inside your browser tab. Always test-scan a physical label print on your target scanner hardware before mass production.