QR Code Generator
Turn any link, text, or contact detail into a scannable QR code. Customize the size, colors, and error correction, then download a crisp PNG or vector SVG — all generated privately in your browser.
Your QR code will appear here
Your QR code is generated entirely in your browser — the text you enter is never uploaded or stored on any server.
Understanding the QR Code Generator
The QR Code Generator turns any URL, plain text, contact line, or short message into a scannable QR code right in your browser. Adjust the pixel size, error-correction level, foreground and background colors, and the quiet-zone margin, then download a crisp PNG for screens or a vector SVG that prints sharp at any scale. It is built for marketers, shop owners, event organizers, and anyone who wants a quick code for a poster, menu, business card, or landing page. Because everything runs client-side in JavaScript, the text you enter is never uploaded or stored — your links and data stay completely private.
How it works
When you type, the tool encodes your text into a QR matrix using the open-source 'qrcode' library, loaded on demand in the browser. Your input is converted to a bit stream, padded, and protected with Reed–Solomon error-correction codewords at your chosen level (L, M, Q, or H). The library arranges those bits into a grid of black and white modules, adds finder and alignment patterns, and applies a mask for readability. For the on-screen preview and PNG it renders to a canvas and exports a data URL at your selected width; for SVG it emits scalable vector paths. Your colors and margin are applied during rendering.
Worked example
Suppose you enter https://topopentools.com, set the size to 400 px, choose error-correction level M, keep the foreground black (#000000) on a white background (#ffffff), and leave the margin at 2. The preview updates instantly. Click Download PNG to save a 400×400 raster image for a slide or email, or Download SVG to get a resolution-independent vector for a printed flyer. If you later raise the level to H, the code adds more redundancy so it still scans even if part of it is smudged or covered by a logo.
Tips & common mistakes
- Keep strong contrast — a dark foreground on a light background scans far more reliably than light-on-dark or low-contrast color pairs.
- Use error-correction level H if you plan to place a logo over the code or print it where it might get scuffed; use L only when space is tight and the surface is clean.
- Download SVG for anything printed large (posters, packaging, banners) so the code stays razor-sharp at any size.
- Do not shrink the margin to 0 — the surrounding quiet zone is what lets scanners lock onto the code.
- Shorter URLs make denser, easier-to-scan codes; use a link shortener for very long links before generating.
- Always test the finished code with a couple of phones before printing a large batch.
Related tools
How to Use This Generator
- 1Paste your URL or text into the box.
- 2Adjust the size, colors, and error correction to suit your use.
- 3Download as PNG or SVG and use it anywhere.
Frequently Asked Questions
Can I download the QR code as SVG?
Yes. You can download your QR code as a PNG image or as a scalable SVG vector. SVG stays sharp at any size, which is ideal for printing on posters, packaging, or large signage.
Can I change the QR code colors?
Absolutely. You can set both the foreground (the dots) and background colors. For reliable scanning, keep strong contrast — dark foreground on a light background works best.
Is the QR code generated locally?
Yes. Everything happens inside your browser using JavaScript. The text or URL you enter is never sent to or stored on any server, so your data stays private.