Cogwork APIs

Free QR Code & Barcode Generator

Type any text or URL, get a QR code or barcode. No signup. Built on the CodeKit API.

Want this in your own app?

One call returns a hosted PNG or SVG. Free tier: 50/month — then $5/mo for 1,000, up to 60,000 on higher plans.

GET /qr?data=https://example.com&type=qrcode&format=png
Get an API key →

CodeKit is a production-grade QR code and barcode generation API: one endpoint that turns any value into a clean, scannable image, with the caching, rate limiting, and uptime you'd otherwise have to build yourself. This free tool is the same engine, so the output you see here is identical to what your code receives.

How it works

Enter any text, URL, or product number and CodeKit renders it server-side with a battle-tested barcode engine, then caches the result on a CDN. This tool is a thin wrapper around a single GET /qr request, so every option here — symbology, scale, colors, PNG or SVG — is available straight from your own code.

Supported symbologies

Use cases

FAQ

Is the generator free?
Yes — free to use, no signup. The CodeKit API behind it has a free tier of 50 codes/month; paid plans start at $5/mo for 1,000 and scale to 60,000.
Can I get SVG instead of PNG?
Yes. Add &format=svg for a crisp vector you can scale to any size for print.
Can I customize the colors?
Yes — pass fg and bg as hex values (e.g. fg=0b0f17) to match your brand.
Are barcodes validated?
Yes — if the data doesn't fit the chosen symbology (e.g. letters in an EAN-13), the API returns a clear 400 instead of a broken image.

API reference

Call it through RapidAPI. Base host: codekit-qr-and-barcode-generator.p.rapidapi.com. Send your key as X-RapidAPI-Key and the host as X-RapidAPI-Host.

GET/qr

Generate a QR code or barcode. By default it 302-redirects to the cached image; add json=true to get a JSON { url } instead. POST /qr accepts the same fields as a JSON body.

ParamTypeDescription
datarequiredstringThe value to encode (URL, text, product number).
typeoptstringqrcode (default), code128, code39, ean13, ean8, upca, upce, datamatrix, pdf417, itf14, isbn, gs1-128.
formatoptstringpng (default) or svg.
scaleoptnumberPixel scale 1–12 (default 4).
eccoptstringQR error correction: L, M (default), Q, H.
includetextoptbooleanShow the human-readable value under linear barcodes.
fg / bgoptstringForeground/background hex (e.g. 000000 / FFFFFF).
jsonoptbooleantrue{ url }; otherwise a 302 redirect to the image.

Returns a 302 redirect to the PNG/SVG on the CDN, or { url, cached } when json=true.

curl -G "https://codekit-qr-and-barcode-generator.p.rapidapi.com/qr" \
  --data-urlencode "data=https://example.com" \
  -d "type=qrcode" -d "format=png" -d "json=true" \
  -H "X-RapidAPI-Key: YOUR_KEY" \
  -H "X-RapidAPI-Host: codekit-qr-and-barcode-generator.p.rapidapi.com"