PdfLuxe logoPdfLuxe

PdfLuxe › Tools › QR Code Generator

QR Code Generator

Turn any link or piece of text into a QR code and download it as a PNG, or as a print-ready PDF: type what the code should open, pick how sturdy it should be, and check the live preview. The code is generated on your own device with a free open-source library bundled with PdfLuxe itself — no account, no key, no watermark, and nothing you type is uploaded anywhere.

Text · Link → QR PNG · PDF
Open QR Code Generator — free

How to use QR Code Generator

  1. Type or paste the text or link the code should open — a web address is the most common, and it works exactly as typed, so check it once.
  2. Pick the error-correction level: M is the balanced default; higher levels make a denser code that survives more damage, lower levels make a simpler code.
  3. Choose the PNG size if you are downloading the image, and add a caption if the PDF should say what the code is for.
  4. Download the QR code as a PNG for screens and documents, or as a PDF — one A4 page, code centred — for printing. Test it with your own phone before you rely on it.

Good to know

How QR Code Generator works

QR Code Generator draws real QR codes with qrcode-generator, the widely used open-source library by Kazuhiko Arase, released under the MIT license and bundled into PdfLuxe — the code runs from this site's own files, not from a third-party service, so the tool keeps working the same way every visit. You type; the library encodes your text as UTF-8 bytes, picks the smallest QR version that fits, and the preview redraws itself on every keystroke. Nothing is sent to a server at any point: the text, the code and both downloads are all made inside this browser tab.

A QR code is a grid of modules whose density depends on two things: how much text it carries, and how much error correction is built in. Error correction is spare data woven into the pattern, letting the code still scan when part of it is dirty, torn or covered — level L restores about 7 percent of the code, M about 15, Q about 25 and H about 30. The trade is size: more text and more correction both mean more modules in the same square, so the printed code must be bigger to stay scannable. The preview states the version and module count of your code, so you can see that trade as you type.

When to use QR Code Generator

Privacy — your files stay on your device

Your files are processed on your own device, in your browser, and are never uploaded. There is no account, no sign-up and no cloud copy of your document: the work happens in this tab, and the result exists only as the file you download.

Questions people ask

Is QR Code Generator really free?

Yes. Every tool in PdfLuxe is free with no premium tier: no sign-up, no credits that run out, and no watermark on the code or the downloads.

Is what I type uploaded anywhere?

No. The code is generated inside your browser, on your own device, by a library bundled with this site. The text or link you encode is never uploaded to a server — which matters when the code carries something private, like a Wi-Fi password.

Which format should I download, PNG or PDF?

PNG for anything on a screen or inside a document — slides, web pages, invoices, messages — at the size you pick, up to 2048 pixels. PDF for printing: one A4 page with the code centred at a good scanning size, plus your caption if you added one.

What do the error-correction levels mean?

They set how much of the code can be damaged and still scan: L restores about 7 percent, M about 15, Q about 25 and H about 30. Higher levels make a denser code, so the print must be bigger. M suits most paper; H suits rough or outdoor use; L suits long text on clean, flat print.

Why will my long text not fit?

A QR code has a maximum capacity, and higher error correction leaves less room for text. Shorten the text — a shorter link is the usual fix — or step down to level L or M. The tool refuses rather than drawing a code too dense to scan.

Can I put a logo in the middle of the code?

Not in this tool — it draws standard black-on-white codes with their full quiet zone, which is the most reliably scannable form. Codes with logos depend on high error correction and careful testing; if you build one elsewhere, test it with several phones before printing.

How is this different from the QR and Barcode Scanner?

They are opposite directions. This tool creates a code from your text or link. The QR and Barcode Scanner reads codes — with your camera or from a photo — and tells you what they contain. Make a code here, then read it back there to double-check it before you print.

Will the code expire?

No. A QR code is just your text drawn as a pattern — there is no account, no redirect service and nothing to switch off, so a code made here works for as long as the link or text it carries stays valid. If the page it points to moves, print a new code for the new address.

Making a QR code that actually scans

Short text, big enough print

Two things decide whether a code scans first try: how dense it is, and how large it is printed. Density comes from the text — a long link makes a fine, tight grid — so shorten links before you encode them, dropping tracking parameters and anything the page does not need. Print size must then match the density: a simple code for a short link scans happily at two centimetres square, while a dense code carrying a long address wants four or five. The preview's module count is your guide — the more modules across, the bigger the print should be. When in doubt, print bigger and test from the distance your readers will actually stand.

Error correction, honestly explained

The four levels are a trade, not a quality setting. Higher correction does not make a cleaner code — it makes a denser one that tolerates more damage. Choose H when the code will live somewhere rough: outdoors, on packaging, under a logo, on a surface that gets scuffed. Choose L when the text is long and the print will stay clean and flat, because the simpler grid scans faster and smaller. M, the default, is the right answer for most paper on most walls. And no level rescues a code printed too small, too pale or too glossy — correction repairs damage, not bad printing.

Contrast, quiet zone and testing

A QR code is read by contrast, so keep it dark on light: this tool draws black modules on white, and the white border around the grid — the quiet zone — is part of the code, not decoration. Never crop into it, recolour the code pale, or print it over a photo. Glossy lamination and curved surfaces both fight phone cameras, so prefer matte where you can. Then do the one step people skip: print one copy, and scan it with your own phone, in the light it will live in, from the distance a stranger would. Ten seconds of testing beats a hundred unread posters.

Honest limits

QR Code Generator encodes the text you give it exactly as typed — it does not check that a link is correct, safe or still live, so read the address once before you print it, because a code faithfully sends people wherever the text points. Very long text may not fit a single QR code at the higher correction levels; the tool says so plainly rather than shrinking the code into an unscannable grid. The codes are standard black-on-white with no colours, logos or frames, and the PDF is one code centred on an A4 page — for designed posters with the code placed inside artwork, drop the PNG into Design Studio instead.

Related tools

Open QR Code Generator in PdfLuxe

Questions about this tool? Email support@pdfluxe.com.