Language: English

tools / qrcode

qrcode/

Generate QR codes from text or links as you type. Adjust error correction, size, margin and colors, and download PNG / SVG.

Content

QR code

Enter some content to preview it here

What is a QR code

A QR code is a matrix code specified in ISO/IEC 18004; versions 1 to 40 have 21 to 177 modules per side. This page turns text into UTF-8 bytes, encodes them in byte mode, picks the smallest version that fits, offers four error-correction levels L, M, Q and H, and downloads PNG or SVG.

How it works: data codewords plus error-correction codewords

Text is first turned into UTF-8 bytes, and Reed–Solomon error-correction codewords are added after the data according to the chosen level. The higher the level, the larger the share of error-correction codewords: counted over all codewords, L, M, Q and H can restore about 7%, 15%, 25% and 30% of damage.

The more error-correction codewords, the less data fits in the same version. At version 40 in byte mode the four levels hold at most 2953, 2331, 1663 and 1273 bytes; when the content exceeds the limit of the chosen level, this page says so and does not generate a code.

The encoding library picks the version automatically: more content means a higher version, and each step up adds 4 modules per side. Everything is generated in the browser, and the content you enter is not sent to any server.

Sources

FAQ

How do I choose between error correction levels L, M, Q and H?

The default M is fine for most cases. Choose Q or H for something that will be printed and may get dirty or partly covered, and L when there is a lot of content and you want a less dense code.

It says the content is too long. How much text can it hold?

The limit counts bytes, not characters: at most 2331 bytes at level M and 2953 at level L. Content is encoded as UTF-8, where a letter or digit takes 1 byte and a Chinese character takes 3, so level M holds about 770 Chinese characters. Digits are also counted as bytes, as the more compact numeric mode is not used. Lowering the level or shortening the content solves it; the "Version N" next to the QR code title is its size, which grows with the content up to 40.

What if the generated QR code won't scan?

Look at the notice below the input box first. The page checks four common causes: a size so small that each module is under 2 pixels, low contrast between foreground and background, a light code on a dark background, and a margin under 2 modules. The fixes are a larger size, a dark code on a light background, and keeping the margin at the default 4. Long content makes a dense code, and shortening it or lowering the error correction level makes the code sparser and easier to scan.

What's the difference between the PNG and SVG downloads, and can the background be transparent?

PNG is a raster image whose width and height are exactly the size you set, which suits web pages and documents. SVG is a vector image that stays sharp when enlarged or printed, which suits posters and print. Both include the background color and transparency is not supported; to change the base color, change the "Background" color. The downloaded files are always named qrcode.png and qrcode.svg.

Can I put a logo in the middle of the QR code?

There is no logo feature here. If you download the code and place a logo over the middle yourself in an image editor, set the error correction level to H and cover only a small area in the center. Level H tolerates about 30% damage at most, and a logo that is too large makes the code unreadable, so scan it with a phone once you are done.

How do I make a QR code for WiFi, a phone number or an email?

The tool simply encodes the text you enter as it is, and what the phone does after scanning depends on the format of that text. Write WiFi as WIFI:T:WPA;S:network-name;P:password;; (use T:nopass when there is no password), a phone number as tel:number, an email as mailto:address, and start web addresses with the full https://. If the network name or password contains any of \ ; , : put a backslash in front of that character.

Does the QR code expire? Is my input uploaded?

It does not expire, and nothing is uploaded. The content is encoded directly in the pattern and never passes through a server, so the code keeps working as long as the link inside it still opens. Generation happens in your browser, the encoding library is served with the page, and the text and links you enter are not sent to anyone.

What size and margin should I use?

The defaults of 320 pixels and a margin of 4 modules usually need no change. The size can be 64 to 2048 and the margin 0 to 16, and values outside that range are reset to the nearest limit. The size is the total width of the whole image including the margin; the more content, the smaller each module, and a note appears when a module falls under 2 pixels. The margin is the blank border around the code that scanners use to find its edges; a margin under 2 modules triggers a note, and keeping 4 is recommended.