Skip to content

EAN-13 Barcode

Barcode style
type: "barcode"

Generate EAN-13 retail barcodes as images from any 13-digit GTIN, swapping the value on every API call. Create EAN-13 barcode images free with imejis.

Edit it — this is the actual editor panel
Design JSON — “EAN-13” variant
{
  "title": "Barcode sample",
  "description": "A dynamic Code 128 barcode",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-barcode",
      "key": "sku",
      "type": "barcode",
      "position": {
        "x": 240,
        "y": 140
      },
      "rotation": 0,
      "size": {
        "width": 320,
        "height": 140
      },
      "dynamic": true,
      "properties": {
        "value": "5901234123457",
        "format": "ean13",
        "barColor": "#000000",
        "backgroundColor": "#ffffff",
        "displayValue": true,
        "opacity": 1
      }
    }
  ]
}

Barcode examples

Real renders of the EAN-13 barcode — each one is the same component with different property values, and the API payload below each preview reproduces it exactly.

Book back-cover ISBN

An ISBN-13 rendered as the EAN barcode printed on a book jacket.

API overrides for this example
{
  "sku.format": "ean13",
  "sku.value": "9780306406157"
}

Grocery shelf label

A 13-digit GTIN on a supermarket price tag, bars in near-black.

API overrides for this example
{
  "sku.format": "ean13",
  "sku.value": "4006381333931",
  "sku.barColor": "#111827"
}

When to use the EAN-13 style

  • Product packaging artwork for international retail
  • Price tags and shelf labels
  • Catalog sheets with per-product barcodes

Use it dynamically via the API

Encode a different SKU/ticket per render via '<key>.value'; format and colors can also be overridden.

Full API request with this variant's current values — the playground above sends only the properties you change
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
    "sku.value": "5901234123457",
    "sku.format": "ean13",
    "sku.barColor": "#000000",
    "sku.backgroundColor": "#ffffff",
    "sku.displayValue": true,
    "sku.opacity": 1
}'

Only send the properties you want to change — everything else keeps its design value. See the API documentation for all languages.

Other barcode styles

See the barcode component page for the full property reference and FAQs.

We use cookies to run the site and, depending on your region and your choice here, for analytics and marketing. See our Cookie Policy. You can change this any time from “Cookie settings” in the footer.