Tools / QR Code Generator
QR Code Generator icon

QR Code Generator

QR codes for links, WiFi & contacts

Generate scannable QR codes for URLs, text, WiFi credentials, or contact cards. Outputs permanent image URLs in PNG, SVG, JPG, or GIF with control over size, colors, error correction, and margins. Ideal for marketing materials, events, and business cards.

3 skillsv0.02
Generate QR Code

Generate a QR code from any text or URL. Returns a permanent image URL and downloadable file. Supports custom size, colors, format (PNG/SVG/JPG/GIF), and error correction level.

Returns: QR code image URL (permanent), downloadable image via asset system, image dimensions, and encoded data length
Parameters
data *stringThe content to encode in the QR code — a URL, plain text, email address, phone number, or any string up to ~900 characters
sizenumberQR code image size in pixels (10–1000, default 300). The image is always square.
formatstringOutput image format (default "png"). Use "svg" for scalable vector output.
eccstringError correction level: L (~7%), M (~15%), Q (~25%), H (~30%). Higher = more resilient but denser. Default "M".
colorstringQR code foreground color as hex (e.g. "#000000", "FF0000"). Default is black.
bgcolorstringBackground color as hex (e.g. "#FFFFFF", "FFF"). Default is white.
marginnumberQuiet zone margin in pixels (0–50). Default 1.
Example
QR code for a URL
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
  -d '{
  "tool": "qr-code-generator",
  "skill": "generate_qr",
  "input": {
    "data": "https://toolrouter.com"
  }
}' \
  https://api.toolrouter.com/v1/tools/call
Generate WiFi QR Code

Generate a QR code that lets people connect to a WiFi network by scanning. Encodes SSID, password, and encryption type in the standard WiFi QR format. Scanning auto-connects on most phones.

Returns: WiFi QR code image URL, downloadable image, network details (SSID, encryption, hidden status)
Parameters
ssid *stringThe WiFi network name (SSID)
passwordstringThe WiFi password. Omit for open networks.
encryptionstringEncryption type: "WPA" (WPA/WPA2/WPA3), "WEP" (legacy), "nopass" (open). Auto-detects based on password presence.
hiddenbooleanWhether the network is hidden (not broadcasting SSID). Default false.
sizenumberQR code image size in pixels (default 300)
formatstringOutput image format (default "png")
eccstringError correction level (default "H" for WiFi QR — higher resilience when printed)
colorstringQR code foreground color as hex
bgcolorstringBackground color as hex
Example
WiFi QR for a WPA2 network
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
  -d '{
  "tool": "qr-code-generator",
  "skill": "generate_wifi_qr",
  "input": {
    "ssid": "MyHomeWifi",
    "password": "supersecret123"
  }
}' \
  https://api.toolrouter.com/v1/tools/call
Generate Contact QR Code

Generate a QR code containing a vCard contact card. When scanned, the contact is automatically added to the phone's address book. Supports name, phone, email, organization, title, URL, and address.

Returns: Contact vCard QR code image URL, downloadable image, contact name, and list of included fields
Parameters
first_name *stringContact first name (required)
last_namestringContact last name
phonestringPhone number (e.g. "+1-555-123-4567")
emailstringEmail address
organizationstringCompany or organization name
titlestringJob title or role
urlstringWebsite URL
addressstringStreet address
notestringAdditional notes about the contact
sizenumberQR code image size in pixels (default 300)
formatstringOutput image format (default "png")
eccstringError correction level (default "M")
colorstringQR code foreground color as hex
bgcolorstringBackground color as hex
Example
Business card QR with full contact details
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
  -d '{
  "tool": "qr-code-generator",
  "skill": "generate_vcard_qr",
  "input": {
    "first_name": "Jane",
    "last_name": "Smith",
    "phone": "+1-555-123-4567",
    "email": "jane@example.com",
    "organization": "Acme Corp",
    "title": "CTO",
    "url": "https://acme.com"
  }
}' \
  https://api.toolrouter.com/v1/tools/call
Loading reviews...
Loading activity...
v0.022026-03-22
  • Added subtitle, expanded description, and agent instructions
v0.012026-03-20
  • Initial release

Quick Start

MCP (Claude Code)
claude mcp add --transport stdio \
  --env TOOLROUTER_API_KEY=YOUR_API_KEY \
  toolrouter -- npx -y toolrouter-mcp
REST API
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
  -d '{"tool":"qr-code-generator","skill":"generate_qr","input":{}}' \
  https://api.toolrouter.com/v1/tools/call

Use Cases

Open Create Marketing QR Codes

Create Marketing QR Codes

Generate QR codes for marketing campaigns, flyers, posters, and promotional materials that link to landing pages.

QR Code Generator icon
QR Code Generator
4 agent guides
Open Generate Event Check-In Codes

Generate Event Check-In Codes

Create QR codes for event registration, attendee check-in, and conference badge scanning.

QR Code Generator icon
QR Code Generator
4 agent guides
Open Dub Marketing Videos

Dub Marketing Videos

Translate and dub your marketing videos into multiple languages to reach international audiences.

Audio Dubber icon
Audio Dubber
4 agent guides
View all use cases for QR Code Generator

Workflows

Open QR Marketing Campaign

QR Marketing Campaign

Launch offline-to-online marketing campaigns with custom QR codes, print material design, and location-optimized landing pages.

QR Code Generator icon
QR Code Generator
Generate Image icon
Generate Image
GEO icon
GEO
3 steps3 tools
Open QR Marketing Campaign

QR Marketing Campaign

Create QR code marketing campaigns with custom visuals and AI-optimized landing pages.

QR Code Generator icon
QR Code Generator
Generate Image icon
Generate Image
GEO icon
GEO
3 steps3 tools

Frequently Asked Questions

Which QR format should I use for print versus web?

Use `svg` when you need clean print output that can scale without blurring. Use `png`, `jpg`, or `gif` for web previews, social posts, or quick downloads.

Can I make a QR code for WiFi or a contact card?

Yes. The tool has dedicated WiFi and vCard flows, so you can share a network login or create a scannable contact card that adds the person to a phone address book.

How much design control do I get over the QR code?

You can change size, foreground and background colors, margins, and error correction. Higher error correction is useful when the code will be printed or placed near a logo.

What should I put in the data field?

Any URL, plain text, email address, phone number, or similar string works. The main generator handles most cases, while the WiFi and contact options are better for those specific formats.