Barcode Generator - Create EAN, UPC, QR Codes & More

Instantly create high-quality, scannable 1D & 2D barcodes. Generate EAN-13, UPC-A, Code 128, QR Codes, and more. Free, fast, and accessible.

Choose the symbology that matches your use case.

Enter any text, URL, or data to encode.

Higher levels tolerate more damage but reduce density.

How to Use This Generator

Choose the symbology, enter the data you need to encode, adjust the visual options, then click Generate to preview the barcode and download a PNG.

  1. Select the barcode type that matches your use case (QR for links, EAN-13/UPC-A for retail, Code 128 for logistics, etc.).
  2. Enter the data to encode. The tooltip lets you know if a fixed-length symbology (like UPC-A) expects a specific number of digits.
  3. Optional controls let you tweak bar width/height for 1D types or module size and error correction for 2D types.
  4. Press Generate, inspect the preview, and download the PNG once the render succeeds.

Methodology

This tool runs entirely in the browser using bwip-js. It validates data formats, builds the appropriate options for each symbology, renders the barcode to a canvas, and exposes a download link so you can save a high-resolution PNG.

The generator mirrors vendor-calculated check digits and layout rules so the exported barcode is compatible with standards bodies such as GS1. Results are estimates rendered client-side and should be verified before you print packaging or labels.

  • Standards-compliant output for EAN-13, UPC-A, Code 128, PDF417, QR Codes, and Data Matrix.
  • Accessible UI with keyboard-friendly controls, clear validation, and descriptive helper text.
  • Fast previews with modifiable error correction levels and module sizing.

Full original guide (expanded)

Audit: Complete. The previous layout listed the formulas, sources, and changelog details that are now preserved in the verification panel below.

Verified by Ugo Candido on 2026-01-19.

Source data such as the CalcDomain homepage, Lifestyle & Everyday category, Miscellaneous subcategory, QR Code Generator (Advanced), and Secure Password Generator were referenced when this tool was documented.

Formulas

Check digit formula (EAN/UPC series):

$ S = d_1 + 3d_2 + d_3 + 3d_4 + d_5 + 3d_6 + d_7 + 3d_8 + d_9 + 3d_{10} + d_{11} + 3d_{12} $  $ C = (10 - (S \mod 10)) \mod 10 $

This section shows the formulas used by the engine plus the variable notes provided in the original audit spec.

  • No additional variables or units were supplied in the audit specification.
Citations
Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft generated from the HTML extraction (review required).
  • Verify formulas match the calculator engine and convert text-only formulas to LaTeX, confirm sources, and validate assumptions.
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0