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.

100% browser encoding8 standard symbologiesSVG + high-DPI PNG + CSVDark-mode safe preview stage

Interactive barcode workbench

Any ASCII 0–127 characters; Set C compacts even-length digits.

Warns automatically if foreground/background contrast drops under 4.5:1.

Barcode preview and diagnostics

Code 128 barcode

SKU-A1048-US

Scanner contrast: 17.74:1 (WCAG AA compliant)

  • Symbology: Code 128 (Auto → Set B)
  • Data codewords: 12
  • Mod-103 check value: 60
  • Total modules: 167

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:

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.

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.

All barcodes are generated deterministically inside your browser tab. Always test-scan a physical label print on your target scanner hardware before mass production.

Put this calculator on your site

Embed this calculator

Copy the snippet into any page. The widget is free, needs no key and sends nothing until a visitor interacts with it.

Open widget view