How to use a QR code generator to make a code that scans
You need a QR code for a menu link, a poster, a guest Wi-Fi sign or a business card. This guide shows how to make a QR code in the browser, which settings matter for scanning, and what a static code can and cannot do.
QR code generator: choose what the code holds
A QR code is just text drawn as a square pattern. A phone camera reads the pattern, recovers the text and then decides what to do with it: open a link, join a network, start an email. The QR code generator offers five kinds under ‘QR code for’: ‘Text or link’, ‘Wi-Fi’, ‘Email’, ‘Phone’ and ‘SMS’. Pick the kind that matches the action you want, because that sets the format the phone expects.
Everything the code contains is written into the pattern itself. The generator does not store your link anywhere, and there is no account behind the code. That makes the code permanent, but it also means you cannot change where it points after it is printed. If the address may change, plan for that before you print many copies, for instance by pointing to a page of your own that you can edit.
Make the code, step by step
In the QR code generator, choose a kind and fill in the fields. For a link, paste the full address, including the part that begins with https, into ‘Text or web address’. The preview appears on the right and updates with every keystroke, together with a line of facts such as the code version, the number of modules and the size in bytes.
Open ‘Size and style’ if you need to change anything, then press ‘Download PNG’ or ‘Download SVG’. ‘Copy image’ puts the picture on the clipboard in browsers that allow it. The file is called qr-code.png or qr-code.svg. Before you print, scan the result with a phone, and do it with the same kind of device your audience will use.
If the content is too long, the preview is replaced by a message that says how many bytes are possible at the current error correction level, and tells you to lower the level or shorten the text.
Wi-Fi, email, phone and SMS codes
For ‘Wi-Fi’, enter the ‘Network name (SSID)’ and the ‘Password’, then choose ‘Security’: WPA / WPA2 / WPA3 for most home and office networks, WEP for very old equipment, or ‘No password’ for an open network. Tick ‘Hidden network’ only if the network does not broadcast its name. A phone that scans the code can offer to join the network without anyone typing the password.
Because of that, a Wi-Fi code carries the password in a form anyone who photographs it can read. Use it for a guest network you are happy to share, and put the code where only your guests will see it. The same is true for any code: a code that contains a link can be scanned by everyone who sees it, so do not encode anything you would not print on the wall.
‘Email’ builds a message with the recipient, a ‘Subject’ and a ‘Message’ already filled in. ‘Phone’ makes a code that offers to call a number, and ‘SMS’ prepares a text message with the number and the message. In all three, phones usually show the action first and wait for a tap, so scanning alone does not send anything, but this is up to the scanning app.
Size, quiet zone and error correction
‘Image size’ goes from 128 to 1024 pixels, and starts at 512. The PNG is built from whole-pixel squares so that the edges stay sharp, so the actual size can be a little smaller than the number you chose. A short link at 512 gives a 495-pixel picture, because the code needs 33 squares across including its border, each 15 pixels wide.
‘Quiet zone (modules)’ is the blank border around the code, from 0 to 10 squares, starting at 4. Scanners use it to find where the code begins, so do not cut it down. The tool warns you if it is under 2. A tight crop in a layout program, or a code placed edge to edge on a colored background, removes the quiet zone, which is a common reason for failure.
‘Error correction’ offers L for about 7 percent, M for 15, Q for 25 and H for 30 percent of the code that can be damaged and still read. Higher levels make the pattern denser, because more squares are needed to hold the same content. The same 24-character link needs 25 squares across at L or M, and 29 at Q or H. Choose M for screens and clean prints, and Q or H for stickers, packaging or anything that may get scratched.
Colors and contrast
You can set ‘Code color’ and ‘Background’, tick ‘Transparent background’, or press ‘Reset colors’ to go back to black on white. A dark code on a light background is the safe choice. The page warns about light code on a dark background, which some readers cannot scan, and about low contrast between the two colors.
A transparent background only works when the code lands on a light surface; on a dark one the code becomes invisible. If you are not sure where the picture will be placed, keep the white background. Two similar mid-tone colors may look good together on screen but fail in a dim room or on a phone with a poor camera, so test both.
- Dark code on a light background, with strong contrast.
- Quiet zone of at least 4 squares, never below 2.
- Error correction M by default, Q or H for rough surfaces.
- Short content: a short link gives a simpler code that is easier to scan.
- Test with at least one phone before printing.
PNG or SVG, and how big to print
Use the PNG for screens, slides and documents. Use the SVG for print or anything that will be resized, because it is made of shapes and stays sharp at any size. The SVG keeps the colors and the quiet zone you set.
Whatever QR code generator you use, print size depends on how far away the scanner will be. A code on a business card is scanned from a hand’s length, while a poster code needs to be much larger, since a camera must get a few pixels for each square. A denser code, from a long link or high error correction, needs more room than a simple one. When in doubt, print a test at the final size and scan it from the real distance.
Shorter content helps more than any other trick. A link of 24 characters gives a 25-square code, while one of 89 characters gives a 41-square code, which has smaller squares at the same printed size.
What this tool does not do
This QR code generator only creates codes. It has no scanner, so it cannot read a code from a photo. It cannot add a logo in the middle, and it makes static codes only, which means there are no scan statistics and no way to change the destination later. It does not shorten links. The longest content it accepts depends on the error correction level: about 2,953 bytes at L, 2,331 at M, 1,663 at Q and 1,273 at H.
The code is built in your browser, and the text, link or password you type is not uploaded. Only your style choices, such as size and colors, are remembered in this browser; the text, link or password you type is not saved.
Questions and answers
How do I make a QR code for a link?
Keep the kind on ‘Text or link’, paste the full web address and the code appears at once. Download it as PNG or SVG.
How do I make a QR code for Wi-Fi?
Choose ‘Wi-Fi’, enter the network name and password, and pick the security type. Anyone who sees the code can read the password, so show it only to people you trust.
Does a QR code expire?
No. The code only holds your text, so it keeps working as long as what it points to still exists. It cannot be edited afterwards, because no account or server is behind it.
Which error correction level should I choose?
M suits most screens and clean prints. Choose Q or H if the code may be scratched, but expect a denser pattern.
Why will my QR code not scan?
Check for a dark code on a light background, a quiet zone of at least 4 squares, enough printed size and short content. Then test with a phone.
Should I choose PNG or SVG?
PNG for screens and documents, SVG for print and large formats, since it stays sharp when enlarged.
More guides
- How to count characters and words correctlyLearn what characters, characters without spaces, words, lines and bytes each measure, why programs disagree, and how to fit forms, titles and captions.
- Word counter: how to count words in a text and meet a word limitUse a word counter to count words in text, see what counts as a word, handle hyphens, numbers and unspaced scripts, and fit a word limit or time slot.
- How to extract text from image files and get clean, usable textHow to extract text from an image or a scanned PDF page with OCR: pick the language, prepare the picture, read the result, fix mistakes and save a TXT file.