Skip to content
QR Code Generator

QR Code Generator

QR codes for URLs, WiFi, vCards, email & SMS. Custom colors, PNG/SVG, fully offline.

Format
Size
Margin
Error correctionrecovery
Fill in the fields to generate a QR code.

Generated locally and never sent anywhere. Updates live.

This generator turns text, links, and structured data into QR codes entirely in your browser. Nothing is uploaded, and there are no accounts, watermarks, or expiring redirects. The preview updates live, so you can scan it with a phone camera before downloading.

Supported QR code formats

  • Text / URL: open a link or show any text.
  • WiFi: let people join your network by scanning, with SSID, password, and security type.
  • Contact (vCard): save a name, phone, email, organization, and website straight to contacts.
  • Email, SMS, and Phone: pre-fill a message or dial a number.
  • Location: open a latitude/longitude in a maps app.

How to use

  1. Choose a format: Text / URL, WiFi, Contact, Email, SMS, Phone, or Location.
  2. Fill in the fields for that format, or hit Sample to load example data, Paste to drop in clipboard text, and Clear to start over.
  3. Tune the output: size (256, 512, or 1024 px), margin (0, 2, or 4 modules), error correction (L, M, Q, or H), and foreground/background colors, or check Transparent background for overlays.
  4. Download as PNG or SVG, or use Copy PNG to put the image on your clipboard.

Worked example: a WiFi code

Pick the WiFi format and enter SSID CafeGuest, security WPA / WPA2, password espresso42. The tool encodes the standard WiFi payload:

WIFI:T:WPA;S:CafeGuest;P:espresso42;;

Scanning it on iOS or Android prompts the phone to join CafeGuest without typing the password. Special characters in the SSID or password are escaped automatically.

Colors and scan contrast

You can recolor the dark modules and the background to match a brand, but scanners need a clear luminance difference between the two. The tool estimates the contrast of your chosen colors and shows a low contrast warning when the combination may not scan reliably. The transparent background option produces a see-through PNG or SVG for placing a code on a colored flyer; just keep whatever sits behind it light.

Notes and edge cases

  • vCard line endings: contact codes join lines with CRLF (\r\n) as RFC 6350 requires, which fixes imports on picky scanners and older Android contact apps.
  • Error correction: L recovers 7% of damage, M 15% (a good default), Q 25%, and H 30%. Pick Q or H if the print may get scuffed or partially covered.
  • Location codes only generate once both latitude and longitude are valid numbers, so a half-typed coordinate never makes a broken geo: link.
  • Size, margin, error-correction, and color choices are remembered between visits; the data you type is not.

FAQ

More questions? Browse the full FAQ.

Building the link first? Percent-encode query parameters with the URL encoder and decoder before generating a URL code, or use the Base64 encoder when you need to embed binary-safe text in a payload.

Search tools

Search all Textbench tools