Barcode Generator

Create print-ready barcodes anywhere

Generate QR codes, Data Matrix, GS1-128, EAN/UPC and 20 more formats as crisp SVG or PNG, in the browser, in Node.js, from the command line, or over REST.

Features

26 formats

From QR and Data Matrix to MaxiCode, DataBar Expanded and Telepen.

GS1 encoding

Pass (01)…(17)… element strings and get correct FNC1 encoding for GS1-128, Data Matrix and QR.

SVG, PNG, matrix

Vector output for print, PNG for images, and the raw module matrix for custom rendering.

Styling

Colors, transparent backgrounds, human-readable text, quiet zones and rotation.

Validated

Readable errors for bad input, such as letters in an EAN or the wrong length for a UPC.

Server-side too

qrgen generate on the CLI, GET /v1/generate over REST, and Python and Swift APIs.

For developers

A few lines of code

Drop in the pre-built component or build your own UI on the same engine.

Output options

Formats
SVG (with viewBox), PNG, module matrix, terminal text
QR options
Error correction L/M/Q/H, version, quiet zone
Linear options
Human-readable text, module size, rotation
Colors
Any foreground/background, or a transparent background
import { generate } from "qrgen-sdk";

const { svg } = await generate("(01)09501101530003(17)271231(10)LOT4815", {
  symbology: "data-matrix",
  gs1: true,
  scale: 6,
});
Use cases

Where teams use barcode generator

  • Shipping and GS1 logistics labels
  • Product packaging (EAN/UPC)
  • Event tickets and boarding passes
  • Wi-Fi, vCard and payment QR codes
  • Asset tags and inventory labels
  • Healthcare UDI labels

Try barcode generator now

Open the demo on your phone, or let your coding agent add it to your app.

Esc

Share this page

Barcode Generator | QRGen

Star QRGen on GitHub Add a "Powered by QRGen" badge