QR Code Generator

Create a scannable QR code as you type and download it as a PNG. The QR image is fetched from Google's chart service using the text you enter, so the tool needs an internet connection and is not suited to confidential content. The codes themselves never expire.

How QR codes work

A QR (Quick Response) code encodes data as a grid of black and white modules. Three large finder patterns in the corners let a camera locate and orient the code at any angle; timing patterns calibrate module size; and the remaining area holds the data plus Reed–Solomon error-correction codewords. Because the data is encoded redundantly, a code still scans when part of it is dirty, covered by a logo or slightly damaged.

Error correction and size

Four error-correction levels trade capacity for robustness: L recovers ~7% damage, M ~15%, Q ~25%, H ~30%. Higher levels produce denser codes. Use M for most screens and print, H if you plan to place a logo in the centre or print on packaging that may get scuffed. Keep the content short — a long URL forces a dense code that is hard to scan from a distance; a short link resolves this.

Static vs. dynamic codes

This tool makes static codes: the data is embedded directly in the pattern, so a printed code keeps working with no service behind it. (Drawing the code in this tool does call an external service, as noted above, but once you have downloaded the image nothing further is involved.) Commercial “dynamic” QR services encode a redirect URL they control, which lets them change the destination and collect scan analytics — but if the service shuts down or your subscription lapses, the code dies. For most uses, a static code pointing at a URL you own is the safer choice.

How to use it

  1. Type or paste a URL or text; the code renders automatically as you type. For Wi-Fi use the format WIFI:T:WPA;S:NetworkName;P:password;; (only for networks you are happy to share with Google's service); for email mailto:; for phone tel:.
  2. Set the pixel size (64–512), foreground/background colors and error-correction level. Keep strong contrast (dark on light) for reliable scanning.
  3. Press Download PNG. (The Copy SVG button copies a link to the QR image, not SVG markup.)

Special payload formats

QR readers recognise these prefixes and offer the matching action:

https://smartdevtools.net/            open a web page
mailto:hello@example.com?subject=Hi   compose an email
tel:+14155550100                      dial a number
SMSTO:+14155550100:Hello              draft a text message
WIFI:T:WPA;S:MyNetwork;P:s3cret;;     join a Wi-Fi network
geo:37.7749,-122.4194                 open a map location

Common use cases

Settings and testing before you print

The generator has a text or URL box, Size (px) from 64 to 512, Foreground and Background colour pickers, and an Error Correction list (L 7%, M 15%, Q 25%, H 30%). Download PNG saves the picture at the chosen size. Copy SVG currently copies a link to the QR image, not SVG markup.

The most common failure is low contrast. Light foreground on a dark background (an inverted code) is not read by every scanner, and pale colours may scan poorly even if they look fine on screen. Keep a dark foreground on a light background, scan the code with at least two phones, and print a sample at final size before ordering a batch. At 256 px a short URL is easy to scan; for long content, raise the size instead of lowering error correction.

Note that this implementation requests the QR image from an external chart service rather than drawing it offline, so do not enter confidential data such as live passwords or private tokens.

Frequently asked questions

Do the QR codes expire or stop working?

No. They are static codes with the data embedded; they work as long as the content (for example the URL) remains valid.

Is the content I enter stored or tracked?

SmartDevTools does not store it, but the QR image is requested from Google's chart service using the text you enter, so that text is sent to Google. Do not enter confidential data. The finished static code has no scan tracking.

What size should I print a QR code?

A good rule is a width of at least one tenth of the expected scanning distance — about 2 cm (0.8 in) for a hand-held scan, 20 cm for 2 metres away. Add a quiet zone (blank margin) of at least four modules around it.

Can I put a logo in the middle?

Yes, if you generate at error-correction level H and keep the logo under about 25% of the code area. Test the result with several phones before printing.

Can I use dark-mode (light on dark) colours?

You can choose any colours, but many scanners expect dark modules on a light background. Test with several phones, or stay with dark on light.

Related tools

Explore all developer tools →