Bulk Barcode Generator
Generate up to 20 barcodes in a single API request
/v1/barcode/bulk
curl -X POST "https://barcode.toolkitapi.io/v1/barcode/bulk" \
-H "Content-Type: application/json" \
-d '{
"items": [
{"data": "ABC-001", "barcode_type": "code128"},
{"data": "ABC-002", "barcode_type": "code128"},
{"data": "4006381333931", "barcode_type": "ean13"}
],
"format": "png"
}'
import httpx
resp = httpx.post(
"https://barcode.toolkitapi.io/v1/barcode/bulk",
json={
"items": [
{"data": "ABC-001", "barcode_type": "code128"},
{"data": "ABC-002", "barcode_type": "code128"},
{"data": "4006381333931", "barcode_type": "ean13"}
],
"format": "png"
},
)
print(resp.json())
const resp = await fetch("https://barcode.toolkitapi.io/v1/barcode/bulk", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"items": [
{"data": "ABC-001", "barcode_type": "code128"},
{"data": "ABC-002", "barcode_type": "code128"},
{"data": "4006381333931", "barcode_type": "ean13"}
],
"format": "png"
}),
});
const data = await resp.json();
console.log(data);
# See curl example
{
"total": 3,
"format": "png",
"results": [
{"data": "ABC-001", "image": "iVBORw0KGgo...base64...", "barcode_type": "code128"},
{"data": "ABC-002", "image": "iVBORw0KGgo...base64...", "barcode_type": "code128"},
{"data": "4006381333931", "image": "iVBORw0KGgo...base64...", "barcode_type": "ean13"}
]
}
Try It Live
Description
How to Use
1. Build an `items` array where each object contains at least a `data` field. Optionally set `barcode_type`, `include_text`, `fg_color`, and `bg_color` per item.
2. Send a POST request with the items array. The `format` field at the top level is fixed to `png` for bulk generation.
3. The response returns a `results` array in the same order as your input, each containing the `data`, `image` (base64 PNG), and `barcode_type`.
4. Iterate through the results to save or embed each barcode image. The `total` field confirms how many were generated.
About This Tool
Use the Bulk Barcode Generator to create up to 20 barcodes in a single API call. Instead of making separate requests for each barcode, batch them together to reduce latency and simplify your integration.
Each item in the batch can use a different symbology, data value, colour scheme, and text settings. The API processes all items and returns base64-encoded PNG images for each one. If any single item fails (e.g. invalid data for the chosen symbology), the entire request returns an error identifying the offending item.
This endpoint is ideal for label printing workflows, batch inventory setup, or any scenario where you need multiple barcodes generated at once.
Why Use This Tool
- Label printing — Generate a sheet of barcodes for products, bins, or assets in one call
- Batch inventory setup — Create Code 128 labels for a new warehouse zone or stock intake
- Product catalogue — Generate EAN-13 barcodes for an entire product line at once
- Shipping preparation — Produce barcodes for a batch of parcels before printing labels
- Testing and QA — Generate sample barcodes across multiple symbologies for scanner testing
Frequently Asked Questions
What is the maximum batch size?
Can I mix different barcode types in one batch?
What happens if one barcode in the batch fails?
Is SVG output supported for bulk generation?
Start using Bulk Barcode Generator now
Get your free API key and make your first request in under a minute.