oktools

QR Code Generator

Create QR codes for links, plain text, Wi-Fi logins, contact cards, calendar events, emails, phone numbers, text messages and map locations, then download them as PNG or SVG. The code is generated in your browser — nothing you enter is sent anywhere.

Content

Opens the link in the browser.
https:// is added if you leave it out.

QR code

Nothing to encode yet

Fill in the form, or press the lightbulb for an example.

Appearance

#000000
#ffffff

A QR code only ever stores text. What makes a phone offer to join a Wi-Fi network or save a contact is that text following a known format — WIFI:, mailto:, tel:, SMSTO:, geo:, a vCard or an iCalendar event — which this tool writes for you and shows under Encoded content.

The encoder picks the most compact mode on its own: numeric for digits only, alphanumeric for uppercase letters, digits and $%*+-./: and spaces, and UTF-8 bytes for everything else. It then uses the smallest of the 40 QR versions the content fits in, and the mask pattern that is easiest for scanners to read.

How it works

A QR code stores only a string, so each content type has a builder that writes the right one. A web address gains https:// when it has no scheme. A Wi-Fi login becomes WIFI:T:…;S:…;P:…;; with its reserved characters backslash-escaped and an all-hex name or password quoted so a reader does not take it for a key. Email becomes mailto: with a percent-encoded subject and body, a phone number tel:, a text message SMSTO:, a contact a vCard 3.0 with CRLF line endings, a location geo:lat,lng or a Google Maps link. Input that would scan and then misbehave, such as a five-character WPA password, is refused instead.

The encoder is written from ISO/IEC 18004 itself. It picks the most compact mode the text allows — numeric for digits only, alphanumeric for capital letters, digits, space and $ % * + - . / :, otherwise UTF-8 bytes — then the smallest of the forty versions, 21 to 177 modules a side, that holds the bits at the chosen error correction level. The data is padded, split into Reed-Solomon blocks whose parity lets a scanner recover roughly 7, 15, 25 or 30 percent of the symbol at levels L, M, Q and H, and interleaved so a scratch touches every block slightly rather than one block fatally.

Finder, timing and alignment patterns are drawn in, the codewords snake into the remaining modules, and all eight mask patterns are tried; the one with the lowest penalty under the standard’s four rules is kept, which avoids blank areas and finder lookalikes. The symbol is drawn as a single SVG path and can be saved as SVG or as a PNG rendered on whole-pixel edges at 256 to 2048 pixels, with a quiet zone of 0 to 8 modules and a warning when the colours have too little contrast or are inverted.

Examples

Make a Wi-Fi QR code

The WIFI: format both phone cameras read; the details panel reports version 3 (29 × 29 modules), Byte (UTF-8), 41 bytes at Medium error correction. Hidden network adds H:true; before the closing semicolons, and a five-character password is refused as outside the 8 to 63 that WPA allows.

Fields
Network name (SSID): Cafe Guest
Security: WPA / WPA2 / WPA3
Password: espresso-2026
Encoded content
WIFI:T:WPA;S:Cafe Guest;P:espresso-2026;;

Encode a contact card

Lines end in CRLF as vCard 3.0 requires, the mobile loses its spaces, the website gains https:// and unused address parts stay as empty slots in ADR. This much detail needs version 11, 61 modules a side, so leave out what a reader will not need.

Fields
First name: Jane
Last name: Doe
Organisation: Example Corp
Job title: Engineering Manager
Mobile: +1 555 010 0199
Email: jane.doe@example.com
Website: example.com
City: Springfield
Country: USA
Encoded content
BEGIN:VCARD
VERSION:3.0
N:Doe;Jane;;;
FN:Jane Doe
ORG:Example Corp
TITLE:Engineering Manager
TEL;TYPE=CELL:+15550100199
EMAIL:jane.doe@example.com
URL:https://example.com
ADR;TYPE=WORK:;;;Springfield;;;USA
END:VCARD

Turn a bare address into a link that opens

Without a scheme most scanners show an address as plain text instead of offering to open it, so https:// is added. The result is version 3 (29 × 29) in byte mode; a lone word such as hello is refused because it has no domain ending.

Website address
oktools.dev/about-us
Encoded content
https://oktools.dev/about-us

Share a location every phone can open

The decimal comma is accepted. Unticked, the content is geo:48.8584,2.2945, which Android opens in a map but the iPhone camera ignores; the Maps link is a web address every scanner opens. Pasting a pair such as 48.8584, 2.2945 into Latitude fills both fields.

Fields
Latitude: 48.8584
Longitude: 2,2945
Maps link instead of a geo: URI: on
Encoded content
https://maps.google.com/?q=48.8584,2.2945

Supported formats

  • Nine kinds of contentURL, text, Wi-Fi (WPA/WPA2/WPA3, WEP or open, with a hidden flag), email as mailto:, phone as tel:, SMS as SMSTO:, contact as vCard 3.0, event as an iCalendar VEVENT (timed in UTC or all-day) and location as geo: or a Maps link.
  • Modes, versions and capacityNumeric, alphanumeric and byte (UTF-8) modes, chosen automatically, in versions 1 to 40. Level L holds up to 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes; level H 3,057, 1,852 or 1,273. Anything beyond is reported with the limit that applies.
  • Four error correction levelsL, M, Q and H restore roughly 7, 15, 25 and 30 percent of the symbol. Medium is the default; raising the level makes the code denser for the same content.
  • SVG, PNG and clipboardA standalone SVG whose viewBox includes the margin, a PNG at 256, 512, 1024 or 2048 pixels square, and Copy image where the browser allows it, named after the content type: qr-wifi.png, qr-url.svg.
  • Appearance and detailsA margin of 0 to 8 modules (4 is the standard quiet zone), foreground and background colours with contrast and inversion warnings, and a panel with the version, encoding, data size, capacity used and mask chosen.

Use cases

  • A Wi-Fi card for guestsA café table tent, a holiday let or a meeting room: guests scan and tap Join instead of typing a passphrase. Print from the SVG and pick High error correction if the card will be small or handled a lot.
  • A contact code on a business card or badgeA vCard with name, organisation, one number and an email saves the contact in one scan; keep the fields few so the code stays open enough to read from a card.
  • An event invitation or posterA VEVENT with the title, time and venue adds the appointment to the phone’s calendar at the right local time wherever it is scanned, because the times are stored in UTC.
  • A link on a menu, poster or packagingA URL is the smallest code for the most common job; the SVG stays sharp at any print size and the PNG drops into a document or a slide.
  • Serial numbers and asset tagsDigits-only text is encoded in numeric mode, the smallest symbol for a given length — a label for equipment, a batch or a locker.

Limitations

  • Static codes onlyThe content is baked into the pattern: it cannot be edited after printing and there is no scan counting or redirection. To keep a printed code changeable, encode a short URL you control and change where it points.
  • No logo, per-module colours or rounded stylingThe output is square modules in two flat colours. A logo can be laid over the centre in a design tool afterwards — raise error correction to High first and keep the covered area well under its 30 percent.
  • No Kanji or ECI mode, and no Micro QRText outside the alphanumeric set goes as UTF-8 bytes without an ECI header, which modern scanners assume but some older ones read as Latin-1. Micro QR, rMQR and structured append are not generated.
  • It does not read codesThere is no decoder for an image or a camera; a phone does that. The Encoded content panel shows what this page put into a code, not what is inside someone else’s.
  • Events are kept simpleOne VEVENT with title, times, location and description — no recurrence, reminders, attendees or named time zones. Timed events are read in the browser’s time zone and stored as a UTC instant, so enter the time as your current zone shows it.

Frequently asked questions

How do I make a QR code for my Wi-Fi network?

Choose Wi-Fi, type the network name exactly as it appears on your devices, pick the security type and enter the password. The code holds them in the WIFI: format that the camera apps on iPhone and Android both read, so a guest scans it and taps Join instead of typing a long password. Tick Hidden network if the router does not broadcast its name.

Do these QR codes expire?

No. The content is written into the pattern itself, so there is no server behind the code that could go offline, start charging or redirect it elsewhere. A static code like this works for as long as the thing it points to exists. The flip side is that it cannot be edited after printing — changing the content means printing a new code.

Which error correction level should I choose?

Medium suits most screens and print. Error correction adds redundant data so a code still scans when part of it is scratched, dirty or covered: Low restores about 7% of the symbol, Medium 15%, Quartile 25% and High 30%. Higher levels make the code denser, so use High for a code that will be printed small, placed outdoors or covered by a logo, and Low when you are trying to fit as much data as possible.

How much data can a QR code hold?

At most 7,089 digits, 4,296 uppercase letters and symbols, or 2,953 bytes of anything else, and only at the Low error correction level — High holds a little under half of that. In practice a code stays easy to scan well below those limits: a short URL produces a small, open pattern, while a full contact card with an address is noticeably denser. The details panel shows the version and how much of its capacity the content uses.

Should I download PNG or SVG?

SVG for print. It is vector, so it stays perfectly sharp at any size, from a business card to a poster, and design tools such as Figma, Illustrator and Inkscape open it directly. PNG is the safe choice for documents, slides, websites and messaging apps; pick a size at least as large as the code will be displayed so it is never scaled up and blurred.

Why will my QR code not scan?

Usually contrast or margin. Scanners look for dark modules on a light background with an empty border around the code — the quiet zone, four modules wide by the standard. Light-on-dark codes, low-contrast colour pairs and codes cropped right to their edge all fail on some phones. Very dense codes are the other cause: shorten the content or lower the error correction to get a smaller version, and print it larger.

Is the content I enter sent anywhere?

No. The QR code is generated by JavaScript running in your browser, so the Wi-Fi password, contact details or anything else you type never leave your device and are not logged or attached to an analytics event. You can confirm it by opening the network tab and watching it stay empty while the code updates.