Published Oct 12, 2026
# How to Generate a QR Code: Step by Step
A QR code is just a compact picture of data — a URL, a contact card, a WiFi network — and generating one takes less than a minute. This guide walks a first-timer through the whole path: choosing the content type, picking the right tool, setting the error-correction level, styling the result, downloading at print quality and actually testing it. If you skip nothing, you will print a working code on the first try.
Step 1: Decide What the Code Should Contain
The content type drives everything downstream, including which tool to use. Decide the job before you open any generator:
| Content type | What it carries | Right tool |
|---|---|---|
| URL | A website or landing page | QR code generator |
| WiFi | SSID, password, encryption | WiFi QR code |
| Contact / vCard | Name, phone, email, company | vCard QR code |
| Text | A short string or note | QR code generator |
| Email / SMS | Pre-filled mail or message | QR code generator |
| Geolocation | Latitude and longitude | geolocation QR code |
| Many codes at once | One per row in a spreadsheet | Batch QR generator |
| Codes that must be changeable | A redirect you can edit later | Dynamic QR via the generator |
If you are not sure, default to URL: it is the most forgiving type, works everywhere, and can always be extended later.
Step 2: Choose a Generator
For a single code, open the QR code generator and pick the content type from Step 1. For a spreadsheet of rows, use the batch QR generator — it takes one file in and returns one ZIP of images out. Avoid random free tools that watermark your code, limit download size or require an account just to see your own image. A good tool shows you the code the instant you type, lets you download at the size you need, and asks no questions.
Step 3: Set the Error-Correction Level
The generator's default is usually M (15% recovery), which is right for most printing. Raise it to H (30%) when you will add a logo, print small (under 2 cm) or expose the code outdoors — the levels and their recovery budgets are explained in our QR error correction guide. Lower it to L only for on-screen use where the code will never be printed or handled.
Step 4: Style It (Optional)
Color and logo are optional, and both have rules. Colors: keep dark modules on a light background, and aim for a contrast ratio of 7:1 or better — the full safe-combination table is in our QR code colors guide. Logo: only at error correction H, and keep it inside the safe central zone. If the code is for a formal document or a production label, the safest choice is still black on white.
Step 5: Download at Print Quality
Download in vector format (SVG) or at 1,000×1,000 px PNG minimum for anything printed. A 25 mm code needs roughly 300 DPI, which is about 295 px; generating at 500 px and letting the printer downscale beats printing a stretched 150 px image. Keep the quiet zone — the white margin around the symbol — at least 4 modules wide; it is not decoration, it is part of the code.
Download Settings by Use
| Use | Format | Minimum size | Notes |
|---|---|---|---|
| Web or in-app display | SVG or PNG | 500×500 px | Any DPI, keep the quiet zone |
| Business card, 15 to 25 mm | SVG | 300 DPI at print size | Quiet zone of 4 modules |
| Poster or large format | SVG | Vector | Print 100 to 300 mm |
| Label roll or sticker sheet | PNG | 1000×1000 px | Flat contrast, error correction H |
Step 6: Test Before You Print
Scan your own code before it ships to a printer. Use the phone's camera, the built-in QR scanner, or our online QR scanner if the result needs to land on a computer. Check three things: the scan succeeds on the first try; the decoded content is exactly what you intended (a single dropped character in a WiFi password is invisible until someone tries to connect); and the code still scans at the size you plan to print.