TR

Home / Guides / How to Create a QR Code: A Guide to Links, Wi-Fi and WhatsApp with Size, Print and Readability Math

How to Create a QR Code: A Guide to Links, Wi-Fi and WhatsApp with Size, Print and Readability Math

Updated: November 6, 2026 · AracMerkezi

▶ Open QR Code Generator

A QR code is a square code that, when scanned with a phone camera, opens a web address, text or connection details. It is often used on menus, business cards, shop windows and event posters. In this guide we explain step by step how to create a free QR code, and we also answer with math the question "why does the code get denser when the text is long, and how much room does it take in print?"

What can be shared with a QR code?

Creating a QR code step by step

  1. Decide on your content (address, text and so on).
  2. Open the tool and type the content.
  3. Generate the QR code and download it as a PNG.
  4. Test it with your phone.
  5. Only after that, print or publish it.

What is the structure of a QR code? Version and modules

A QR code is made of small squares called "modules." Its size is set by the version number: number of modules = 17 + 4 × version. Version 1 is 21 × 21, version 2 is 25 × 25, and version 4 is 33 × 33 modules. As the content gets longer, a higher version is needed. The tool on this site uses error correction level M (about 15% damage tolerance) and chooses the version by itself according to the content length. A 4-module blank margin is left around the code, and the tool adds it to the PNG.

At level M, for plain text where each character takes 1 byte, the following ranges apply. We checked these values with a different QR generator:

VersionModulesBytes (level M)
121 × 21Up to 14
225 × 25Up to 26
329 × 29Up to 42
433 × 33Up to 62
537 × 37Up to 84

Example 1: Why is a short address easier to read?

Let's compare two codes printed 2 cm wide (margin included):

  1. The address https://ornek.com/menu/yaz-2026/icecekler?masa=12&dil=tr is 56 characters; since it falls in the 43–62 byte range, it needs version 4, that is, 33 modules. With the margin, the total is 33 + 8 = 41 modules. One module is 20 mm / 41 ≈ 0.49 mm.
  2. A short address of 19 characters such as https://ornek.com/m falls in the 15–26 byte range; version 2, that is, 25 modules, is enough. The total is 25 + 8 = 33 modules; one module is 20 / 33 ≈ 0.61 mm.

With the short address, the module is about 24% larger (0.61 / 0.49 ≈ 1.24). A larger module is an advantage in a blurry print and when reading from far away. That is why pointing a long address to a short redirect address helps in print; but if the shortening service closes later, the code stops working too. The PNG the tool downloads draws each module as 8 pixels: for version 4, (33 + 8) × 8 = 328 pixels, and for version 2, (25 + 8) × 8 = 264 pixels.

Example 2: The content of a Wi-Fi QR code

A Wi-Fi code carries a standard text format that phones understand. If the network name is Ofis_5G, the password is abc;123 and the security is WPA/WPA2, the tool produces this text: WIFI:T:WPA;S:Ofis_5G;P:abc\;123;;. Notice that a backslash is placed before the semicolon in the password, because ; \, ,, : and the double quote have a special meaning in the format and are escaped. The text is 33 bytes; at level M, version 3 (29 × 29 modules) is enough. Security note: people who see the code can also get the password; so consider using a guest network in public places and changing the password from time to time. For a strong password, see the secure password guide.

Example 3: A WhatsApp link

Write the phone number with the country code, without a + or a leading 0 (for Turkey it starts with 90, for example 905321234567). The tool cleans non-digit characters (+, spaces, hyphens) itself; but it does not delete a leading 0 and does not add 90. If you type +90 532 123 45 67, it becomes 905321234567 and is accepted with 12 digits. If you write "Merhaba, bilgi almak istiyorum" as the ready-made message, the resulting link looks like https://wa.me/905321234567?text=Merhaba%2C%20bilgi%20almak%20istiyorum. This address is 70 bytes; since it exceeds 62 bytes at level M, version 5 (37 × 37 modules) is needed. As the ready-made message gets longer, the code gets denser; keeping the message short improves readability. For a more detailed walkthrough, you can also look at the WhatsApp and Wi-Fi QR code guide.

Things to watch in print

Static QR and duration

The code created with this tool carries the content directly inside it; that is, it has no expiry date and is not tied to a service. On the other hand, because the content is embedded in the code, it cannot be changed later. If the address changes, you need to generate a new code. Very long addresses make the code denser; a short address is easier to read.

Security

Before scanning a QR code you do not recognize, pay attention to the address it leads to. Fake codes stuck over a printed poster are a known scam method.

Common mistakes

  1. Not testing before printing.
  2. Putting a very long address directly in the code; the code gets denser and is not read in a small print.
  3. Leaving a leading 0 or + in a WhatsApp number; the tool cleans the + sign but does not delete a leading 0.
  4. Printing a dark code on a dark background, or a very light-colored code.
  5. Cropping the margin.
  6. Sharing the Wi-Fi password on a public poster.

When to use it and its limits

A static QR is suitable when the content will not change. If you want to track the number of scans or change the destination address later, you need a separate service that provides this; this tool does not do these things. The creation happens in your browser; your content is not sent to a server.

To try it right away, you can use the QR Code Generator, Wi-Fi QR Code and WhatsApp QR Code tools.

Frequently asked questions

Does a QR code have an expiration date?

The code produced with this tool carries the content directly, so it is not tied to a service and does not expire. However, you cannot change the content later.

What should I do if a QR code will not scan in print?

Increase the contrast, enlarge the size, keep the blank margin around the code, shorten the address and test with different phones.

How do I write the phone number for a WhatsApp QR code?

Write it with the country code, without a + or a leading 0. Example for Turkey: 905321234567.

Tools mentioned in this guide

More guides

This article is for general information only and is not legal, financial or medical advice. We are not an official institution.