QR Code Generator
Generate QR codes for URLs, text, WiFi, email, phone numbers and vCards with custom colors and error correction, as SVG or PNG.
QR Code Generator
Content
19 / 213 bytes(V2)Quick presets
Size
300pxError correction
Colors
Preview
Version 2 (25x25)QR code ready, version 2
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)
Updated . Provided as is. Check the output before you rely on it in production.
How to use QR Code Generator
- 1
Enter your content
Type text or a URL, or use a quick preset for an email, phone number, WiFi network (WPA/WPA2, WEP or open) or vCard contact.
- 2
Adjust size and error correction
Set the size and the error correction level (L, M, Q or H). Higher levels survive more damage but produce denser codes.
- 3
Customize colors
Change the foreground and background colors to match your branding, keeping enough contrast for scanners.
- 4
Download SVG or PNG
SVG scales without loss for print; PNG suits web pages and email.
- 5
Test with your phone
Scan the code with your phone's camera to confirm it opens the right URL or decodes to the expected text.
Questions and answers
What is QR Code Generator?
What is the difference between SVG and PNG downloads?
REST API
Base URL
https://aidevhub.io/api/qr-code/ No authentication, fair use. Abusive traffic is throttled at the edge; responses carry no quota headers. 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
} For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
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