Free plan

Styled QR code

Design a QR code with your own colours, shapes and logo
POST
/v1/images/qr-styled

About this tool

This makes a QR code (the square pattern a phone camera scans) with a look of your own. You can pick the shape of the dots and of the three corner squares, use one or two colours that blend into each other, add your logo in the middle, and put a frame with a short label such as Scan me. Keep the colours dark on a light background so phones can still read it.
For example, you make a QR code in your brand colours with rounded dots and your logo, with the words Scan me underneath.

How to use it

  1. Choose this tool.
  2. Type the web address or text the code should hold.
  3. Choose the dot shape, the corner shapes and the colours.
  4. Optionally add a logo with Upload and choose a frame and label.
  5. Press Generate, then download the code.

What you get back

You get one QR code picture (PNG, JPEG, WebP or SVG, as you chose) to download. Test it with your phone before you print it.
GOOD TO KNOW
The same data as the plain QR tool, drawn with your design. Check the contrast warning before printing. Counts as one image.
TEST IT LIVE

Try Styled 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-styled
Tool ID
images.qr-styled
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-styled" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'text=https://example.com' \
  -F 'file_type=png' \
  -F 'size=800'

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.qrStyled({
    "text": "https://example.com",
    "file_type": "png",
    "size": 800
  });
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()->qrStyled([
    'text' => 'https://example.com',
    'file_type' => 'png',
    'size' => 800,
]);
echo $result->requestId;
FAQ

Frequently asked questions

A QR code with a design of your own: dot shapes, eye shapes and colours, a gradient, a logo and a frame with a label, as PNG, JPEG, WebP or SVG.

Styled 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.

Styled 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-styled 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.