Developer Tools

QR Code Generator

Make QR codes for links, text, Wi-Fi and contacts in your browser, and download them as SVG or PNG.

By Nitin Raturi · Last reviewed

Input

How to use the QR Code Generator

Make a QR code for a link, text, Wi-Fi network or contact, entirely in your browser.

  1. Choose what the code holds.
  2. Fill in the details: a link, Wi-Fi name and password, or contact details.
  3. Pick an error-correction level.
  4. Scan the preview with your phone to check it.
  5. Download it as SVG for print or PNG for screens.

Good to know

  • Keep a light margin around the code when you print it.
  • Tap the ⓘ next to any field for a short guide to it.

Codes are made in your browser to the QR Code standard (ISO/IEC 18004).

Runs in your browser. Nothing you type is uploaded or saved in the link.

What the code holds

Choose a link or text, a Wi-Fi network, or a contact card. Phone cameras act on each type differently.

How to fill it in

  • Link or text opens or shows the text.
  • Wi-Fi lets a phone join the network.
  • Contact offers to save the person.

Link or text

The link or text to put in the code.

How to fill it in

  • Paste a full link starting with https:// so phones open it directly.
  • Shorter text makes a smaller, easier-to-scan code.

Example

https://webtools.raturi.in/ is 27 bytes and fits a version 3 code (29 × 29 modules).

Error correction

How much of the code can be damaged or covered and still scan. Higher levels make a bigger code.

How to fill it in

  • L recovers about 7%, M about 15%, Q about 25% and H about 30% of the code.
  • Use M for screens and clean prints. Use Q or H for codes that may get dirty or carry a logo.

Example

The largest code holds 2331 bytes at M, but 1273 at H.

Result

Version
3
Size
29 × 29 modules
Data
27 bytes
Mask
2

How this calculator works

  1. Step 1Turn text into bytes27 bytesYour link or text, as UTF-8.
  2. Step 2Add error correctionReed–SolomonExtra codewords let damaged codes still scan.
  3. Step 3Pick the smallest sizeVersion 3The smallest of 40 sizes that holds the data.
  4. 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.

Encoding https://webtools.raturi.in/
Size of version v
17 + 4 × v modules a side
  1. Data27 bytes
  2. Version 2 at M holds26 bytes
  3. Smallest version that fits3
  4. Mask with the lowest penalty2
  5. 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.

  • Level L2953 bytes
  • Level M2331 bytes
  • Level Q1663 bytes
  • Level H1273 bytes
Most bytes one QR code can hold, by error-correction level
  • 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.

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.

Frequently asked questions

Do these QR codes expire?

No. The code holds your link or text directly, with no redirect through another service, so it keeps working as long as the link itself works.

Is my Wi-Fi password uploaded?

No. The code is made in your browser. Nothing you type is sent to a server or saved in the page link. Anyone who scans the code can read the password, though.

Which error-correction level should I choose?

M suits most uses. Choose Q or H if the code may get scratched or dirty, or if part of it will be covered. Higher levels make the code larger.

Should I download SVG or PNG?

SVG stays sharp at any size, so it is best for print. PNG is a ready-made image for screens, messages and slides.

Why will my code not scan?

Common causes are printing it too small, removing the light margin around it, low contrast, or a very long link. Test the printed size with a phone.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 27 Oct 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release. Demand metrics remain unverified.