Free QR Code API for Developers

Generate QR codes instantly with our free REST API. No credit card required, 100 requests per month included. Perfect for testing, side projects, and small applications.

Quick Start - Generate Your First QR Code

Get started in seconds with a simple HTTP request:

# Generate a QR code (returns PNG image)
curl "https://qrcodeapi.io/api/generate?data=https://example.com" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -o qr.png

What's Included in the Free Tier?

100 Requests/Month

Generate up to 100 QR codes per month absolutely free.

PNG & SVG Output

Choose between raster PNG or vector SVG formats.

Custom Colors

Set custom foreground and background colors.

All Error Levels

L, M, Q, and H error correction levels supported.

Sizes up to 2000px

Generate QR codes from 50px to 2000px wide.

No Watermarks

Clean QR codes with no branding or watermarks.

API Parameters

GET /api/generate

Required:
  data          - The content to encode (URL, text, etc.)

Optional:
  size          - Image size in pixels (50-2000, default: 300)
  format        - Output format: "png" or "svg" (default: png)
  color         - QR code color in hex (default: 000000)
  background    - Background color in hex (default: ffffff)
  errorCorrection - Error correction: L, M, Q, H (default: M)
  margin        - Quiet zone margin 0-10 (default: 4)

Example: Custom Colored QR Code

curl "https://qrcodeapi.io/api/generate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -G \
  --data-urlencode "data=https://github.com" \
  --data "color=4F46E5" \
  --data "background=F3F4F6" \
  --data "size=400" \
  -o purple-qr.png

Start Generating QR Codes for Free

Sign up in 30 seconds. No credit card required.

Get Your Free API Key

Frequently Asked Questions

Is the free tier really free?

Yes! The free tier includes 100 QR code generations per month with no credit card required. There are no hidden fees.

What happens if I exceed 100 requests?

You'll receive a 429 rate limit error. You can upgrade to a paid plan anytime for more requests, or wait until next month for your limit to reset.

Can I use the free tier for commercial projects?

Yes, you can use the free tier for any project, including commercial applications. The QR codes have no watermarks.

How do I authenticate API requests?

Include your API key in the Authorization header: Authorization: Bearer YOUR_API_KEY