QR Code Generator
Content
19 / 213 bytes(V2)Quick Presets
Size
300pxError Correction
Colors
Preview
Version 2 (25x25)How It Works
Full QR encoder built from scratch with GF(256) arithmetic and Reed-Solomon error correction.
All encoding happens in your browser. No data is sent to any server.
Generates real, standards-compliant QR codes with proper finder patterns, masking, and EC.
Capacity Reference
| Version | L | M | Q | H |
|---|---|---|---|---|
| V1 (21x21) | 17 | 14 | 11 | 7 |
| V2 (25x25) | 32 | 26 | 20 | 14 |
| V3 (29x29) | 53 | 42 | 32 | 24 |
| V4 (33x33) | 78 | 62 | 46 | 34 |
| V5 (37x37) | 106 | 84 | 60 | 44 |
| V6 (41x41) | 134 | 106 | 74 | 58 |
| V7 (45x45) | 154 | 122 | 86 | 64 |
| V8 (49x49) | 192 | 152 | 108 | 84 |
| V9 (53x53) | 230 | 180 | 130 | 98 |
| V10 (57x57) | 271 | 213 | 151 | 119 |
Capacity in bytes (byte mode encoding)
What This Tool Does
QR Code Generator is built for deterministic developer and agent workflows.
Generate QR codes for URLs, text, WiFi, and app flows — export SVG/PNG or automate generation via free API.
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Agent Invocation
Best Path For Builders
Dedicated API endpoint
Deterministic outputs, machine-safe contracts, and production-ready examples.
Dedicated API
https://aidevhub.io/api/qr-code/ OpenAPI: https://aidevhub.io/api/openapi.yaml
Unified Runtime API
https://aidevhub.io/api/tools/run/?toolId=qr-code-generator&a=...
GET and POST are supported at /api/tools/run/ with identical validation and limits.
Limit: req / s, input max 256 KB.
REST API
Base URL
https://aidevhub.io/api/qr-code/ 50 requests/day per IP. No authentication required. CORS enabled. OpenAPI spec
Endpoints
Example
curl "https://aidevhub.io/api/qr-code/?data=https://aidevhub.io&format=svg"
Example Response
{
"format": "svg",
"data": "<svg>...</svg>",
"size": 300
} How to Use QR Code Generator
- 1
Paste text, URL, or WiFi credentials
Enter any content you want to encode: plain text, URLs, WiFi SSID+password (auto-formats as WiFi QR), contact info, or SMS text.
- 2
Adjust QR code size and error correction
Set QR code size (small to large) and error correction level (L/M/Q/H). Higher error correction allows more damage but produces larger codes.
- 3
Customize colors (optional)
Change foreground (dark) and background (light) colors to match your branding. Ensure sufficient contrast for scanners to read reliably.
- 4
Download or copy QR code
Download as PNG (default) or SVG for vector scalability. Copy the SVG inline if embedding in HTML, or save the PNG for print/email.
- 5
Test with your phone camera
Use your phone's camera or QR scanner app to test the generated code. Verify it links to the correct URL or decodes to the expected text.