Free plan

Parse code content

Find out what a QR code or barcode contains and does
POST
/v1/images/parse-code

About this tool

Explains what kind of information a QR code or barcode holds, such as a website link, a contact card, a Wi-Fi login, a phone number, a payment or a product number. You can give it a picture of the code, or type the text of the code. It also checks that the content looks valid.
For example, you see what a QR code will do before you scan it with your phone.

How to use it

  1. Choose this tool.
  2. Add a picture with the code using Upload or drag and drop, or paste the code text instead.
  3. Press Generate.
  4. Read what the code means.

What you get back

You get the type of each code and its details shown on screen in a clear way, which you can copy.
GOOD TO KNOW
Pure text work for `content`; a picture is read with the same decoder as the decode-codes tool. Counts as one image per picture.
TEST IT LIVE

Try Parse code content 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/parse-code
Tool ID
images.parse-code
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/parse-code" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'content=WIFI:T:WPA;S:Cafe;P:secret;;' \
  -F 'formats=["example"]' \
  -F 'include_raw=true'

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.parseCode({
    "content": "WIFI:T:WPA;S:Cafe;P:secret;;",
    "formats": [
      "example"
    ],
    "include_raw": true
  });
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()->parseCode([
    'content' => 'WIFI:T:WPA;S:Cafe;P:secret;;',
    'formats' => ['example'],
    'include_raw' => true,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Say what the text of a QR code or barcode means (Wi-Fi login, contact, event, link, phone, message, place, e-mail, payment, one-time-password setup, product number …), from `content` or from the code in a picture.

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

Parse code content is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/parse-code 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.