- Components
- Barcode
- EAN-13
EAN-13 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.
Updated

What this style sets
A style is the barcode component with a few properties set. Send these, or start from the style in the editor.
{
"sku.format": "ean13",
"sku.value": "5901234123457"
}Good for
- Product packaging artwork for international retail
- Price tags and shelf labels
- Catalog sheets with per-product barcodes
Try your own data
Change the EAN-13 barcode here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.
Examples
Each example is the same EAN-13 barcode with different values. The JSON is what you send.
Book back-cover ISBN
An ISBN-13 rendered as the EAN barcode printed on a book jacket.
{
"sku.format": "ean13",
"sku.value": "9780306406157"
}Grocery shelf label
A 13-digit GTIN on a supermarket price tag, bars in near-black.
{
"sku.format": "ean13",
"sku.value": "4006381333931",
"sku.barColor": "#111827"
}New values, every render
Encode a different SKU/ticket per render via '<key>.value'; format and colors can also be overridden. Send only the properties you want to change; everything else keeps its design value. The API guides cover every language.
curl -X POST "https://render.imejis.io/v1/$IMEJIS_DESIGN_ID" \
-H "dma-api-key: $IMEJIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sku.value": "5901234123457",
"sku.format": "ean13"
}' \
-o image.pngconst res = await fetch(`https://render.imejis.io/v1/${process.env.IMEJIS_DESIGN_ID}`, {
method: "POST",
headers: {
"dma-api-key": process.env.IMEJIS_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"sku.value": "5901234123457",
"sku.format": "ean13"
}),
})
if (!res.ok) throw new Error(`render failed: ${res.status}`)
const image = Buffer.from(await res.arrayBuffer())import os
import requests
response = requests.post(
f"https://render.imejis.io/v1/{os.environ['IMEJIS_DESIGN_ID']}",
headers={
"dma-api-key": os.environ["IMEJIS_API_KEY"],
"Content-Type": "application/json",
},
json={
"sku.value": "5901234123457",
"sku.format": "ean13"
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other barcode styles
EAN-13 Barcode questions
What does the EAN-13 style change on the barcode component?
Retail product barcode used outside North America (13-digit GTIN). It sets 2 properties on the barcode component: format, value. Everything else keeps the component's defaults, so your data and layout carry over.
How do I render the EAN-13 barcode through the API?
Add a barcode component to a design, then send its data together with the style's properties as flat overrides (for example sku.format and sku.value) in the render request. Each render can carry different data while keeping the EAN-13 look.
Which barcode formats are supported?
The format property accepts any bwip-js symbology id (bcid) — 'code128' by default, plus 'ean13', 'upca' and the rest of the bwip-js catalog.
Can I encode a different value on each API call?
Yes — pass '<key>.value' in the modifications JSON; the format and colors can be overridden per render too.
Where the barcode component fits
Free tools built on it, guides that use it, and the components that sit beside it.


