Barcode Generator
Generate barcodes in 11 symbologies including Code 128, EAN-13, and UPC-A
/v1/barcode/generate
curl "https://barcode.toolkitapi.io/v1/barcode/generate?data=ABC-12345&barcode_type=code128"
import httpx
resp = httpx.get(
"https://barcode.toolkitapi.io/v1/barcode/generate?data=ABC-12345&barcode_type=code128",
)
print(resp.json())
const resp = await fetch("https://barcode.toolkitapi.io/v1/barcode/generate?data=ABC-12345&barcode_type=code128", {
});
const data = await resp.json();
console.log(data);
# See curl example
<raw PNG image bytes — embed directly in an <img> tag or save to disk>
Try It Live
Description
How to Use
1. Make a GET request with `data` set to the value to encode and `barcode_type` set to the desired symbology (e.g. `code128`, `ean13`, `upca`).
2. Optionally add `format` (`png` or `svg`), `fg_color` and `bg_color` (hex values), `module_height`, `quiet_zone`, and `include_text` as query parameters.
3. The response is the raw image — use the URL directly as an image source or pipe the bytes to a file:
- ``
- `curl "..." -o barcode.png`
About This Tool
Use the Barcode Generator to create production-ready 1D barcodes in any of 11 supported symbologies. Pass your data and barcode type as query parameters and the API returns the raw PNG or SVG image directly — ready to embed in labels, invoices, inventory systems, or anywhere an image URL is accepted.
You can customise bar colour, background colour, bar height, quiet zone width, and whether human-readable text appears below the barcode.
Why Use This Tool
- Product labelling — Generate EAN-13 or UPC-A barcodes for retail packaging and point-of-sale scanning
- Inventory management — Create Code 128 labels for warehouse bins, shelves, and assets
- Shipping labels — Produce ITF barcodes for carton-level tracking in logistics
- Library systems — Generate ISBN-13 or ISBN-10 barcodes for book cataloguing
- Pharmaceutical packaging — Create PZN barcodes for German pharma regulatory compliance
- Dynamic embedding — Use the GET endpoint to embed barcodes directly in HTML emails or web pages
Frequently Asked Questions
What barcode types are supported?
Do I need to calculate the check digit for EAN/UPC barcodes?
Can I customise the barcode colours?
Start using Barcode Generator now
Get your free API key and make your first request in under a minute.