ConvertCaseTool
Guide5 min read

How to Generate a QR Code: Step-by-Step Guide

QR codes are everywhere — on restaurant menus, business cards, product packaging, and event tickets. They make it easy for anyone with a smartphone to instantly access a URL, contact information, or Wi-Fi credentials. In this guide, you'll learn exactly how to generate a QR code, what types of data you can encode, and best practices for printing and sharing.

What Is a QR Code?

A QR (Quick Response) code is a two-dimensional barcode that stores data in a grid of black and white squares. Unlike traditional barcodes that hold only a few dozen characters, QR codes can store up to 4,296 alphanumeric characters. They were invented in 1994 by Denso Wave for tracking automotive parts, but today they are used for nearly everything.

How to Generate a QR Code in 3 Steps

  1. Open the generator: Go to our free QR Code Generator
  2. Enter your data: Paste a URL, type a message, or enter Wi-Fi credentials. The QR code generates in real time as you type.
  3. Download or copy: Save the QR code as a PNG image or copy it directly. No sign-up required.

What Can You Encode in a QR Code?

Data TypeExampleUse Case
URLhttps://convertcasetool.comMarketing, business cards
Plain textHello, scan me!Notes, messages
Wi-Fi credentialsSSID + passwordGuest network access
Email addressmailto:user@example.comContact sharing
Phone numbertel:+15551234567Click-to-call
vCardContact infoDigital business cards

QR Code Best Practices

  • Keep URLs short: Shorter URLs produce simpler QR codes that are easier to scan. Use a URL shortener or encode only what is needed.
  • Test before printing: Always scan the QR code with multiple devices before printing it on physical media.
  • Maintain contrast: QR codes work best with dark modules on a light background. Avoid low-contrast color combinations.
  • Add a quiet zone: Leave a white margin of at least 4 modules around the code so scanners can detect the edges.
  • Size matters: For print, a minimum size of 2 cm x 2 cm works for close-up scanning. For posters or billboards, scale up proportionally to the expected scanning distance.

Error Correction Levels

QR codes include built-in error correction, which allows them to remain scannable even if partially damaged or obscured. There are four levels:

  • Level L (Low): Recovers up to 7% of data. Produces the smallest QR code.
  • Level M (Medium): Recovers up to 15%. A good default for most uses.
  • Level Q (Quartile): Recovers up to 25%. Good for printed materials that may get dirty.
  • Level H (High): Recovers up to 30%. Use when adding a logo overlay to the center of the code.

Related Tools

If you work with encoded data frequently, you may also find these tools useful:

Generate a QR Code Now

Create QR codes for URLs, text, and more — free, no sign-up required.

Open QR Code Generator →