Free plan

Bulk codes from a sheet

Make a QR code or barcode for every row of a list
POST
/v1/images/codes-bulk

About this tool

Reads a list (a spreadsheet file such as CSV, Excel or JSON) and makes one QR code or barcode for each row. You choose which column holds the values, the code type, the size and the colours. You can also add some text in front of every value, such as a web address. Everything arrives together in one ZIP file with a list of what was made.
For example, you upload a list of 200 ticket numbers and get 200 QR codes in one download.

How to use it

  1. Choose this tool.
  2. Add your list file with Upload or drag and drop. The first row must hold the column names.
  3. Choose the column to use and the type of code.
  4. Press Generate.
  5. Download the ZIP file.

What you get back

You get one ZIP file with a code picture for each row, plus a list that says which file belongs to which value.
GOOD TO KNOW
Each value is checked for the chosen symbology (for example an EAN-13 needs 12 or 13 digits); values that do not fit are listed in warnings. Counts as one image.
TEST IT LIVE

Try Bulk codes from a sheet 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/codes-bulk
Tool ID
images.codes-bulk
Authentication
API key
Accepts
XLSX, ODS, MD, HTML, XLS, CSV +9 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/codes-bulk" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'data_file=@photo.jpg' \
  -F 'column=sku' \
  -F 'name_column=product' \
  -F 'prefix=label-'

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.codesBulk({
    "data_file": 'photo.jpg',
    "column": "sku",
    "name_column": "product",
    "prefix": "label-"
  });
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()->codesBulk([
    'data_file' => 'photo.jpg',
    'column' => 'sku',
    'name_column' => 'product',
    'prefix' => 'label-',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Make one QR code or barcode for every row of a sheet (CSV, TSV, Excel or JSON) and get them all in one ZIP, named from the sheet, with a manifest.

Bulk codes from a sheet accepts XLSX, ODS, MD, HTML, XLS, CSV, JSON, XML, TSV, NDJSON, YAML, TOML and 3 more. You can send several files in one request.

Bulk codes from a sheet is included in every plan, including Free. Each run uses credits from your monthly allowance.

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