← Developer

QR Code Generator

Create QR codes for links, text, Wi-Fi networks, email, phone, SMS, contact cards, and locations, then download them as PNG or SVG.

Content

https:// is added if you leave the scheme off. Shorter URLs make simpler, easier-to-scan codes.

Appearance

Content is never stored in the page link; only the type and appearance settings are.

QR code

Payload
–
Modules
–
Capacity used
–

Test the code with a phone before printing. Dark-on-light with a clear margin scans most reliably; low-contrast colors may not.

About this tool

This QR code generator builds codes for the payload types phones actually recognize: a web link or plain text, a Wi-Fi network that joins automatically when scanned, an email with subject and body, a phone number, a pre-filled text message, a vCard 3.0 contact that saves straight to the address book, and a geographic location that opens in a maps app. You choose the pixel size from 128 to 1,024, the error-correction level, the foreground and background colors, and the quiet-zone margin, then download the result as a PNG or a scalable SVG or copy the raw payload. Everything is generated on your device, so Wi-Fi passwords and contact details never leave the page. It is for anyone printing a menu, poster, business card, or router label, and for developers checking exactly what string a given QR type should contain.

How it works

Each tab assembles a text payload in the format scanners expect: a URL gets an https:// scheme if none was typed; Wi-Fi uses the WIFI:T:WPA;S:ssid;P:password;; format from the ZXing barcode project, with backslash, semicolon, comma, colon, and double quote escaped with a backslash; email builds a mailto: URL with the subject and body percent-encoded (RFC 6068); phone and SMS use tel: and SMSTO:number:message; contacts use vCard version 3.0 (RFC 2426) with CRLF line endings and escaped commas and semicolons; locations use the geo: URI scheme (RFC 5870). The payload is then encoded into QR modules by the qrcode.js library (loaded from cdnjs), which chooses the smallest symbol version that fits the data at the selected error-correction level: L recovers about 7% damage, M 15%, Q 25%, H 30%, at the cost of a denser code. The module matrix is drawn onto a canvas at the requested size with a quiet zone of 4 modules by default, and the same matrix is written as SVG rectangles for the vector download.

Frequently asked questions

Which error-correction level should I use?

M (15%) is the sensible default for screens and clean prints. Use H (30%) when the code will be small, printed on a rough surface, partly covered by a logo, or scanned from a distance, because it can lose almost a third of its modules and still read. Use L (7%) only when the payload is long and you need the smallest possible code; a long vCard at level H may not fit in a QR code at all.

Why does the Wi-Fi code not connect on my phone?

Check that the security type matches the router: modern networks are WPA/WPA2/WPA3, which all use the WPA setting; WEP is obsolete; and open networks need the None option, which omits the password field. The SSID and password are case-sensitive, and special characters such as semicolons or backslashes must be escaped, which this tool does automatically. iPhones read Wi-Fi codes with the built-in Camera app; on Android use the camera or Google Lens.

How much data fits in a QR code?

A version 40 code (177 × 177 modules) holds at most 2,953 bytes at level L, 2,331 at M, 1,663 at Q, or 1,273 at H when the content is stored as bytes, which is how URLs and text are stored. Non-ASCII text adds a 3-byte UTF-8 marker. In practice keep payloads under a few hundred characters: a 300-character URL already needs a 65 × 65 module code that is hard to scan when printed small, so use a short link where possible.

PNG or SVG: which should I download?

PNG is a fixed-size bitmap; download it at the size you will display or print (at least 300 × 300 px for a business card, 1,024 px for a poster) so it stays sharp. SVG is a vector file that scales to any size without blurring and can be recolored in a design program, so it is the better choice for print layouts and logos. Both use the same module pattern, so they scan identically.

Related tools

JSON Formatter · Base64 Encode / Decode · URL Encode / Decode · Regex Tester · Hash Generator · UUID Generator · JWT Decoder · HTML Entity Encoder · Color Converter · Password Generator · Number Base Converter · Chmod Calculator

Browse all Developer Tools, or go back to every free tool on HeroYears.