What Is a QR Code and How to Use One (2026 Guide)

How QR codes actually work, how to scan one safely, and how to create your own free in your browser — plus the design mistakes that make codes fail to scan.

By Sam Rivera, Editor · Updated July 9, 2026 · 10 min read

QR codes went from a Japanese manufacturing tool in the 1990s to something scanned billions of times a day — on menus, packaging, posters, business cards, even gravestones. Most people know how to scan one with a phone camera, but far fewer understand how they actually work, what makes one fail to scan, or how to make a good one for their own use. This guide covers all of it: the mechanics behind the black-and-white squares, how to scan safely, how to build your own free and privately in your browser, and the specific mistakes — wrong size, low contrast, no quiet zone — that quietly make a surprising number of printed QR codes unreadable.

What a QR code actually is

QR stands for "Quick Response." It's a two-dimensional barcode — unlike the older single-line barcodes on grocery items, a QR code stores information in a grid of black and white squares that can be read in any direction, which is part of why it can hold far more data in a small space. A traditional barcode typically stores a few dozen characters; a QR code can store thousands, including full web addresses, contact details, or even small chunks of text.

The pattern isn't random. Three larger squares in three of the four corners help a scanner figure out the code's orientation instantly, no matter which way you're holding your phone. The smaller dots and patterns filling the rest of the grid encode the actual data, along with built-in error correction that lets the code still scan correctly even if part of it is smudged, torn, or covered by a logo.

How your phone actually reads one

When you point a camera at a QR code, the scanning software (built into most phone cameras since around 2017) locates those three corner squares first, uses them to correct for angle and rotation, then reads the grid pattern and decodes it back into the original data — a URL, text, or contact card. This all happens in a fraction of a second, which is why it feels instant.

Because of the built-in error correction mentioned above, QR codes come in four correction levels (L, M, Q, H), trading a bit of extra visual complexity for the ability to still scan when 7% to 30% of the code is damaged or obscured. This is exactly how brands manage to put a logo in the middle of a QR code and have it still work — the error correction fills in the gap the logo covers.

What can actually go inside a QR code

A QR code isn't only for website links, even though that's the most common use. The data type generally falls into a few categories:

TypeWhat it does when scannedCommon use
URLOpens a websiteMenus, posters, packaging, business cards
Plain textDisplays a text messageInstructions, notes, product info
Wi-Fi credentialsPrompts to join a networkGuest Wi-Fi at home or a business
Contact card (vCard)Offers to save a contactBusiness cards, event badges
EmailOpens a pre-filled email draftContact-us prompts
SMSOpens a pre-filled text messageSign-up or opt-in flows

Notice that none of these require an internet connection to decode — the QR code itself just contains the data. What happens next (like opening a URL) is the only part that needs connectivity.

How to scan a QR code

  1. Open your phone's built-in camera app — on most iPhones and Android phones made in the last several years, no separate app is needed.
  2. Point the camera at the code and hold it steady; you don't need to tap anything.
  3. A notification or banner will pop up showing the link or content — tap it to open.
  4. If your camera doesn't auto-detect it, check your camera settings for a "scan QR code" toggle, or use your phone's built-in scanner shortcut (often accessible from the lock screen or control center).

If you have an older phone without built-in scanning, a dedicated QR scanner app works the same way, though it's worth being selective about which app you install — see the safety section below for why.

How to create your own QR code (free, private, no sign-up)

You don't need a paid service or an account to make a QR code. Our QR Code Generator runs entirely in your browser — the code is generated on your own device, nothing you enter is uploaded anywhere, and there's no sign-up or watermark.

  1. Open the QR Code Generator.
  2. Enter the content you want encoded — a URL, plain text, or other supported data.
  3. Preview the generated code and adjust size if the tool allows it.
  4. Download it as an image file, ready to print or share digitally.

Because it's generated locally, this is also the safer choice if the content includes anything even slightly sensitive, like a private Wi-Fi password for guests — a browser-based tool never sends that data to a server, unlike some "free" QR generator websites that quietly log every code created.

Static vs. dynamic QR codes

There are two fundamentally different kinds of QR codes, and the difference matters if you're printing one somewhere permanent, like a sign or packaging.

Static QR codes have the destination baked directly into the code itself. They're free to generate, never expire, and don't rely on any third-party service staying online — but if the URL changes later, the printed code is now wrong and can't be updated.

Dynamic QR codes encode a short redirect link instead of the final destination, so the underlying URL can be changed later without reprinting the code. This flexibility is genuinely useful for things like a menu that changes seasonally, but it comes with a catch: dynamic codes depend on the redirect service staying online, and most dynamic QR services are paid subscriptions after a free trial. For anything permanent — a business card, a plaque, a poster you won't reprint — a static code you own outright is usually the more reliable choice.

A worked example: putting a QR code on a printed flyer

Say you're printing 200 flyers for a local event with a QR code linking to your event signup page.

  1. Finalize your signup URL first — changing it later means reprinting all 200 flyers, since a static code is the simplest and most reliable option here.
  2. Generate the code at a large size — for anything printed smaller than a business card, generate at the largest size your tool offers, then scale down carefully (see the size guidance below).
  3. Leave a clear white border (the "quiet zone") of at least 4 modules' width around the code — don't crop it tight against text or images.
  4. Print a physical test copy at the actual flyer size and scan it yourself, ideally under the lighting conditions it'll actually be viewed in, before sending 200 to the printer.
  5. Add a one-line caption near the code, like "Scan to RSVP," since an unlabeled code gets ignored far more often than one with context.

This test-before-you-commit step is the single most skipped part of the process, and it's the reason so many printed QR codes on real-world flyers and posters simply don't work.

Why QR codes fail to scan (and how to avoid it)

A surprising number of QR codes in the wild are technically broken. The usual causes:

Are QR codes safe to scan?

QR codes themselves aren't inherently dangerous — they're just a way of encoding data, the same as typing a URL by hand. The risk isn't the code, it's what it points to, and that risk has become real enough that it has a name: "quishing" (QR phishing), where a scam QR code is placed over or near a legitimate one to redirect victims to a fake login page or a malicious download.

A few habits meaningfully reduce this risk:

QR codes for Wi-Fi sharing

One of the most genuinely convenient uses of a QR code is sharing Wi-Fi access without reading a password out loud or texting it. A Wi-Fi QR code encodes the network name and password together, so scanning it connects the device automatically. This is especially handy for guests, short-term rentals, or small offices. Since a Wi-Fi QR code effectively contains your network password in plain form, it's worth generating it with a browser-based, non-uploading tool — see the guide to strong passwords for related thinking on why exposing credentials casually is worth avoiding, even in a convenient format like this.

Common mistakes people make with QR codes

Design tips for a QR code that still looks good

You don't have to settle for a plain black-and-white square. Modern QR generators support some visual customization without breaking scannability, as long as you keep a few limits in mind: colors need to stay high-contrast (a dark color on a light background, not the reverse), any embedded logo should stay small and centered so the error-correction margin can compensate for it, and rounded corners or dot styles are generally safe as long as the three corner-finder squares stay clearly square and undistorted, since scanners rely on their exact shape to orient the code.

Free tools mentioned here

Frequently asked questions

Do QR codes expire?

A static QR code — one with the destination baked directly into it — never expires on its own. A dynamic QR code, which redirects through a third-party service, can stop working if that service's subscription lapses or shuts down.

Can a QR code contain a virus?

The code itself is just data, like a URL you'd type manually — it can't run code on your device on its own. The risk is entirely in where the encoded link leads, which is why checking the URL preview before tapping through matters.

What's the difference between a QR code and a barcode?

A traditional barcode stores data in a single line of varying-width bars and holds only a small amount of information, like a product number. A QR code is two-dimensional, storing far more data, and can be read from any angle rather than needing to be scanned in a straight line.

Do I need an app to scan a QR code?

No, on most phones made since around 2017, the built-in camera app can scan QR codes natively — just point it at the code and tap the notification that appears. A separate scanner app is only needed on older devices.

How small can I print a QR code?

As a rough guide, at least 1 inch by 1 inch for anything scanned up close, like a menu or business card, and considerably larger for anything scanned from a distance, like a poster or storefront sign. Always print and test a physical copy before mass-printing.

Why won't my QR code scan even though it looks fine on screen?

The most common culprits are low contrast between the code and its background, missing the required blank margin (quiet zone) around the code, or the code being stretched non-proportionally when resized. Printing too small for the intended scanning distance is also a frequent cause.

Can I put a logo in the middle of my QR code?

Yes, within limits — QR codes have built-in error correction that allows part of the pattern to be covered and still scan correctly. Keep the logo small and centered, and use a higher error-correction level if your generator offers the option.

Are QR code generator websites safe to use?

It depends on the tool. Many free QR generator sites upload whatever you enter to their servers, which is a real concern if you're encoding something private like a Wi-Fi password. A browser-based tool that generates the code locally on your device avoids that risk entirely.