4bf618efd053535ed07f70521b344bffc9b2112d
OnlyQR - SVG QR Code Generator
A simplified, SVG-only QR code generator based on QRCode.js. This lightweight library generates clean, scalable SVG QR.
Try it out at OnlyQR Demo.
Embedding via URL
Everything after the domain becomes the QR code content, and the page shows only the QR code, scaled to fit:
<iframe src="https://onlyqr.0n8.de/hello-world" width="200" height="200" style="border:0"></iframe>
<iframe src="https://onlyqr.0n8.de/https%3A%2F%2Fexample.com?color=ff0000" width="200" height="200" style="border:0"></iframe>
?color=takes a hex value without#(e.g.ff0000) or a CSS colour name. The default is004c93.- Use
encodeURIComponent(text)for the path, so that?,#,%and/in your text come through unchanged. - Any other query parameters are treated as part of the text.
- This is handled by
404.htmlon the static host, so it only works in iframes (not<img src>), and the HTTP status is 404.
Changes from Original QRCode.js
- Removed Canvas and Table rendering methods
- SVG is now the default and only rendering method
- Simplified codebase with reduced file size
- Modern web interface included
- Automatic sizing based on QR code complexity
Credits
Based on QRCode.js by davidshimjs
Languages
JavaScript
74.7%
HTML
13.8%
CSS
11.5%