diqitech Logodiqitech
Generator

QR Generator API

Generate professional, styled QR codes with a single GET request. Free, no API key, open CORS — the same engine behind this site.

Quick Start

One URL is all you need. Open it in a browser, an <img> tag, or curl:

GET https://qr.diqitech.com/api/qr?data=https://diqitech.com
QR exampleStyled QR example

Basic Parameters

ParameterValuesDefaultDescription
datarequiredtext, max 2000 charsText or URL to encode.
formatpng · svgpngOutput image format.
size64–1024320Image width & height in px.
margin0–102Quiet zone around the QR, in modules.
eccL · M · Q · HMError correction level. Auto H when a logo is set.

Styling Parameters

ParameterValuesDefaultDescription
stylesquare · dots · rounded · classysquareDot / module style.
cornerssquare · extra-roundedsquareCorner eye (finder) style.
darkhex, with/without #000000Pattern color.
lighthex (8-digit = alpha)ffffffBackground color.
cornercolorhex= darkCorner eye color.

Dot Styles

Live renders straight from the API — combine any style with the styling parameters above.

QR style square
style=square
QR style dots
style=dots
QR style rounded
style=rounded
QR style classy
style=classy

Logo Parameters (SVG only)

ParameterValuesDefaultDescription
logohttps URL, max 512 KBLogo image (png/jpeg/webp/gif/svg).
logoshapecircle · squarecircleCanvas & masking shape.
logosize10–50 (%)30 / 25Logo width relative to the QR (default 30 circle, 25 square).
logopad0–40 (px)12Padding ring around the logo.
logobghexffffffLogo canvas color.
logoborderhex= darkCanvas border color.
logoborderw0–12 (px)3Border width (0 = none).

The logo is fetched server-side, scaled to cover its canvas shape, and the QR modules behind it are cleared. Error correction is raised to H automatically. Keep logosize at its default when possible — oversized logos can make the QR unscannable.

Examples

Basic PNG

https://qr.diqitech.com/api/qr?data=Hello%20World&size=512

Styled SVG with brand colors

https://qr.diqitech.com/api/qr?data=https://diqitech.com&format=svg
    &style=classy&corners=extra-rounded
    &dark=4c566a&cornercolor=2e3440&light=eceff4

With embedded logo

https://qr.diqitech.com/api/qr?data=https://diqitech.com&format=svg
    &style=rounded&corners=extra-rounded
    &logo=https://qr.diqitech.com/logo.jpeg

Direct use in HTML

<img src="https://qr.diqitech.com/api/qr?data=https://diqitech.com&size=256" alt="QR" />

Responses & Errors

Successful requests return the image directly. Invalid input returns JSON:

{ "error": "Parameter \"size\" harus bilangan bulat 64-1024." }
400Invalid or missing parameter — the error message states which one.
422QR could not be generated (data too long, logo unreachable, etc).
405Method not allowed — only GET is supported.

Good to Know

  • Open CORS (Access-Control-Allow-Origin: *) — call it from any website.
  • Responses are immutable and cached at the CDN edge: identical URLs are served from cache and count as a single generation.
  • Output is deterministic — the same URL always produces the exact same image.
  • Free to use. QR codes are generated on the fly; nothing is stored.

© 2026 diqitech. Boundless Creativity.