QR Code Generator

QR Code Generator

Select content type, enter data, download as PNG or SVG. Free, instant, no signup required.

InstantFreePNG + SVGCustom Colors
Content Type
Colors
Foreground
Background
Download Size
Error Correction
QR Code Types
URL, WiFi, vCard, SMS, Email
URL
https://example.com
WiFi
WIFI:T:WPA;S:MyNet;P:pass123;;
vCard
BEGIN:VCARD...
SMS
smsto:+1234:Hello
Email
mailto:a@b.com
Error Correction
L 7% / M 15% / Q 25% / H 30%
L (7%)
Best for clean environments — smallest QR size
M (15%)
Standard choice — balanced size and resilience
Q (25%)
Good for print — handles minor damage well
H (30%)
Maximum durability — supports logo overlay
Best Practices
Size, testing, print tips
Minimum print size
At least 2cm x 2cm (0.8in) for reliable scanning. Larger is always better.
High contrast
Dark modules on light background. Avoid low-contrast color combinations.
Test before printing
Scan with at least 2 different phones and QR apps before mass printing.
Quiet zone
Keep white space around the QR code — at least 4 modules wide.

What Is a QR Code?

A QR code (Quick Response code) is a two-dimensional barcode invented by Denso Wave, a subsidiary of Toyota, in 1994. Originally designed to track automotive parts on assembly lines, QR codes rapidly became one of the most widely used encoding technologies worldwide. Unlike traditional barcodes that store data in a single horizontal dimension, QR codes store information both horizontally and vertically, enabling them to hold significantly more data in the same physical area.

A single QR code can store up to approximately 3,000 alphanumeric characters or over 7,000 purely numeric characters. This means you can encode a long URL, a complete vCard contact record, WiFi login credentials, or even a short paragraph of plain text. This versatility is why QR codes appear everywhere from product packaging and restaurant menus to airline boarding passes and mobile payment systems.

How QR Codes Work

When you create a QR code, the input data undergoes a multi-step encoding process. First, the data is converted into a binary bit stream using the appropriate encoding mode (numeric, alphanumeric, byte, or Kanji). Then, Reed-Solomon error correction codewords are appended to ensure the code can be scanned accurately even if part of it is damaged or obscured.

The physical structure of a QR code contains several critical components. Three large squares at three corners (called Finder Patterns) help the scanner identify the location and orientation of the code. Smaller squares (Alignment Patterns) correct for geometric distortion caused by perspective or surface curvature. Striped lines (Timing Patterns) establish the coordinate grid for individual data modules. The remaining area holds the actual data and error correction codewords, arranged in a complex zigzag pattern.

A phone camera or scanner app captures an image of the QR code, analyzes the Finder Patterns to determine perspective, then reads each module (black or white dot) in the correct sequence to reconstruct the original data. Thanks to Reed-Solomon error correction, this process succeeds even when up to 30% of the code area is covered or damaged (at error correction level H).

QR Code Types and Use Cases

QR codes support multiple data formats, each serving a distinct purpose:

  • URL: The most common type. When scanned, the user is redirected to the encoded web page. Widely used for marketing materials, product packaging, business cards, and advertising posters.
  • WiFi: Encodes the network name (SSID), password, and encryption type. When scanned, the phone automatically connects to the WiFi network without manual password entry. Ideal for cafes, hotels, coworking spaces, and offices.
  • vCard (Contact): Contains complete contact information including name, phone number, email, address, and website. When scanned, the contact is automatically saved to the phone. A perfect replacement for traditional paper business cards.
  • SMS: Automatically opens the messaging app with a pre-filled phone number and message body. Useful for customer service hotlines and marketing campaigns.
  • Email: Similar to SMS but opens the email client with pre-filled recipient address, subject line, and body text. Convenient for collecting feedback, support requests, and inquiries.

QR Code Size and Error Correction Guide

QR codes have four error correction levels, each determining what percentage of the code data can be damaged while remaining readable:

  • L (Low - 7%): Produces the smallest QR code, best for digital screens and clean environments. Choose this level when you need the minimum QR size and there is no risk of physical damage.
  • M (Medium - 15%): The default and most balanced choice. Suitable for most use cases, from standard print materials to digital displays.
  • Q (Quartile - 25%): Recommended for printed materials that will be handled frequently or used in environments where scratching, dirt, or wear is expected. Suitable for restaurant menus, outdoor posters, and warehouse labels.
  • H (High - 30%): The highest error correction level, allowing a logo or image to be placed over the QR code while maintaining readability. Produces the largest QR code at this level.

For physical printing, the minimum recommended size is 2cm x 2cm (approximately 0.8 inches). For posters or signs meant to be scanned from a distance, use this formula: minimum size (cm) equals scanning distance (cm) divided by 10. For example, if users will scan from 1 meter away, the QR code should be at least 10cm across.

Best Practices for QR Code Design

  • Maintain high contrast: Dark modules on a light background is the standard. Avoid dark backgrounds with light modules because many scanners struggle with inverted patterns. If customizing colors, ensure a minimum contrast ratio of 4:1 between foreground and background.
  • Preserve the quiet zone: Each side of the QR code needs at least 4 white modules of empty space so scanners can distinguish the code from its surroundings. ZestLab’s tool automatically adds this quiet zone.
  • Test before deploying: Always scan your QR code with at least two different devices (iPhone and Android) and two different scanner apps. Also test in low-light conditions to ensure reliability.
  • Use short URLs: The longer the URL, the more complex and harder to scan the QR code becomes. Use a URL shortener or create a short redirect on your own domain for cleaner, smaller codes.
  • Choose the right format: Use SVG for high-quality printing (it scales infinitely without pixelation). Use PNG for online sharing and embedding in digital documents where raster format is expected.
  • Add a call-to-action label: Place instructional text like “Scan to view menu” or “Scan to connect WiFi” next to the QR code. Not everyone instinctively knows what a QR code does or why they should scan it.

Frequently Asked Questions

Other Tools You Might Like

More in Generators

About Generators

Developer tools automate the repetitive parts of software work: formatting JSON, encoding/decoding Base64, decoding JWTs to verify token claims, generating UUIDs, formatting XML, diffing configurations. These aren't glamorous tasks, but they're the friction points that eat 10-15 minutes multiple times a day — adding up to hours weekly. Running them in a clean browser tab beats wrestling with CLI dependencies or IDE extensions that might ship your private data to a third party.

Why it matters

Fast, client-side developer tools fundamentally matter because they're used with sensitive data. JWT tokens contain user identity. Base64 payloads might encode API keys. JSON dumps include customer records. If a 'developer tool' sends your input to a server to process, you've just leaked production secrets. ZestLab's dev tools run 100% client-side with no network calls after page load — what you paste stays in your browser.

Privacy and safety

All developer tools here execute in-browser using pure JavaScript. There's no 'decode server' or 'format API' — your JWT, your JSON, your encoded payload is parsed by code running on your laptop. Verify this yourself with browser DevTools → Network tab: you'll see zero outbound requests when using any tool. That's a standard we hold because dev tools handle secrets.

Best practices

  • Never paste production JWT or API tokens into ANY online tool without verifying it runs client-side (check the Network tab)
  • Use browser private/incognito mode for one-off decoding of sensitive payloads
  • Bookmark tools you use daily — ZestLab tool URLs are stable and don't require accounts
  • When formatting JSON with secrets for team review, redact credentials before sharing the formatted output