Code128
EAN-13
UPC-A
20+ Formats
PNG & SVG

Barcode Generator API —
Any Format, Instantly

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

Code128
EAN-13
UPC-A
ITF-14
Code39

Barcode preview will appear here

CAPABILITIES

Everything You Need for Barcode Generation

20+ formats, full visual customisation, and sub-100ms response times — built for retail labelling, logistics, healthcare, and any system that needs barcodes on demand.

20+ Barcode Formats

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.

PNG, SVG & Base64 Output

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.

Full Visual Customisation

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.

Sub-100ms Generation

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.

Print-Ready High Resolution

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.

Works in Any Language

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

Barcode Generation for Real Business Workflows

From retail product labels to healthcare wristbands and logistics tracking, the API generates the right barcode format for your workflow — on demand.

Retail & E-commerce

Generate Product Labels and EAN Barcodes for Retail

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 EAN-13 barcodes for new product SKUs at catalogue creation
Print UPC-A labels for items being listed on Amazon or eBay
Create Code128 shelf labels with internal product reference codes
Why teams use it

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

Why this beats a local barcode library

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.

EAN-13
UPC-A
Code128
PNG/SVG

HOW TO START

Get Started in 3 Easy Steps

01

Get Your Free API Key

Sign up at apitier.com — no credit card required. Your API key and free trial credits are available in the dashboard immediately after registration.

02

POST Your Barcode Value

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.

03

Embed or Print the Output

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

Start Generating Barcodes in Minutes

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.png

FAQ

Frequently Asked Questions

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.

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.

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.

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.

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.

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.

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.

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.