Utilities

QR Code Generator

Create a downloadable QR code for text or a URL.

Processed in your browser

A QR code is a square pattern of dark and light blocks that a phone camera can read. The QR Code Generator turns a piece of text or a web address into one and gives you the image as a PNG file to download.

The code is static. Your text is stored in the pattern itself, with no account, no tracking and no service in between. It does not expire, and its content cannot be changed after printing.

Your browser draws the image. The page is labeled "Processed in your browser", and the IP Tracker server never receives the text you enter.

How to make a QR code

  1. Type or paste the text or web address into the field. For a link, include https:// at the start so that scanners treat it as a web address.
  2. Click Calculate. The QR code appears under the field.
  3. Scan the code on the screen with your phone and check that it opens what you expect.
  4. Click Download PNG to save the image.

To change the content, edit the field and click Calculate again. Each run produces a new code. A code you already downloaded keeps its old content.

How to read the result

The result is one image with a Download PNG link under it.

PropertyValueWhat it means
FormatPNGAn image format that keeps the edges of the blocks sharp
SizeAbout 512 by 512 pixelsThe size of the whole image, margin included. Rounding makes some codes one pixel smaller
Quiet zoneIncludedThe blank margin around the pattern that scanners need to find its edges
Error correctionLevel MThe code still scans with roughly 15 percent of it damaged or covered
TypeStaticThe content is in the image and cannot be changed later

The three large squares in the corners are finder patterns. They tell a scanner where the code is and which way up it is. The small blocks between them hold your content together with the error correction data.

What a QR code holds

A QR code stores characters and nothing more. It becomes useful because phones look at the stored text and offer an action when they recognize its form.

ContentExampleWhat a phone usually does
Web addresshttps://example.com/menuOffers to open the page
Plain textTable 12, north terraceShows the text
Email addressmailto:info@example.comOpens a new message to that address
Phone numbertel:+12025550123Offers to call the number
Wi-Fi detailsWIFI:T:WPA;S:CafeGuest;P:blue-kettle-27;;Offers to join the network

In the Wi-Fi line, T is the security type, S is the network name and P is the password. The password sits in the code as plain text, so anyone who can scan the code can read it. That is acceptable for a guest network and a poor idea for a private one.

Contact details can go in as ordinary text, for example a name, a phone number and an email address on one line. The phone shows the text and the person can copy what they need.

How each kind of content is handled depends on the phone and the scanning app, so test the exact code you plan to use.

Why short content scans more easily

The blocks of a QR code are called modules. More content needs more modules, and the pattern grows in steps: 21 modules along each side for the shortest content, then 25, 29, 33 and so on. The image stays the same size, so more modules means each one is smaller.

Content lengthModules per sideModule size in the image
Up to 14 characters21About 18 pixels
15 to 26 characters25About 16 pixels
27 to 42 characters29About 14 pixels
43 to 62 characters33About 12 pixels
63 to 84 characters37About 11 pixels
85 to 106 characters41About 10 pixels

The steps continue beyond the table. At around 200 characters the pattern has 57 modules per side and each module is about 8 pixels wide.

The lengths are for ordinary text and web addresses in plain Latin characters, at the error correction level this tool uses. Accented letters and other scripts take more than one byte per character, so they fill the code sooner. Content made only of digits is stored more compactly and fits more.

Module size is what a camera has to resolve. Large modules can be read from further away, at an angle and in poor light. A link of 24 characters such as https://example.com/menu fits in 25 modules per side. A link of about 100 characters, with a long path and tracking parameters, needs 41 modules per side, and each module then covers less than half the area.

For print, use the shortest address that works. Remove tracking parameters you do not need, and prefer a short path on your own domain to a long one.

There is an upper limit as well. At this error correction level a QR code holds at most 2,331 bytes, and a code anywhere near that size is too dense for most uses.

Print size, contrast and testing

The downloaded image is about 512 pixels wide. Printed at 300 dots per inch, that is about 4.3 cm (1.7 inches) across, which suits a flyer or a menu. For a poster or a sign the image has to be enlarged. A QR code enlarges well as long as the edges of the blocks stay sharp, so turn off smoothing in your layout program if the result looks blurred.

Size depends on distance. A common rule of thumb is that a code should be at least one tenth as wide as the distance it will be scanned from: about 2 cm for something held in the hand, and about 30 cm for a sign read from three meters away.

Keep the white margin. The quiet zone is part of the code, and cropping it or placing text and borders against the pattern is a frequent reason why a printed code fails. Keep the contrast too. The image is black on white. Printing it in a light color, on a dark or patterned background, or under glossy lamination that reflects light makes it harder to read.

Test before you print in quantity. Scan the final artwork at its final size, from the distance people will stand at, with more than one phone. Then follow the link on the phone and check that the page loads. A typing mistake in the address cannot be corrected after printing.

Error correction gives some protection against scratches, dirt and folds. It is not a reason to skip the test.

Static and dynamic codes

A static code contains the final content. Scanning it involves nobody but the phone, and it keeps working for as long as the content itself is valid. If it holds a web address, it works until that page is moved or removed.

A dynamic code contains a short address that belongs to a QR service. The service redirects each scan to the real destination, which lets the owner change the destination later and count scans. In exchange, the code depends on that service. If the account lapses or the company closes, every printed copy stops working.

This tool makes static codes only. If you may need to change the destination later, point the code at an address on a domain you control and redirect that address yourself. HTTP Status shows what a redirect returns.

Checking where a code leads

Nobody can read a QR code by eye, which makes it a convenient way to send people to a harmful page. A sticker placed over the real code on a parking meter or a restaurant table looks no different from the original.

Most phone cameras show the address before opening it. Read it. Look at the domain name, not at the words around it, and be careful with shortened links, which hide the final destination.

If you are unsure, paste the address into URL Parser to see its real hostname, or into HTTP Status to see where it redirects without opening it in your own browser. SSL Checker shows which names the certificate of the site was issued for.

What this generator does not do

There are no styling options: no colors, no logos and nothing else that changes the look. The output is a plain black and white PNG at one size.

It does not create dynamic codes, count scans or let you edit a code after it is made. The error correction level is fixed at M.

It makes codes and does not read them. To find out what an existing code contains, scan it with a phone.

It does not check the content. A web address with a typing mistake produces a valid code that leads to the wrong place.

Frequently asked questions

Do QR codes made here expire?

No. The content is stored in the pattern, so there is nothing that can run out. The code keeps scanning for as long as the image or print is readable.

What can stop working is the destination. If the code holds a web address and that page is removed, the code still scans but leads to an error page.

Can I change the link after the code is printed?

No. A static code cannot be edited. To send people somewhere else you have to make a new code, or change what the original address does on your own web server.

How much text can a QR code hold?

At the error correction level used here, up to 2,331 bytes, which is the same number of plain English characters.

In practice far less is sensible. A code with a few dozen characters scans from a distance, while one with hundreds of characters needs a large print and a camera held close.

Why will my QR code not scan?

The usual causes are size, contrast and the margin. The code may be printed too small for the scanning distance, the colors may have been changed so that dark and light are too close, or the white border may have been cropped.

Long content is another cause, because it makes the modules small. Shorten the text and generate the code again. Reflections, folds and curved surfaces also get in the way.

Can I make a QR code for my Wi-Fi network?

Yes. Enter a line in the form WIFI:T:WPA;S:NetworkName;P:Password;; with your own network name and password. Phones that recognize the format offer to join the network.

If the name or password contains a semicolon, comma, colon or backslash, put a backslash in front of that character. Anyone who scans the code can read the password.

Does the code track who scans it?

No. A static code has nothing to track with. Scanning happens between the phone and the printed pattern. If the code holds a web address, the website sees an ordinary visit.

To count visits from a printed code, give it its own address on your site and count the requests for that address in your own statistics.

What does error correction level M mean?

QR codes store extra data that lets a scanner rebuild parts it cannot read. There are four levels, L, M, Q and H, which recover roughly 7, 15, 25 and 30 percent of the code. Higher levels survive more damage but need more modules for the same content.

This tool always uses level M.

Is the text I enter sent to a server?

No. The code is generated in your browser and the text is not sent to the IP Tracker server.