QR code generator

Make a QR code for a link, text, Wi-Fi network or contact card and download it as PNG or SVG. It never expires, and what you type stays in your browser.

QR code generator

How to make a QR code

  1. Choose what is in the code: Link or text, Wi-Fi network, or Contact card.
  2. Type the link or text, or fill in the fields. The code appears as you type.
  3. Adjust Error correction, Image size, Quiet zone and the colours if you need to. Keep dark on light and the quiet zone at 4.
  4. Read the notes under the preview, then scan the code with your own phone.
  5. Click Download PNG or Download SVG.

What this QR code generator makes

You type a link or some text and the code appears at once, ready to download as PNG or SVG. A selector switches the content to a Wi-Fi network or a contact card. Six settings change how the code looks: Error correction (Medium by default), Image size (512 pixels), Quiet zone (4 squares), Code colour (black), Background colour (white) and a Transparent background box. Downloads are named qr-code.png and qr-code.svg.

These are static codes. The text itself is drawn into the picture, so the code never expires, nobody can switch it off, and nothing is stored anywhere. The price is that a code cannot be edited later: if the link changes, make a new one. Wi-Fi and contact codes also have their own pages, Wi-Fi QR code and contact card QR code, on the same engine.

Everything you type stays in your browser. The one thing the page fetches is a small QR library from jsDelivr, pinned with an integrity hash. We opened the page in a test browser and logged all requests while we typed a private link and a Wi-Fi password. There were 15 requests, none carrying data. The only outside hosts were Google's ad and analytics services and that library, and neither the link nor the password nor the network name appeared in any request. The library is not requested until you start typing, and a copy that fails the hash check is refused with an error. Only Chromium was tested.

We read the codes back

A generator that draws a code has not shown that the code scans. We downloaded the PNG and SVG files and read them with two software decoders, OpenCV and ZXing. Our test link came back exactly from the PNG and from the SVG, at all four error correction levels. A transparent, coloured level H code decoded as PNG and as SVG. Text in Arabic, Japanese, Thai and Chinese, with accents and an emoji, decoded exactly. Six Wi-Fi codes and the contact cards did too, as the section on those below shows.

We did not scan anything with a phone. A software decoder is not a phone camera, and we cannot say how an iPhone or an Android handles a Wi-Fi code or a contact card. Test your own code with the phones that matter before you print it.

Size, version and error correction

Short content makes a small, easy code. Our link, https://gramfile.com/tools/qr-code-generator/, is version 4 with 33 by 33 squares at Medium. The same link at High is version 6 with 41 by 41. Higher error correction survives more damage but adds squares. The table on this page shows how the code grows with the text. The most one code holds is 2,953 bytes at Low, 2,331 at Medium, 1,663 at Quartile and 1,273 at High. One byte more shows "Too much text for this error correction level", hides the preview and turns off both downloads. The limit counts bytes, not characters.

The image size you type is a ceiling. Each square is a whole number of pixels, so 512 gave a 492 pixel image for our link, 100 gave 82, 300 gave 287, 1000 gave 984 and 4000 gave 3,977. The line under the preview states the real size. For our link the PNG was 8,582 bytes and the SVG 4,046. The SVG scales to any size without blurring, which makes it the better file for print.

Large codes need care. From version 10 the page warns that the code is dense. We made a version 40 code (2,331 bytes) and a version 36 code. ZXing read both, and OpenCV did not, at sizes up to 3,885 pixels, so the codes are valid and the limit lies in some readers. A phone may behave like either. Keep the text short.

Margins and colours that keep a code readable

The quiet zone is the empty border around the code. With 4 squares both decoders read our link. At 2 and at 1 both still did, and at 0 ZXing did and OpenCV did not. The page warns below 4 squares, and we agree: keep 4 for anything printed.

Dark on light is safest. Dark blue on white and red on yellow decoded in both readers. White on black decoded in ZXing and failed in OpenCV, and the page warns that some scanners cannot read it. Grey #888888 on #aaaaaa decoded in both even though the page warned that the colours are too close, so the warning is cautious. A transparent code has no background in the SVG at all. Put it on a plain light surface.

One more check runs on the text. Something like gramfile.com, a bare address, gets a note, because many phones treat it as plain text. Start it with https:// to make it open as a link.

Text in any language

Text is stored as UTF-8, so any script works. A 39-character Arabic sentence is 71 bytes and made a version 5 code of 37 by 37 squares at Medium. A 24-character Japanese sentence was 72 bytes, and a 43-character Thai one 127 bytes at version 8. Non-Latin characters take two to three bytes each, which counts against the limit above.

Wi-Fi and contact codes

For Wi-Fi you give the network name, the password and the security type: WPA, WPA2 or WPA3 together, WEP, or none. A hidden-network box is there too. The code holds a line such as WIFI:T:WPA;S:HomeNet;P:yourpassword;;. The page escapes semicolons, colons, commas and quotation marks, wraps a name or password made only of hex-looking digits in quotes, and leaves out the password for an open network. With no password and a secured network you get "Enter the Wi-Fi password, or choose No password for an open network."

A backslash is escaped like the other special characters: when we typed the password ab\cd, the code held ab\\cd, with the backslash doubled. Every case read back exactly in both decoders. We did not test it on a phone.

A contact code is a vCard 3.0 with name, company, title, phone, email and website. Our full card and one with an Arabic name read back exactly in both decoders. A card with only a company decoded in ZXing, and OpenCV missed it. A card with only a phone number shows no code and no message, because the form needs a name or a company first. As with Wi-Fi, we did not import a card on a phone.

Static codes and what you give up

Some free generators push dynamic codes. A dynamic code holds a short web address on the company's server, which forwards visitors to your link. That is how it counts scans and lets you change the link, and it is also why the code stops working if the account ends. A static code holds your link itself, so it keeps working and there is no middleman to count scans or switch it off. You give up scan counts and later edits. If you need either, use a dynamic service and accept the dependency.

Not offered here: a logo in the middle, dot styles, email and SMS types, bulk codes and dynamic codes. We did not test printed codes or any browser except Chromium.

Common jobs

A poster or flyer. Download the SVG, keep the quiet zone at 4 and print it large. A business card. Use the contact type, with a short website address. A guest network. Use the Wi-Fi type and tape the code up. A different pixel size. Set the image size here. Resizing a finished PNG in the image resizer smooths the sharp edges. A code inside a web page. The image to base64 tool turns the PNG into text. See all the image tools.

How the code grows with the text

Size of the code for a link of each length at each error correction level, from the QR library in a Chromium test. v is the version.
Text in bytesLowMediumQuartileHigh
25v2, 25 by 25v2, 25 by 25v3, 29 by 29v4, 33 by 33
50v3, 29 by 29v4, 33 by 33v5, 37 by 37v6, 41 by 41
100v5, 37 by 37v6, 41 by 41v8, 49 by 49v10, 57 by 57
200v9, 53 by 53v10, 57 by 57v12, 65 by 65v15, 77 by 77
500v15, 77 by 77v17, 85 by 85v21, 101 by 101v24, 113 by 113
1,000v22, 105 by 105v26, 121 by 121v31, 141 by 141v36, 161 by 161

Prefer desktop software?

Use a design program or a dedicated desktop generator when you need a logo in the centre, custom dot shapes, bulk codes from a spreadsheet or print-ready layouts. This page makes plain static codes only.

GramFile has download pages for IrfanView and XnView MP, two image viewers.

Frequently asked questions

Is my text or password uploaded?

No. In our test we typed a private link and a Wi-Fi password, and neither appeared in any of the 15 requests. The page fetches only its QR library.

Does the code expire?

No. It is static: the text is in the picture, and nothing is stored or switched off. The trade-off is that you cannot edit it later.

PNG or SVG?

SVG for print and anything that gets scaled, PNG for screens and documents. Our link was 4,046 bytes as SVG and 8,582 as PNG.

Which error correction level should I pick?

Medium suits most links. Higher levels add squares: our link was 33 by 33 at Medium and 41 by 41 at High.

Why is my image smaller than the size I typed?

Each square is a whole number of pixels. 512 gave 492 for our link. The line under the preview shows the real size.

Can I put a logo in the middle?

No. Only plain codes are offered.

Will it work with every phone?

We read the codes with two software decoders, not with phones. Scan yours with the phones that matter before you print.

How much can one code hold?

2,331 bytes at Medium and 1,273 at High. A short link scans far more easily than a long one.

Why does a contact code need a name?

The form requires a name or a company. A phone number alone shows nothing.