About this tool
A QR code stores a short piece of text, usually a link, in a square pattern that any phone camera can read. This free QR code generator makes codes for websites, plain text, Wi-Fi networks, UPI payments, email, phone calls, SMS and contact cards. The codes are static: the content is inside the pattern itself, so they never expire, there’s no account, no tracking redirect and no watermark. Everything is generated in your browser; what you type is never uploaded.
How to make a QR code
- Choose what the code is for, then fill in the fields. The preview updates as you type.
- Optionally set the error correction level, the PNG size, the quiet zone (the blank border) and the colours.
- Click Download PNG for documents and social media, or SVG for print and design tools, where it stays sharp at any size. Copy image puts it on your clipboard.
- Test the code with your own phone before you print it.
Open Encoded text to see exactly what the code contains, which is handy if you’re a developer building the same format yourself.
What each type encodes
| Type | Format inside the code | What happens when scanned |
|---|---|---|
| Link / text | https://example.com | Opens the link, or shows the text |
| Wi-Fi | WIFI:T:WPA;S:name;P:password;; | Offers to join the network, no typing needed |
| UPI | upi://pay?pa=id@bank&pn=Name&cu=INR | Opens a UPI app (Google Pay, PhonePe, Paytm, BHIM…) with the payee filled in |
mailto:hi@example.com?subject=… | Starts a new email | |
| Phone / SMS | tel:+91… or SMSTO:+91…:message | Starts a call, or a text message |
| Contact | BEGIN:VCARD … END:VCARD | Offers to save the contact |
Wi-Fi QR code for guests
Print a Wi-Fi QR code for your home, office, café or Airbnb, and guests join by pointing their camera at it: no spelling out passwords. Enter the network name exactly as it appears (it’s case-sensitive), the password, and the security type (almost every network today is WPA2 or WPA3, which both use the WPA setting). Special characters such as ; , : and " in the name or password are escaped for you. Both iPhone and Android cameras support Wi-Fi codes.
UPI payment QR code
Shops, freelancers and tutors in India can make a UPI QR code that customers scan with any UPI app. Enter your UPI ID (such as name@okaxis or 9876543210@ybl) and your name. Leave the amount empty for a code you print once and reuse, or fill it in to request a fixed amount, such as on an invoice. A note helps you match payments to orders.
Always scan the finished code with your own UPI app and check that the name shown is yours before sharing it. This tool only builds the payment link; the money goes directly from the payer’s bank to yours, and we never see it.
Error correction levels
QR codes include extra data so they can still be read when part of the code is dirty, torn or covered. Higher levels survive more damage but make the code denser:
| Level | Can recover | Use for |
|---|---|---|
| L | About 7% | Screens and clean prints, or squeezing in more data |
| M | About 15% | The everyday default |
| Q | About 25% | Outdoor signs, stickers, packaging |
| H | About 30% | Harsh conditions, or when you’ll place a small logo over the centre |
Printing tips: make sure it scans
- Size: at least 2 × 2 cm for something held in the hand. For posters and signs, a common rule is that the code should be about one tenth of the scanning distance wide (25 cm wide for 2.5 m away).
- Quiet zone: keep the blank border. The standard asks for 4 modules (squares); cutting it off is a common reason codes fail.
- Contrast: dark code on a light background. Light-on-dark and low-contrast colour combinations confuse many scanners; the tool warns you about both.
- Less is more: shorter content makes bigger, easier-to-scan squares. Use a short link for long URLs.
- Use SVG for print: it stays perfectly sharp at any size.
Static vs. dynamic QR codes
Many “free” QR code sites make dynamic codes: the code points to their own short link, which then redirects to your page. That lets them count scans, but it also means your printed codes stop working if they shut down or you stop paying, and every scan passes through their servers. The codes made here are static: your content is in the code itself, so it works forever, offline, with no middleman. If you need scan statistics, add UTM parameters to your link and read them in your own analytics.
Generate QR codes in code
// npm install qrcode-generator (the library this page uses)
import qrcode from 'qrcode-generator';
// Encode text as UTF-8; the library's default only handles Latin-1
qrcode.stringToBytes = (s) => Array.from(new TextEncoder().encode(s));
const qr = qrcode(0, 'M'); // 0 = pick the smallest version that fits
qr.addData('https://example.com');
qr.make();
document.querySelector('#qr').innerHTML = qr.createSvgTag({ cellSize: 8, margin: 32 });// npm install qrcode
const QRCode = require('qrcode');
await QRCode.toFile('qr.png', 'https://example.com', {
errorCorrectionLevel: 'M',
margin: 4,
width: 512,
});
const svg = await QRCode.toString('https://example.com', { type: 'svg' });# pip install "qrcode[pil]"
import qrcode
img = qrcode.make("https://example.com")
img.save("qr.png")
# With options
qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_M, box_size=10, border=4)
qr.add_data("https://example.com")
qr.make_image().save("qr.png")# Linux: apt install qrencode · macOS: brew install qrencode
qrencode -o qr.png -s 10 -m 4 -l M 'https://example.com'
qrencode -t ANSIUTF8 'https://example.com' # print it in the terminalBuilding a link with query parameters? The URL encoder makes sure special characters are escaped correctly.
FAQ
Do these QR codes expire?
No. They are static codes: the content is stored in the pattern itself, with no redirect through our servers, so they keep working for as long as the printed code exists.
Is this QR code generator really free?
Yes. There is no sign-up, no watermark, no scan limit and no paid tier. Codes are generated in your browser, and you can use them commercially.
How do I make a QR code for Wi-Fi?
Choose Wi-Fi, enter the network name and password exactly as they are, pick the security type (usually WPA), and download the code. Guests scan it with their phone camera to join.
How do I create a UPI QR code?
Choose UPI, enter your UPI ID and name, optionally an amount and a note, and download the code. Customers can scan it with Google Pay, PhonePe, Paytm, BHIM or any other UPI app. Test it with your own app before sharing.
PNG or SVG?
PNG works everywhere: documents, slides, websites and social media. SVG is a vector format that stays sharp at any size, which is best for printing and for design tools like Figma, Canva and Illustrator.
Why won’t my QR code scan?
The usual causes are too little contrast, light colours on a dark background, a missing blank border, printing it too small, or too much content making the squares tiny. Use dark on light, keep the quiet zone, and print at least 2 cm wide.
How much data can a QR code hold?
Up to 2,953 bytes at the lowest error correction level, but practical codes hold far less. Long content makes the code dense and harder to scan, so keep it short and use links for anything large.
Is my data uploaded anywhere?
No. The QR code is generated by JavaScript in your browser. What you type, including Wi-Fi passwords and UPI IDs, is never sent to a server or saved; only your style settings are remembered on this device.