UPC-A barcode

Barcode styletype: "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.

Edit it — this is the actual editor panel
Design JSON — “UPC-A” 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": "036000291452",
        "format": "upca",
        "barColor": "#000000",
        "backgroundColor": "#ffffff",
        "displayValue": true,
        "opacity": 1
      }
    }
  ]
}

Barcode examples

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

US retail packaging

A 12-digit UPC placed on packaging artwork for North-American retail.

API overrides for this example
{
  "sku.format": "upca",
  "sku.value": "042100005264"
}

Point-of-sale price tag

A compact UPC-A strip for a checkout-scannable shelf price tag.

API overrides for this example
{
  "sku.format": "upca",
  "sku.value": "012345678905"
}

When to use the upc-a style

  • US and Canada retail packaging
  • Point-of-sale labels
  • Product listing images with scannable UPCs

Use it dynamically via the API

Encode a different SKU/ticket per render via '<key>.value' (or just '<key>'); 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": "036000291452",
    "sku.format": "upca",
    "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.