QR Options
Ready Canvas + SVG
SVG Output

                

Encoding Tools / QR Codes

QR Code Generator for browser-based encoding workflows

Use this QR Code Generator when text, URLs, contact-style payloads or developer test data need to become a scannable static QR code. The page renders a live canvas preview and SVG output while you adjust size, margin, error correction and foreground/background colors. It is useful for labels, documentation, staging links, event drafts, internal handoffs and quick browser checks. Because QR codes are scanned by real phones in real lighting, the tool also makes it easy to review payload length, keep a quiet zone, preserve contrast and download a test image before printing or sharing.

qr_code_2

Generate static QR codes

Enter a URL, text value, contact-style payload or developer string and render it as a QR code in the browser.

tune

Control scan settings

Set size from 160 to 900 pixels, margin from 0 to 8, error correction level, foreground color and background color.

download

Copy and download

Copy SVG markup or download PNG, JPG, JPEG, WEBP, BMP or SVG output when the selected browser supports the export.

How QR code generation works

A QR code stores the text you enter directly in the pattern. A URL scans as a URL because scanner apps recognize that text shape; contact data, Wi-Fi-style payloads, JSON snippets and plain notes work the same way. The QR pattern itself is static, so changing the destination later means generating a new code unless the payload points to a redirect you control.

This page uses a browser QR renderer to build the matrix, draw a canvas preview, and generate SVG markup. Size controls output pixels, margin controls the quiet zone around the pattern, colors control foreground/background contrast, and error correction controls how much redundancy is added.

Scannability depends on payload length, print size, contrast, lighting, surface quality and the scanner app. Short payloads with good contrast and a clear quiet zone are easier to scan than dense, low-contrast codes.

Common QR Code Generator use cases

URL handoffs: Create a QR code for a staging link, docs page, landing page draft or internal review URL.

Labels and print drafts: Test size, margin and contrast before placing a code on packaging, signs, cards or stickers.

Contact-style payloads: Generate codes from text formats that scanner apps may recognize as contacts, email, phone or calendar data.

Developer fixtures: Create QR images for scanner tests, onboarding flows, kiosk screens and QA notes.

Documentation examples: Copy SVG markup or download an image for docs that need a visible QR example.

Marketing drafts: Try color and error correction choices before moving final QR artwork into a design tool.

QR payload examples

Keep payloads short when possible. These examples are safe shapes to test before replacing them with your real destination or text.

URL payload:
https://devbruh.dev/tools/encoding/qr-code/

Plain text payload:
Docs desk - build badge A12

Contact-style payload:
BEGIN:VCARD
VERSION:3.0
FN:Demo Contact
END:VCARD

Scannability, privacy and export notes

Quiet zones matter: Leave margin around the QR pattern, especially for print. Nearby text, borders or artwork can make the scanner miss the code.

Contrast beats decoration: Custom colors can work, but dark foreground on a light background is the safest baseline. Always scan-test custom colors before using them publicly.

Static and visible: The payload is directly encoded in the QR pattern. Anyone who can scan or photograph the code can read it, so avoid secrets, private tokens, customer data and sensitive internal URLs.

Export support varies: PNG and SVG are the most dependable choices. JPG, JPEG and WEBP exports depend on browser canvas support, while BMP is generated from canvas pixels.

Related QR, URL and encoding tools

Encoding Tools - use the hub when you need QR codes, URL encoding, Base64, JSON strings, HTML entities or UTF-8 tools.

Base64 Encoder Decoder - encode or decode text payloads before deciding whether they belong in a QR code.

URL Encoder - percent-encode URLs and query parameters before generating a QR code for a link.

JSON String Encoder Decoder - escape JSON string values that need to be stored or tested before becoming a QR payload.

Image Converter - convert downloaded QR images when another workflow expects a different image format.

Image Compressor - reduce raster QR image size before attaching it to a document or draft.

QR Code Generator FAQ

What does this QR Code Generator do?

This QR Code Generator turns text, URLs and developer payloads into a static QR code preview. You can adjust size, margin, foreground color, background color and error correction, then copy the SVG markup or download the QR image in a supported format.

What can I put inside a QR code?

You can enter plain text, a URL, contact-style text, Wi-Fi-style text, JSON snippets or other short payloads that QR scanners can read. The scanner decides how to interpret the text, so test the final code with the devices and apps your audience will use.

How do size and margin affect scanning?

Larger output gives scanners more pixels to read, while margin creates the quiet zone around the QR pattern. Avoid removing the margin for print or labels unless you have tested the code carefully, because a missing quiet zone can make scanning unreliable.

What is QR code error correction?

Error correction adds redundancy so a QR code can still scan when small parts are damaged or hard to read. Higher levels can tolerate more damage but also make the pattern denser, so long payloads and high correction levels need extra scan testing.

Can I customize QR code colors?

Yes. The tool lets you choose foreground and background colors. Keep strong contrast, use a darker foreground on a lighter background when possible, and scan-test custom colors before printing or sharing.

Should I put secrets in a QR code?

No. QR codes are easy to scan, screenshot, forward and store. Do not place passwords, private tokens, customer data or sensitive internal URLs in a QR code unless you are intentionally exposing that data to anyone who can see it.