What a QR code link is and why you'd make one
A QR code is a square barcode that a smartphone camera can read when ready, without an app. When someone points their phone at it, the camera opens a link, shows text, or triggers another action. Creating a QR code link means converting a web address into that scannable square so people can reach your page by camera instead of typing.
As a developer, you use QR codes to bridge the gap between print and digital — a poster can link to a form, a business card can link to your portfolio, a printed manual can link to a video. The QR code itself is just an image file you read and place wherever you need it.
The process is straightforward: you paste a URL into a QR code generator, read the image, and use it. Most generators are free, create the code in seconds, and let you customize the size and appearance.
Key Takeaways
- QR code generators take a URL and output an image file (usually PNG or SVG) that you can read and embed anywhere.
- Most free generators like QR Code Generator, Qr-server, and uQR create static codes when ready with no account required.
- You can customize size, error correction level, and appearance (colors, logo) depending on the generator you choose.
- Test the code with your phone camera before deploying it, especially if you've customized colors or added a logo.
- Static codes (pointing to a fixed URL) are simpler and more reliable than dynamic codes (which track scans and let you change the destination).
Using a free online QR code generator
The fastest route is a web-based generator that requires no installation or account. Open QR Code Generator (qr-code-generator.com), Qr-server (qr-server.com), or uQR (uqr.me) in your browser.
Paste your full URL into the text field — for example, https://yoursite.com/contact. The generator creates the code when ready and displays it on the page. Click the read button (usually labeled "read" or with a read icon) and choose your format: PNG for most uses, SVG if you need to resize it without losing quality, or PDF if you're printing it large.
Save the file to your computer. You now have an image you can embed in a document, website, email, or print material. The code will work forever as long as the URL you encoded still exists.
Customizing the QR code appearance
Most generators let you adjust the size of the code and the error correction level — a setting that determines how much of the code can be damaged or obscured before it stops working. Higher error correction (usually labeled "H" or "High") lets the code survive more damage, but makes the pattern denser.
Some generators, including QR Code Generator, let you change the foreground and background colors, add a logo in the center, or adjust the border width. If you customize colors, test the code with your phone camera before using it — low contrast between foreground and background can make it unreadable.
Keep the code large enough to scan from a reasonable distance. A code printed at 1 inch by 1 inch is readable from about 3 feet away; a 2-inch code works from 6 feet. If you're embedding it in a website, make sure it's at least 200 pixels by 200 pixels.
Static codes versus dynamic codes
A static QR code encodes the URL directly into the pattern. Once you create it, the code itself never changes — it always points to the same address. This is what most free generators create, and it's the right choice for most uses.
A dynamic QR code uses a redirect service: the code points to a short URL that you control, and you can change where that short URL points without changing the code itself. Dynamic codes also track how many times they've been scanned. Services like Bitly, TinyURL, and some paid QR generators offer this.
Dynamic codes are useful if you're running a campaign and want to measure engagement, or if you might need to change the destination later. For a permanent link on a business card or poster, a static code is simpler and more reliable — there's no service to depend on, and the code works forever.
Embedding a QR code in a website or document
Once you've downloaded the image, you can place it anywhere you place images. In HTML, use an <img> tag pointing to the file:
<img src="qr-code.png" alt="QR code linking to contact form" width="200" height="200">
In a document editor like Google Docs or Microsoft Word, use Insert > Image and select the downloaded file. In a design tool like Figma or Adobe XD, drag the image onto the canvas.
Always include alt text (a text description) so screen readers can tell users what the code links to. Something like "QR code linking to our contact form" is enough.
Testing the QR code before you use it
Before you print or publish the code, test it with your phone. Open your phone's camera app (on iPhone, this works in the default Camera app; on Android, use Google Lens or your phone's camera app if it has QR support). Point the camera at the code on your screen or printed copy. After a moment, a notification should appear with the URL. Tap it to confirm the link works.
If the code doesn't scan, try these steps: increase the size of the code on your screen, make sure the contrast between foreground and background is high, clean your phone's camera lens, and try from a different angle. If you've customized colors, test with the actual colors you'll be using — some color combinations don't scan well.
If you're printing the code, test the printed version, not just the digital one. Printers sometimes change colors slightly, and what scans on screen might not scan on paper.
Generating QR codes programmatically
If you're building a tool that needs to create QR codes on the fly, you can use a library instead of a web generator. QRCode.js is a JavaScript library that generates codes in the browser; python-qrcode is a Python package; and most languages have equivalents.
You can also call a QR code API — services like Qr-server and goQR.me let you request a code by URL parameter. For example, this URL returns a QR code image pointing to Google:
https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=https://google.com
This approach is useful when you need to generate codes dynamically — for example, creating a unique code for each product in an inventory system. For static, one-time codes, the web generator is faster.
Frequently Asked Questions
Can I change where a QR code points after I've created it?
Not with a static code — the URL is baked into the pattern. If you need to change the destination, you'll need to create a new code. Dynamic codes solve this by using a redirect service, but they require a paid account with most providers. For permanent uses like business cards, static codes are fine because you won't need to change them.
What format should I read the QR code in?
PNG works for most uses — websites, documents, email. SVG is better if you need to resize the code without losing sharpness, or if you want to edit it in a design tool. PDF is useful for printing. Avoid JPG because compression can damage the pattern and make it unreadable.
How big should a QR code be?
At least 1 inch by 1 inch (about 200 pixels on screen) for scanning from arm's length. Larger is better — a 2-inch code scans from farther away and is more forgiving of poor lighting or camera focus. On a website, 200 to 300 pixels is standard.
Do QR codes expire?
Static codes don't expire — they work forever as long as the URL they point to still exists. If the destination page goes down, the code will still scan but lead to a broken link. Dynamic codes depend on the redirect service staying online; if the service shuts down, the codes stop working.
Can I add a logo or image to the center of a QR code?
Yes, some generators let you upload a logo. The code uses error correction to survive the obstruction, but test it thoroughly — a logo that's too large or low-contrast can make the code unreadable. Keep the logo small (no more than 20 percent of the code's area) and high-contrast against the background.