Free plan

QR Code

Make a QR code that opens a link or shows your text
POST
/v1/images/qr

About this tool

A QR code is the square pattern that a phone camera can scan to open a web address or read some text. Type what the code should hold, then choose its colours, its size and whether the background is see-through. You can also put a small logo in the middle. A logo makes the code denser, so the tool adds extra protection against damage automatically.
For example, you make a QR code for your website address and print it on a flyer so people can scan it with their phone.

How to use it

  1. Choose this tool.
  2. Type the web address or text the code should hold.
  3. Choose the file type (PNG, SVG or PDF), the colours and the size.
  4. Optionally add a logo picture with Upload.
  5. Press Generate, then download the code.

What you get back

You get one QR code file in the type you chose. Download it, then scan it with your phone to test it before printing.
TEST IT LIVE

Try QR Code in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/qr
Tool ID
images.qr
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/qr" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'text=example' \
  -F 'file_type=png' \
  -F 'size=512'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.qr({
    "text": "example",
    "file_type": "png",
    "size": 512
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->qr([
    'text' => 'example',
    'file_type' => 'png',
    'size' => 512,
]);
echo $result->requestId;
FAQ

Frequently asked questions

A QR code for any text or URL as PNG, SVG (vector) or PDF (vector): colours, size, quiet zone, error correction and an optional centred logo. Counts as one file.

QR Code accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

QR Code is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/qr with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.