A QR code is a two-dimensional barcode that stores up to several thousand alphanumeric characters as a square pattern of black modules on a white background, which any modern smartphone camera can decode in under a second. To generate a QR code, you simply encode your target text, URL, Wi-Fi credential, or contact card into this pattern and export it as an image file. The fastest way to do this is to paste your content into the QR Code Generator, where the code is drawn live in your browser, ready to download as a PNG in a single click without uploading anything to a remote server.

QR codes solve a long-standing sharing problem. Typing a long URL on a phone keyboard is slow and error-prone, while shortlinks break over time and can be hijacked. A scanned QR code delivers the exact destination the creator intended, which is why restaurants print them on menus, hotels place them in rooms, and event organizers attach them to badges. Because the QR specification is an open ISO standard, any scanner app or built-in camera can read the codes you produce today, including those printed years from now.

how to generate qr code
how to generate qr code

What You Can Encode in a QR Code

The QR specification accepts four main data "modes," and understanding them helps you pick the right setting before you generate your code.

  • URL: the most common use; anything from a homepage to a deep link inside a mobile app.
  • Plain text: free-form strings such as serial numbers, coupon codes, meeting notes, or short messages.
  • Wi-Fi login: a structured payload (SSID, password, encryption type) that auto-joins a phone to a network when scanned.
  • vCard / contact card: name, phone, email, and address fields that prompt the phone to save a new contact entry.

Each mode carries a different maximum character count because the numeric, alphanumeric, byte, and kanji encoders compress data with different efficiency. A short URL fits comfortably in a low-version QR code, while a long vCard may need a higher version with a denser module grid to hold everything.

Choosing an Error Correction Level

Error correction is what makes QR codes survive wrinkled flyers, coffee stains, scratched packaging, and the inevitable logo placed in the middle. The standard defines four levels, often labeled L, M, Q, and H, with H holding roughly 30 percent redundant data and L holding only about 7 percent. The trade-off is straightforward: higher correction means a denser pattern that needs a slightly larger print size to stay scannable.

LevelRecovery CapacityBest Use
L (Low)~7%Clean digital screens, large outdoor signs
M (Medium)~15%Default for menus, flyers, business cards
Q (Quartile)~25%Industrial labels, slightly textured surfaces
H (High)~30%Codes with a center logo or small print runs

For most everyday jobs, leaving the tool at the Medium default is the right call. Bump it up to High only when you plan to overlay a branded logo on top of the modules, since the logo will cover roughly 15 to 25 percent of the pattern.

Generate a QR Code Step by Step

  1. Open the QR Code Generator directly in your browser; no account, extension, or install is required.
  2. Click into the input box and type or paste your content. A plain URL such as https://example.com/menu works as-is, while a Wi-Fi payload looks like WIFI:S:GuestNet;T:WPA;P:welcome2025;; and a vCard begins with BEGIN:VCARD.
  3. Watch the preview update in real time on the right side of the panel. As soon as you stop typing, the square refreshes to encode your current text.
  4. Pick an output size that matches how you plan to distribute the code. Use the larger export for printed business cards and labels, and the smaller one for screen use in presentations or email signatures.
  5. Set the error correction level if you have a specific need: M for general use, H when you intend to place a logo on top.
  6. Hit Download PNG to save the image. The file lands in your default downloads folder ready to drag into a layout, email, or print job.
  7. Scan the saved file with your own phone to confirm it opens the right page or joins the right network before distributing it.

Because every step happens locally in JavaScript, the URL or password you paste never leaves your device, which is particularly valuable when the QR code holds a Wi-Fi key you do not want logged on a third-party server.

A perfectly encoded code can still fail in the real world if it is printed too small, placed on a curved surface, or stuck behind glare. Use the following rules of thumb whenever you generate a QR code intended for physical distribution:

  • Size: aim for at least 1 cm (about 0.4 inches) of module width for every meter of expected scanning distance, so a menu meant to be scanned from across a table can be much smaller than a poster scanned from five meters away.
  • Contrast: keep the foreground dark and the background light. Inverted or coloured codes can still scan, but they require careful testing with several phone models.
  • Quiet zone: leave a blank border roughly four modules wide on every side; cropping the margin is one of the most common reasons codes stop reading.
  • Surface: flatten the area before pasting. Codes that wrap around bottles or sit on fabric can blur and fail, while rigid cards, packaging, and window cling stay readable for years.

QR Codes Versus 1D Barcodes

Both are machine-readable patterns, but they serve different jobs. A traditional 1D barcode, like the EAN-13 mark on groceries, stores roughly 12 to 13 numeric characters in a single row and is read by a laser scanner at checkout. A QR code stores hundreds or thousands of characters in two dimensions and is decoded by a camera, which is why almost every modern phone can read it without extra hardware.

Feature1D Barcode (UPC, EAN, Code 128)QR Code
Data directionOne row of barsTwo-dimensional grid of modules
Typical capacity12 to 20 charactersUp to several thousand characters
Scanner requiredLaser or line-cameraAny smartphone camera
Common useRetail SKUs, shipping labelsMarketing, menus, Wi-Fi, payments
Best generatorBarcode GeneratorQR Code Generator

If you need a code that goes on retail packaging and must scan at the supermarket checkout, generate a 1D barcode instead. For marketing collateral, menus, Wi-Fi sharing, and contact cards, a QR code is the right format.

Testing and Troubleshooting

Always scan the final file before printing a large run. The fastest test is to open the saved PNG on your phone's screen and point another phone's camera at it, although for a true field test print one copy on plain paper first. If the code does not scan, walk down this short checklist:

  • Confirm the printed contrast is dark-on-light with no coloured tint or shadow covering the modules.
  • Check that nothing important has been cropped off the quiet zone around the square.
  • Make sure the content is correct: a typo in a Wi-Fi password or a missing https:// on a URL is a surprisingly common cause of "broken" codes.
  • Try a larger export size or higher error correction level if the pattern looks too dense at print resolution.

Beyond the Single Code: Practical Use Cases

Once you know how to generate a QR code, the practical applications line up quickly. Restaurants link it to a digital menu that they can update without reprinting the table card. Real estate agents stick one on a yard sign pointing to a full listing with photos. Trade show booths print QR codes at the base of every demo screen so visitors can email themselves a brochure. Schools print parent-teacher conference codes that open a calendar booking page. Each scenario leans on the same feature: scanning replaces typing, so the visitor gets to the exact destination with a single tap of the shutter.

For teams that also manage inventory, you can pair QR codes with the Barcode Generator to cover both physical stock tracking and consumer-facing links from the same workspace. If you need to drop a code into a Word document for a printed handout, the workflow described in Create Barcodes in Word Easily with a Free Online Generator works the same way for QR codes: generate the image, save the PNG, then insert it as a picture. For a deeper look at the underlying specification behind these patterns, the QR code entry on Wikipedia covers the history, encoding modes, and recovery algorithm in detail.

For a deeper look, see Build UTM Links in Your Browser Without Spreadsheets.