CodeBox Hub
FREE

How to Generate a QR Code: Step by Step

Generate your first QR code in 5 steps: pick a content type, choose the right tool, set error correction, style it, download and test. Beginner-friendly.

# 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 typeWhat it carriesRight tool
URLA website or landing pageQR code generator
WiFiSSID, password, encryptionWiFi QR code
Contact / vCardName, phone, email, companyvCard QR code
TextA short string or noteQR code generator
Email / SMSPre-filled mail or messageQR code generator
GeolocationLatitude and longitudegeolocation QR code
Many codes at onceOne per row in a spreadsheetBatch QR generator
Codes that must be changeableA redirect you can edit laterDynamic 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

UseFormatMinimum sizeNotes
Web or in-app displaySVG or PNG500×500 pxAny DPI, keep the quiet zone
Business card, 15 to 25 mmSVG300 DPI at print sizeQuiet zone of 4 modules
Poster or large formatSVGVectorPrint 100 to 300 mm
Label roll or sticker sheetPNG1000×1000 pxFlat 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.

FAQ

How long does it take to generate a QR code?

Under a minute. Type the content, pick a level, download. The whole first-time experience, including testing, takes five minutes.

Is a QR code free to create?

Yes. We generate codes with no watermark, no plan and no account requirement. You pay for nothing until you specifically choose a paid feature like dynamic redirect analytics.

What is the first thing a beginner should do?

Decide the content type. Every other choice — tool, error level, size — follows from it, and a code generated for the wrong content type cannot be fixed without regenerating.

Should I use a static or dynamic QR code?

Static for anything fixed (contacts, WiFi, permanent URLs); dynamic for anything you may change or want to measure (campaigns, menus). The full comparison is in our static vs dynamic guide.

Can I put my logo in the QR code?

Yes, at error correction H, with the logo kept inside the central safe zone. At levels L or M a logo of any real size will eat the recovery budget and the code will start failing in the field.

What file format should I download for print?

SVG if your printer accepts it; otherwise a 1,000×1,000 px PNG minimum. The quiet zone must be included in the file — if you crop it, the code stops scanning.

My QR code will not scan. What is wrong?

Most often: the quiet zone was cropped, the print size is under the minimum QR code size of 15 mm, the contrast is too low, or a logo at a low error-correction level broke the code. Work through those in order before blaming the scanner.

Do I need to register an account to generate a QR code?

No. A working tool gives you the code and the download immediately. Registration only matters if you want to edit a dynamic code's destination later, and even then it should take seconds.

Keep reading

Contact us