Safari: every kind of code
The generator at the top of this page runs inside Safari, so the code is made on the phone itself. Links are the default, and the tabs cover Wi-Fi, WhatsApp, contact cards, email, text messages, locations, calendar events and payments. You can add colors and a logo from your photo library.
The tabs matter because each kind of code has its own text format, and the generator writes it for you. A guest Wi-Fi code for a network called Cafe Guest, for example, holds exactly this:
WIFI:T:WPA;S:Cafe Guest;P:latte2026;;
Any phone camera that reads that line offers to join the network. If you type that line yourself, a missing ; is enough for the phone to treat it as plain text.
Copy image puts the code on your clipboard for Messages, Mail, Notes, Pages or Keynote. Download PNG saves it to the Downloads folder in the Files app; pick 2048px if it's going to be printed. To get it into Photos, open the downloaded image and use the Share button.
To keep the generator one tap away, tap Share in Safari and choose Add to Home Screen.
Shortcuts: plain codes from the clipboard
Apple's Shortcuts app has a Generate QR Code action, and Apple's education team publishes a step-by-step guide to building a shortcut with it:
- Open Shortcuts, tap +, and search for
qr. - Add Generate QR Code and change its input from Text to Clipboard.
- Add Save to Photo Album after it, and name the shortcut.
- Copy a link, run the shortcut, and the code lands in Photos as your most recent image.
The result is plain black and white, and for anything other than a link or text you'd have to type the right format yourself, like the Wi-Fi line above.
Chrome: the page you're on
In Chrome for iPhone, open the page, tap the Share icon at the top, then Create a QR Code (Google's steps). It only encodes the current page. Our Chrome guide shows how much a long address bloats the code.
Your Wi-Fi, from the Passwords app
On iOS 18 and later, the Passwords app keeps the networks your iPhone has joined (Apple support). Open Passwords, tap Wi-Fi, pick the network, and tap Show Network QR Code. A guest scans it straight off your screen. That's ideal for a friend on your sofa; for a code taped inside a kitchen cupboard, print one from the Wi-Fi QR code generator instead.
Codes from all four methods are static, with the content written into the pattern, so none of them expire. The guide to whether QR codes expire explains which ones do.