Code Generator Guide

Generate QR codes and barcodes (Code 128, Code 39, EAN-13, EAN-8, UPC-A, UPC-E) instantly. Download as PNG or SVG.

Back to Code Generator

What does this tool do

The Code Generator creates QR codes and barcodes instantly in your browser. Generate QR codes for URLs or text, or barcodes in Code 128, Code 39, EAN-13, EAN-8, UPC-A, and UPC-E. Download as PNG (QR) or SVG (barcodes). No server upload—everything runs locally.

How to use it

  1. Select code type — Choose QR Code or a barcode format (Code 128, Code 39, EAN-13, etc.).
  2. Enter content — Type the text, URL, or numeric value. Follow the format hints (e.g. 13 digits for EAN-13).
  3. View preview — The code appears in real time. Invalid input shows an inline error.
  4. Download — Click Download to save as PNG (QR) or SVG (barcodes).
  5. Copy — For QR codes, use Copy to copy the encoded text to the clipboard.

How it works

Input is validated against the structural rules for each code type (length, character set, check digits for EAN/UPC). The qrcode library renders QR codes; jsbarcode renders all barcode formats. Checksum digits for EAN/UPC are computed by jsbarcode. Output is generated entirely in the browser via canvas (QR) or SVG (barcodes)—no server call.

All computation runs entirely in your browser. No data is sent to any server.

Use cases & examples

  • QR codes — Encode URLs for posters, business cards, or menus.
  • Retail — Generate EAN-13 or UPC-A for product labels.
  • Inventory — Code 128 or Code 39 for warehouse barcodes.
  • Events — QR codes for tickets or check-in links.
  • Developer — Quick test codes for scanning apps.

Example

  • QR Code: https://example.com → scannable QR image
  • EAN-13: 5901234123457 (13 digits, valid check digit) → retail barcode
  • Code 128: ABC-1234 → general-purpose barcode

Limitations & known constraints

  • EAN/UPC check digit — Must be valid; jsbarcode validates and may reject invalid input.
  • QR capacity — Up to ~4,000 characters; very long text may affect scan reliability.
  • Barcode length — Code 128/39 have max length (e.g. 80 chars); EAN-13 is exactly 13 digits.
  • Download only — No direct print; use browser print on the downloaded file if needed.

All calculations and conversions run entirely in your browser. No data is sent to any server, so your input never leaves your device.