How this calculator works
- Step 1Turn text into bytes27 bytesYour link or text, as UTF-8.
- Step 2Add error correctionReed–SolomonExtra codewords let damaged codes still scan.
- Step 3Pick the smallest sizeVersion 3The smallest of 40 sizes that holds the data.
- Step 4Choose the best maskMask 2One of 8 patterns that make the code easiest to read.
A QR code is a grid of light and dark squares, called modules. Three large corner squares tell a camera where the code is and which way up it is.
Worked example: this site’s address
https://webtools.raturi.in/ needs a 29 × 29 code at error-correction level M.
- Size of version v
17 + 4 × v modules a side
- Data27 bytes
- Version 2 at M holds26 bytes
- Smallest version that fits3
- Mask with the lowest penalty2
- Code size29 × 29 modules
A light margin of four modules around the code, the quiet zone, helps cameras find it. Downloads include it.
Reading the result
More error correction means a sturdier code, but it holds less data.
- SVGFor printSharp at any size, for posters, menus and packaging.
- PNGFor screensA ready-to-use image for slides, messages and websites.
- Link or textPhones open links and show text.
- Wi-FiGuests join without typing the password.
- Contact cardPhones offer to save the name, number and email.
- Nothing uploadedThe code is made on your device.
Related developer tools
A QR code stores text or a link. Shorter, cleaner content makes a simpler code.
To make a clean link path, use the slug generator. The URL encoder and decoder handles special characters in links.
Common mistakes
Mistake: Printing a code too small or without a margin.
Instead: Keep the quiet zone, and test the printed size with a phone.
Mistake: Encoding a very long link.
Instead: Shorter text makes a simpler code that scans from farther away.
Mistake: Putting a private Wi-Fi password in a public poster.
Instead: Use a guest network for codes others will see.
Mistake: Not testing before printing many copies.
Instead: Scan the preview with two different phones first.
Read how we test our calculators, or browse more developer tools.