How to make a QR code
- Choose what the code is for: a link, plain text, Wi-Fi, a contact, a calendar event, a map location, an email, a phone number or a text message.
- Fill in the details. The preview updates as you type.
- Optional: open Design to change the dot shapes, colors and gradient, add a frame with a caption or a logo. The page checks that the code still scans.
- Download a PNG for screens and documents, or an SVG or PDF for print. Need many? Use “Many codes at once” for a ZIP. Scan it with your phone before you print it.
What you put in decides how fine the pattern is
A QR code grows extra rows and columns of squares (modules) as the content gets longer or the error correction gets stronger. Printed at the same size, more modules means smaller ones, and small modules are what make a code hard to scan. These grids come from this tool’s encoder:
| Content | Length | Grid at M | Grid at H (with a logo) | Module width if printed 2 cm wide, at M |
|---|---|---|---|---|
| Short link (https://hanji.page) | 18 characters | 25 × 25 | 29 × 29 | 0.61 mm |
| Wi-Fi network and password | 38 characters | 29 × 29 | 37 × 37 | 0.54 mm |
| Long link with tracking parameters | 107 characters | 45 × 45 | 57 × 57 | 0.38 mm |
| Contact card (name, company, phone, email, website) | 147 characters | 49 × 49 | 65 × 65 | 0.35 mm |
Module widths include the standard margin of 4 modules on each side.
So the cheapest way to make a small code scan reliably is to put less in it. Drop tracking parameters such as ?utm_source=… if you do not need them, and link to a short page you control rather than a long deep link. A contact card with five fields needs to be printed larger than a short link to scan as easily.
Printing at the right size
There is no single official size that guarantees a scan. How far away a code still reads depends on the phone’s camera, the light and how fine the pattern is, which is what the module widths above show. Codes read from across a room or a street need to be printed much larger than one on a card held in the hand, and a code full of content needs more room than a short link. Print a test at the real size and scan it from where people will actually stand.
For print, the SVG download is the safest choice: it is drawn with shapes, so it stays sharp at any size. The PNG uses a whole number of pixels per module to keep edges crisp, so the “1024 px” option comes out a few pixels off (1023 px for the short link above). At 300 DPI a 1024 px PNG covers about 8.7 cm; for anything larger, use the SVG or the 2048 px PNG. Keep the Standard margin unless the area around the code is plain and light; the empty border helps the camera find the code.
What a Wi-Fi code contains
A Wi-Fi code is a short line of text in a format phones recognise, for example WIFI:T:WPA;S:Cafe_Guest;P:coffee2026;;. T is the security type, S the network name and P the password; an H:true part is added for a hidden network. Semicolons, colons, commas, double quotes and backslashes in the name or password are escaped automatically, so they do not break the code.
- The password is stored as plain text. Anyone who photographs the code, or opens it in a QR reader app, can read it. Put a guest network on public signs, not the network your own computers use.
- Changing the router password breaks every printed copy, so make a new code and replace the old prints at the same time.
A short check before you print hundreds
- Print one copy at the real size on the real paper. Glossy and laminated surfaces can reflect light into the camera.
- Scan it with at least two phones, ideally an iPhone and an Android, from the distance people will actually stand.
- Open the result, not just the preview: make sure the link loads the right page and that a Wi-Fi code actually joins the network.
- If you changed the colours and the tool warns about contrast, take it seriously. It warns when the contrast is below 3:1 or when the code is lighter than its background.
- With a logo, test again. The code switches to level H, but a logo with a dark edge, or one placed over a busy background, can still confuse some scanners.
Good to know
- A Wi-Fi code lets guests join without typing the password. Recent iPhones and Android phones can read it with the camera or the Wi-Fi settings; older phones may need a QR reader app.
- There is no official minimum print size. A short link makes a simpler code that still scans when printed small, so shorten long URLs before printing.
- Dark code on a light background scans best. Light-on-dark codes and pale colors fail on some phones.
In more detail
Static and dynamic QR codes
A static code stores your content directly and works without any service in between. A dynamic code stores a short link to a company’s server, which forwards visitors to your page; that lets you change the target or count scans, but the code stops working if the company switches the link off or you stop paying. Everything made here is static.
Error correction
- L: up to 7% of the code can be damaged and still read. Smallest pattern.
- M: up to 15%. A good default for most uses.
- Q: up to 25%.
- H: up to 30%. Used automatically when you add a logo.
About the name
QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries. The format itself is an open standard (ISO/IEC 18004) that anyone may use free of charge.
Frequently asked questions
Will my QR code expire?
No. Many QR sites hand out “dynamic” codes that point to a short link on their own server, then switch that link off when a free trial ends. Codes made here are static: your link or text is stored in the code itself, so there is nothing for anyone to switch off.
Can I change the link after printing?
No, because the link is part of the printed pattern. If you expect it to change, point the code at a page you control, such as a page on your own website, and update that page instead.
Can I see how many people scanned it?
No. Scans go straight from the phone to your link without passing through us, which is also why the code never expires. If you need numbers, use the analytics of the site you link to.
Will a logo stop it from scanning?
Usually not. When you add a logo, the code switches to the highest error correction, which can rebuild up to 30% of a damaged code, and the logo is kept small enough to stay within that. Always test-scan before printing.
Is my Wi-Fi password sent anywhere?
No. The code is drawn by your browser on your device. Nothing you type, including passwords and logos, is uploaded or stored.
Is it free? Do I need an account?
It is free for any use, including commercial use, with no sign-up and nothing to credit. The ads on the page pay for the site.
Guides that explain this
- QR Codes That Keep Working: Static, Dynamic and PrintWhy some free QR codes stop working, what a static code can hold, and how error correction, print size, quiet zone and colour decide whether a code scans.
Related tools
Found a bug, or wish this tool did something more? Tell Leo, who runs Hanji. Send feedback