Skip to content

Barcode

type: "barcode"4 styles · 12 properties

Renders 1D/linear barcodes (Code 128, EAN-13, UPC-A and other bwip-js symbologies) with optional human-readable text — ideal for tickets, SKUs and shipping labels.

Updated

Open in the editor
Preview · DefaultReal render, 1200 × 630
Barcode component, Default style, sample render
The barcode component’s default look.

Try your own data

Change the barcode here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.

4 styles

Pick one to preview it

Examples

Each example is the same barcode with different values. The JSON is what you send.

Parcel tracking label

A shipping label strip with the carrier tracking number in Code 128.

{
  "sku.value": "1Z999AA10123456784"
}

Warehouse bin label

A bin location code printed for rack labelling, text kept below the bars.

{
  "sku.value": "BIN-A12-045",
  "sku.barColor": "#1E3A8A"
}

Good for

  • Shipping labels with the tracking number encoded per parcel
  • Event and cinema tickets with unique entry codes
  • Retail shelf labels and price tags with product SKUs
  • Warehouse bin and asset labels generated in bulk

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.

Or ask your AI agent“Using imejis, make a 1200 × 630 image with a Barcode component (type "barcode") filled with my data, then give me a render link I can call with new values.”
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": "SKU-2026-0715"
  }' \
  -o image.png

Properties

Every property works the same in the editor, in design JSON and as an API override.

12 properties shown

PropertyTypeDefaultWhat it does
Data
valuestring—The raw value encoded into the barcode.
formatstring"code128"Barcode symbology (bwip-js bcid), e.g. 'code128', 'ean13', 'upca'.
Look
barColorcolor"#000000"Color of the bars (dark modules).
backgroundColorcolor"#ffffff"Background color behind the barcode.
displayValuebooleantrueShow the human-readable text below the bars.
textColorcolor—Human-readable text color (defaults to barColor).
Frame
opacitynumber1Overall component opacity from 0 (transparent) to 1 (opaque).
borderWidthnumber0Border thickness in pixels around the component.
borderColorcolor"transparent"Border color (any CSS color).
borderStyle'solid' | 'dashed' | 'dotted' | 'double' | 'none'"solid"Border line style.
borderRadiusnumber0Corner radius in pixels.
boxShadowstring—CSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)".

Barcode questions

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.

Can I hide the human-readable text under the bars?

Set displayValue to false to render bars only; when shown, textColor styles the text and defaults to barColor.

Free tools built on it, guides that use it, and the components that sit beside it.