- Components
- Barcode
- UPC-A
UPC-A Barcode
Generate North-American UPC-A retail barcodes from 12-digit codes, overriding the value on every API call. Create UPC 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": "upca",
"sku.value": "036000291452"
}Good for
- US and Canada retail packaging
- Point-of-sale labels
- Product listing images with scannable UPCs
Try your own data
Change the UPC-A 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 UPC-A barcode with different values. The JSON is what you send.
US retail packaging
A 12-digit UPC placed on packaging artwork for North-American retail.
{
"sku.format": "upca",
"sku.value": "042100005264"
}Point-of-sale price tag
A compact UPC-A strip for a checkout-scannable shelf price tag.
{
"sku.format": "upca",
"sku.value": "012345678905"
}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": "036000291452",
"sku.format": "upca"
}' \
-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": "036000291452",
"sku.format": "upca"
}),
})
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": "036000291452",
"sku.format": "upca"
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other barcode styles
UPC-A Barcode questions
What does the UPC-A style change on the barcode component?
North-American retail barcode (12-digit UPC). 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 UPC-A 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 UPC-A 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.


