Loading...
Loading...
Integrate QRTool.net into your own projects.
Standard HTTP endpoints for generating QR codes programmatically in any language.
Lightweight libraries for JavaScript, Python, and Go to speed up your integration.
The QRTool.net public API is live. Generate QR codes programmatically with a simple GET request — no API key required.
| data | Required. The text or URL to encode (max 2000 characters). |
| type | Content type. Default: text. See content types below. |
| size | Image size in pixels, 64-1024. Default: 300. |
| format | Output format: 'svg' (default) or 'png'. |
| color | Foreground color as hex, e.g. 000000 or #1a2b3c. |
| bg | Background color as hex. Default: ffffff. |
| level | Error correction level: L, M, Q or H. Default: M. |
| margin | Quiet-zone margin in modules, 0-16. Default: 2. |
Set the type parameter to encode structured content. Each type accepts its own query parameters (? marks optional ones).
| text | data |
| url | data |
| vcard | name, org?, title?, phone?, email?, website?, address? |
| wifi | ssid, password?, security? (WPA|WEP|nopass), hidden? |
| to, subject?, body? | |
| sms | phone, message? |
| phone | phone |
| phone, message? | |
| geo | lat, lng |
| event | title, start, end?, location?, description? |
| appstore | ios?, android?, default? |
https://qrtool.net/api/v1/qr?type=vcard&name=Jane%20Doe&phone=%2B15551234567&[email protected] https://qrtool.net/api/v1/qr?type=wifi&ssid=CafeWiFi&password=secret123 https://qrtool.net/api/v1/qr?type=appstore&ios=https://apps.apple.com/app/id1&android=https://play.google.com/store/apps/details?id=com.app
curl "https://qrtool.net/api/v1/qr?data=https://qrtool.net&size=400&format=png" -o qrcode.png <img src="https://qrtool.net/api/v1/qr?data=Hello%20World&size=200" alt="QR" />
Responses are cached for 24 hours and served with CORS enabled, so you can call the API directly from the browser.