Generate Code128, EAN-13, UPC-A, ITF-14, and 20+ other barcode formats via a single REST endpoint. Get PNG, SVG, or base64 output in under 100ms. Built for retail, logistics, healthcare, and inventory systems.
20+
Formats
<100ms
Response
PNG/SVG
Output
Live Barcode Generator — Try It Now
Select Format
Barcode preview will appear here
CAPABILITIES
20+ formats, full visual customisation, and sub-100ms response times — built for retail labelling, logistics, healthcare, and any system that needs barcodes on demand.
Generate Code128, EAN-13, EAN-8, UPC-A, UPC-E, Code39, Code93, ITF, ITF-14, Codabar, MSI, and more. One API endpoint family covers every standard format used in retail, logistics, and healthcare.
Choose your output format: PNG for print and display, SVG for scalable web embedding, or base64 for inline HTML and JSON payloads. Each format is returned directly in the response body.
Control width, height, background colour, foreground colour, quiet zone margins, font size, and text position. Generate barcodes that match your brand or label specification exactly.
Barcodes are generated on-demand and returned in under 100ms for all supported formats. Suitable for real-time label printing, order fulfilment workflows, and high-throughput batch generation.
Output is sized for label printers and print-on-demand workflows. EAN-13 and UPC-A output meets GS1 specification dimensions for retail shelf scanning and point-of-sale systems.
No SDK required. POST a JSON body with the barcode value and parameters, receive the image in the response. Integrate from Python, Node.js, PHP, Go, Ruby, or any HTTP client in minutes.
USE CASES
From retail product labels to healthcare wristbands and logistics tracking, the API generates the right barcode format for your workflow — on demand.
Retailers and e-commerce platforms generate EAN-13 and UPC-A barcodes for product labelling, price tags, and inventory management. This API generates print-ready barcode images on demand — no barcode library required in your application.
Generate GS1-compliant EAN-13 and UPC-A barcodes for retail scanning
Print-ready PNG output sized for standard label printer formats
Automate label generation at product creation or import time
Support multiple barcode formats for different retail platforms and regions
Generating barcodes locally requires a font library, renderer, and format-specific encoding logic. This API removes all of that — POST the product code, receive a print-ready image.
HOW TO START
Sign up at apitier.com — no credit card required. Your API key and free trial credits are available in the dashboard immediately after registration.
Send a POST request with the barcode text and any customisation parameters — format, size, colours, and text display. The API returns the barcode image directly in the response body.
Use the PNG response for label printing or display, SVG for scalable web embedding, or base64 for inline use in PDF templates and HTML documents. No additional processing required.
INTEGRATION
Sign up for a free API key, then POST your barcode value and parameters. Works from any language — no SDK, no dependencies.
curl -X POST \
"https://barcode.apitier.com/generate/ean13?x-api-key=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "5901234123457",
"displayValue": "true",
"width": 2,
"height": 100
}' \
--output barcode.pngFAQ
Which barcode formats does the API support?
The API supports 20+ formats including Code128, EAN-13, EAN-8, UPC-A, UPC-E, Code39, Code93, ITF, ITF-14, Codabar, MSI Plessey, and more. Use the corresponding endpoint for each format — for example, /generate/ean13 or /generate/code128.
What image formats does the API return?
The API returns barcodes as PNG images by default. SVG vector output and base64-encoded strings are also supported. PNG is suitable for printing and display; SVG scales without loss of quality; base64 is ideal for embedding in HTML templates or JSON payloads.
Can I customise the barcode appearance?
Yes. The API accepts width, height, background colour, foreground (line) colour, font size, text position, text margin, and quiet zone size as request parameters. These let you match the barcode output to your label specification or brand guidelines.
How fast does the API generate barcodes?
Generation time is under 100ms for all supported formats. The API is designed for real-time use in label printing workflows, order fulfilment systems, and on-demand document generation pipelines.
Is EAN-13 output GS1-compliant and suitable for retail scanning?
Yes. EAN-13 and UPC-A output follows GS1 encoding rules and is generated at dimensions suitable for retail point-of-sale scanning. The output is appropriate for product labelling in compliance with major retailer requirements.
Can I generate barcodes for PDF labels and documents?
Yes. Use base64 output to embed barcodes directly in HTML or PDF templates without writing image files. SVG output is ideal for vector PDF rendering where print quality at any resolution is required.
Do I need to install a barcode library?
No. The API handles all barcode encoding and rendering server-side. You send a POST request with the barcode value and parameters, and receive the image in the response — no local library, font, or renderer required.
Can I use this for bulk or batch barcode generation?
Yes. The endpoint is stateless and designed for programmatic use. Call it in a loop or batch script to generate large numbers of barcodes — one barcode per request. The API is suitable for generating labels at product import time, SKU creation, or batch label printing runs.