Barcode Generator API - Code128, EAN-13, UPC-A as SVG
Create printable Code128B barcodes from product codes, serial numbers, or arbitrary strings. The API encodes any printable ASCII text and returns a crisp SVG that scales for labels, invoices, and packaging.
Code examples
curl -X POST https://api.botoi.com/v1/barcode \
-H "Content-Type: application/json" \
-d '{"data":"1234567890128","width":200,"height":100,"show_text":true}'When to use this API
Product label printing
Generate EAN-13 or UPC barcodes from your product database and embed them in label templates. Print directly to thermal or laser printers for retail-ready packaging.
Internal inventory tracking
Encode internal SKU numbers as Code128 barcodes and print adhesive labels for warehouse shelves, bins, and pallets. Staff scan with handheld readers during pick-and-pack.
Invoice and shipping documents
Add a Code128 barcode to PDF invoices or packing slips. Encoding the order ID lets your fulfillment team scan the document to pull up order details instantly.
Frequently asked questions
Which barcode type should I use for retail products?
Can I encode letters and special characters?
Does the API validate check digits?
What output format does the API return?
How do I convert the SVG barcode to a PNG for printing?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.