📊

Barcode Generator API

Generate barcodes in multiple formats including Code128, EAN-13, UPC-A, Code39, ITF, and more. High-quality PNG output.

API Endpoint

POST /v1/barcode

Parameters

Name Type Required Description
datastringYesData to encode in the barcode
formatstringNoBarcode format: code128, ean13, upca, code39 (default: code128)
widthintegerNoBar width in pixels
heightintegerNoBarcode height in pixels

Quick Example

curl -X POST "https://api.toolcenter.dev/v1/barcode" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": "1234567890", "format": "code128"}' \
  --output barcode.png

Features

  • Multiple barcode formats (Code128, EAN-13, UPC, Code39, ITF)
  • Customizable width and height
  • With or without text label
  • PNG output format
  • Validation for format-specific data

Use Cases

Generate product barcodes for inventory

Create shipping labels

Build barcode scanning applications

Print asset tracking labels

Start Using Barcode Generator API for Free

500 free API calls per month. No credit card required.

Get Started Free