A dead simple, single-file QR code generator. Everything runs client-side in the browser — nothing you type is ever uploaded anywhere.
- Generate a QR code from any text or URL, live as you type
- Adjustable size, quiet zone (margin), and error correction level
- Custom foreground/background colors
- Download as PNG or SVG
- Fully offline & self-contained — no CDN, no network requests, no tracking
Just open index.html in a browser. No build step, no dependencies to install.
Or serve it with any static file server:
python3 -m http.server
# then visit http://localhost:8000- Push this repo to GitHub.
- Go to Settings → Pages.
- Under Build and deployment, set Source to Deploy from a branch.
- Pick your branch (e.g.
main) and the/ (root)folder, then Save. - Your generator will be live at
https://<username>.github.io/<repo>/.
QR matrix generation uses the tiny, vendored
qrcode-generator library
(qrcode-generator.min.js, ~20 KB). The canvas/SVG drawing, colors, and UI
are plain HTML, CSS, and vanilla JavaScript in index.html. There are no build
steps and no external requests.
index.html— the entire app (UI + logic)qrcode-generator.min.js— vendored QR libraryREADME.md— this file