How to Generate a QR Code
A QR code turns a long link, a menu, or a block of text into one quick phone scan. It takes seconds to make one — but a surprising number of printed codes fail to scan. This guide shows how to generate a QR code with ToolNest's free QR Code Generator and how to make sure it actually works when printed.
Step 1: Open the QR Code Generator
Go to the QR Code Generator. No account or signup is needed, and the code is generated in your browser.
Step 2: Enter what the code should hold
Type or paste the content — most often a website link, but text works too. Double-check the link before generating: a QR code is a picture, so a typo in the URL cannot be fixed by editing text later. Copy the link from your browser's address bar instead of typing it by hand.
Step 3: Generate and download
Generate the code and download the image. Save the original file somewhere safe — if you ever need the same code again at a bigger size, generate it fresh rather than stretching a small image, which blurs the squares and breaks scanning.
Step 4: Test it before you print or publish
This step is non-negotiable. Open your phone's camera, point it at the code, and confirm it opens the right destination. Test it at the size and distance people will actually use: a code on a business card is scanned from centimetres away, while a poster code may be scanned from metres away and needs to be much larger.
Rules for a code that scans every time
- Keep it big enough: For print, do not go below about 2 x 2 cm, and go larger for posters, packaging, and anything scanned from a distance.
- High contrast only: Dark code on a light background. Light codes on dark backgrounds, or fancy colours, fail on many phones.
- Do not crop the edges: The white margin around the code (the "quiet zone") is part of the code. Cropping it off is the most common reason a printed code will not scan.
- Keep the content short: A short link makes a simpler, more forgiving code. If your URL is long, shorten it first, then encode the short version.
- Do not stretch or distort it: Always scale proportionally. A squashed code will not scan.
One thing to know before you print hundreds of copies
A standard QR code is static: the content is baked into the pattern. If the link changes later, the printed code still points to the old one. So finalise the destination first, test the code, and only then print in bulk.
Quick answers
Do people need a special app to scan? No — every modern phone camera scans QR codes directly, no app required.
Does the code expire? A static QR code itself never expires. It stops being useful only if the link it points to stops working.
Can I put a QR code on a dark background? Avoid it. Dark-on-light is the reliable combination; inverted codes fail on many scanners.