Skip to content
PrimeForgeTools
Theme: system

Encodingversion v1.0.0

QR Code Generator

An ISO/IEC 18004 encoder written from the specification: versions 1 to 40, error correction L/M/Q/H, numeric, alphanumeric and byte modes. Type a payload and the symbol appears here; pipe one to curl and a scannable code is drawn in your terminal, quiet zone and polarity both correct.

Error correction

M (~15% recoverable) is the general-purpose level and the default. L (~7%) fits more data in a smaller symbol but leaves less margin for a code read at an angle. Q (~25%) and H (~30%) are for codes that will be printed, laminated or overprinted with a logo.

Auto picks the smallest symbol that fits. Pinning a version keeps a series of codes the same physical size.

Terminal
Half blocks, no colour. On a dark background pass ?invert=on.

From the command line

The same URL answers a POST with a scannable code drawn in half-block characters, quiet zone included, ready for a phone held up to the screen. Use printf, never echo: the body is encoded exactly as received, so echo’s trailing newline ends up inside your URL.

printf 'https://tools.primeforge.app' | curl -fsS --data-binary @- https://tools.primeforge.app/qr
printf 'hi' | curl -fsS --data-binary @- 'https://tools.primeforge.app/qr?format=text&invert=on'
printf 'WIFI:T:WPA;S:office;P:hunter2;;' | curl -fsS --data-binary @- 'https://tools.primeforge.app/qr?ec=q&format=svg' > qr.svg