UtilitiesNew

QR Code Generator API

Generate QR codes for any URL, text, or contact in one API call.

What it does

The QR Code API generates high-quality QR codes from any URL, plain text, or vCard contact. Returns a PNG or SVG with full control over size, colour, and error correction level. No libraries to install — one request, one image.

Quick example

Request
GET https://api.it-stacks.com/qr-code/generate?data=https://it-stacks.com&format=png&size=256
Response
{
  "url": "https://cdn.it-stacks.com/qr/abc123.png",
  "format": "png",
  "size": 256,
  "data": "https://it-stacks.com"
}

Who it's for

  • →SaaS apps that need on-the-fly QR code generation
  • →E-commerce platforms for product packaging and labelling
  • →Event management tools for ticketing and check-in
  • →Restaurant and hospitality apps for digital menus

Why use it

✓PNG and SVG output — use whichever your app needs
✓Full colour and size control via query params
✓No external dependencies — one endpoint, one response
✓Globally cached CDN delivery for fast load times

Frequently asked questions

What formats can the QR code be returned in?

PNG and SVG. Use the format parameter to specify which you need.

Can I customise the colours?

Yes. Use the color param for the foreground and bg for the background — both accept hex values without the # prefix.

Is there a size limit?

The maximum output size is 1024×1024px. The default is 256×256px.

Do generated images expire?

No. Generated QR codes are cached indefinitely via CDN.

Can I encode any text, not just URLs?

Yes. The data parameter accepts any UTF-8 string — URLs, plain text, phone numbers, vCard data, and more.

Ready to start building?

Free tier available — no credit card required.