Skip to content

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

300px
100px500px

Error correction

Colors

Preview

Version 2 (25x25)

QR code ready, version 2

How it works

Zero dependencies

Full QR encoder built from scratch with GF(256) arithmetic and Reed-Solomon error correction.

Client-side only

All encoding happens in your browser. No data is sent to any server.

Scannable output

Generates real, standards-compliant QR codes with proper finder patterns, masking, and EC.

Capacity reference

VersionLMQH
V1 (21x21)1714117
V2 (25x25)32262014
V3 (29x29)53423224
V4 (33x33)78624634
V5 (37x37)106846044
V6 (41x41)1341067458
V7 (45x45)1541228664
V8 (49x49)19215210884
V9 (53x53)23018013098
V10 (57x57)271213151119

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. 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. 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. 3

    Customize colors

    Change the foreground and background colors to match your branding, keeping enough contrast for scanners.

  4. 4

    Download SVG or PNG

    SVG scales without loss for print; PNG suits web pages and email.

  5. 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?
A QR code is a square 2D barcode a phone camera can scan to open a link, join a WiFi network or save a contact. This generator encodes text, URLs, email, phone, WiFi and vCard data at error correction level L, M, Q or H, with custom size and colors, and exports SVG or PNG.
What is the difference between SVG and PNG downloads?
SVG is a vector format that scales to any size without losing quality, making it ideal for print materials. PNG is a raster format best for web use and sharing. Both are generated locally in your browser.

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

GET /api/qr-code/ Generate a QR code
POST /api/qr-code/ Generate a QR code

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

GET /api/qr-code/ Generate a QR code
POST /api/qr-code/ Generate a QR code