QR Code Generator: Text and URLs to PNG

Type a URL or a line of text and download it as a 256 × 256 pixel black-and-white PNG QR code. The code is made with the open-source qrcode library.

Runs in your browser: your files and text are not uploaded. Free, no account needed.

Last updated: · Reviewed by the QuickTooly Team

Settings used for every code

  • Error correction level M: about 15% of the code can be damaged or covered and it still scans. There is no option to choose L (7%), Q (25%) or H (30%), so this generator is not suited to codes with a logo placed over the middle.
  • Size: the library picks the smallest QR version (21 × 21 up to 177 × 177 modules) that fits your text. Longer text means more, smaller modules in the same 256-pixel image.
  • Margin: 2 modules of white around the code. The QR standard asks for 4, so leave extra white space around the image when you place it on a colored background.
  • Colors: black modules on white. Most scanners need dark modules on a light background.

How much text fits

At level M the largest QR code holds 2,331 bytes of general text, 3,391 characters in alphanumeric mode (digits, upper-case A to Z, space and $ % * + - . / :) or 5,596 digits. Lower-case letters, as in most URLs, use byte mode, and characters outside ASCII take 2 to 4 bytes each. Long content works but makes dense codes that are hard to scan from a distance, so shorten long URLs where you can. If the text is too long, an error message says so and no code is made.

Wi-Fi, phone and email codes

The input is a single line, which is enough for formats that phones recognize:

  • Wi-Fi: WIFI:T:WPA;S:MyNetwork;P:MyPassword;;
  • Phone call: tel:+15551234567
  • Email: mailto:name@example.com

A vCard contact needs several lines, so it cannot be entered here. The generated codes are static: the content is stored in the image itself, there is no redirect, and the code keeps working as long as the URL it points to does.

Printing

The PNG is 256 pixels wide, enough for screens and small prints. For larger prints, scale it up with nearest-neighbor (no smoothing) so the module edges stay sharp, and test the printed code with more than one phone before you use it.

Frequently Asked Questions

Why is no QR code generated?

If the input is empty, nothing is generated. If the text is too long to fit in a QR code at error correction level M, an error message says so. Shorten the text and try again.

Can I change the colors or add a logo?

No. The tool always makes a black code on white with level M error correction. A logo needs level H, which is not available here.

Related Tools

  • Barcode Generator - for one-dimensional codes such as EAN-13, UPC-A and Code 128, used on products and labels.
  • Image to Base64 - turn the downloaded PNG into a data URI to embed it directly in HTML or an email template.