Guide · Business
How QR Codes Work (and How to Generate One)
Updated 2026-08-11 · 5 min read
A QR code is a 2D barcode that a camera can read without a dedicated gun. The black and white (or dark and light) modules are just a way to store a string: a URL, a Wi-Fi join blob, a vCard, a few lines of text. Once you see it that way, generating one is a local encoding job, not a reason to paste a guest password into the first generator a search ad offers.
QR Code Generator on DevOkk.com builds the image in the browser. No account. This page is the part most tool pages skip: what the pattern is doing, which payloads are a good idea, and why a pretty code on a poster can still fail.
The pattern is a container for a string
Under the finder squares in the corners is a grid of modules. Some of that grid is reserved for format information and error-correction bytes. The rest holds your data. More data means a larger version of the grid - more modules, finer detail, harder to scan from across a room.
Error correction is why a code can survive a coffee stain or a logo in the middle. Higher correction spends more of the grid on redundancy, which is good for print and bad for already-long payloads. If you add a logo, you are deliberately damaging the center. Raise correction and keep the logo small, or skip the logo.
Color is optional. Contrast is not. A pale grey code on white, or a red-on-orange “brand” experiment, will lose to a cheap phone in noon sun. Dark modules on a light background is the conservative pair. Invert only if you have tested the exact print.
A QR code is not encryption. Anyone who can photograph it has the string. Anyone who can reprint a sticker can point that string somewhere else.
URLs, Wi-Fi, and vCards
URL. The common case. Use the final destination, preferably HTTPS, preferably short enough that the code stays coarse. A tracking URL with twenty query parameters prints as a grey square. If you need analytics, use a short redirect you control, not a paragraph of UTM junk in the code itself.
Wi-Fi. Phones can join a network from a payload that includes SSID, security type, and password. That is convenient for a client site or a pop-up. It is also a printed password. Generate it locally. If the network is not a guest LAN, do not put the QR on a public window. Rotate the password when the job ends.
vCard. A short contact record - name, phone, email, one URL - so a scan creates a contact instead of a browser tab. Keep it short. A vCard that includes a novel of notes becomes unreadable in print. A digital profile card can carry the same idea as an image; the QR is the machine-readable twin. Details on the image side: How to Design a Digital Profile Card.
Plain text. Fine for a one-off string a human will copy. Bad as a substitute for a URL when you wanted a tap target.
Do not encode a session token, a live API key, or a document you would not tape to the wall.
Size, print, and the camera in someone’s pocket
Think about the farthest a person will stand, then make the code larger than you think. A lock-screen camera, a cracked screen protector, and a glossy laminate are the real environment - not the perfect scan in your editor.
Quiet zone: leave a margin of empty light modules around the code. Crowding it against a photo or a busy pattern is a common poster mistake.
Test before you commit to print. Scan from iOS and Android if you can. Scan at an angle. Scan in the lighting of the room, not your desk lamp. If it fails on your own phone, it will fail on a guest’s.
Download PNG for the web and most slide decks. Download SVG when you will scale in a layout app and do not want interpolation mush. Do not screenshot the preview and call it the asset.
Generate the image in the browser
Open QR Code Generator. You should not see a signup wall. Paste the payload, pick a conservative style, set error correction if you are covering part of the grid, then export.
Styling is optional. Rounded dots and colored eyes are fine if contrast holds and you re-test. A template that looks “premium” and drops the finder contrast is a bad trade.
If the job is a warehouse SKU or a retail-shaped number that a laser scanner expects, stop. That is a 1D barcode, not a QR. The two get marketed as if they were interchangeable. They are not. Scanners and humans have different habits.
What QR codes are bad at
They are bad at secrets. They are bad at payloads that change every hour unless you encode a URL you can edit on the server. They are bad at tiny print, embroidered fabric, and low-contrast craft paper. They are a weak primary navigation method on a website - use a real link.
They are also a phishing surface. A code on a parking meter or a restaurant table can be a sticker over a sticker. If the camera preview shows a domain you do not recognize, do not continue.
A generator will not register a trademark, will not host a landing page, and will not tell you if the URL 404s. Check the destination yourself.
Encode, scan once, then print
When the string is short, the contrast is dull and high, and your own phone reads it at the real distance, you are done. Open QR Code Generator and type the payload you are actually willing to publish. If you need a linear code for inventory instead, switch articles - barcodes for labels - rather than forcing a QR onto a gun that expects Code128.
Frequently asked questions
Does generating a QR code on DevOkk require an account?
No. QR Code Generator opens without registration. You type the payload, style the code if you want, and download PNG or SVG.
Is a Wi-Fi password or vCard uploaded to make the image?
The generator is built to encode in the browser. That matters for guest-network passwords and personal phone numbers. You are still publishing whatever you print or post - a QR is not encryption.
What can a QR code hold?
A URL, plain text, a phone or email string, a Wi-Fi join payload, or a short vCard are the usual cases. Capacity is thousands of characters in theory. In practice, shorter payloads scan more reliably, especially in print and bad light.
When should I use a barcode instead?
When the reader is a 1D scanner that expects Code128 or an EAN-style retail code - warehouse bins, shipping labels, product SKUs. Phones prefer QR. See How to Generate Barcodes for Inventory.
Why does my styled QR fail to scan?
Low contrast, a logo that covers too much of the pattern, a tiny print size, or a payload that made the code too dense. Raise error correction if you add a logo, enlarge the code, and test from a lock screen before you print a hundred copies.
Are QR codes safe to scan?
The code is only as safe as the destination. A sticker can point at a phishing page. Preview the URL if your camera app shows it. Do not encode a secret you cannot rotate, and do not treat a public QR as a private channel.
Related guides
More reading that links back to the same tools and workflows.
How to Generate Barcodes for Inventory and Labels
Barcode types and on-device labels.
5 min read
How to Design a Digital Profile Card
Shareable profile cards with no design subscription.
5 min read
Why Your QR Code Won’t Scan (Print, Contrast, and Payload Size)
Finder patterns, error correction, logos, and glossy lamination. Generate a scannable code in the browser - a QR is not encryption.
11 min read
Canva vs Novoresume vs DevOkk: Resume Builders Compared
Canva is a design file. Novoresume-class sites are career SaaS with accounts. DevOkk is a no-signup browser layout. When each is the right resume tool - and when you are the product.
7 min read