---
title: "Enumeration: BarcodeFormat | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/enums/Barcode.BarcodeFormat/"
---

# Enumeration: BarcodeFormat

> An enumeration of barcode formats.

## Example

``` js
var configuration = {
   autoLoadUserInfo: true,
   userInfo: {
       "Ean 8": {
           "BarcodeFormat": "EAN_8",
           "BarcodeValue": "1234567"
       },
       "Ean 13": {
           "BarcodeFormat": "EAN_13",
           "BarcodeValue": "123456789012"
       },
       "Qr Code": {
           "BarcodeFormat": "QR_CODE",
           "BarcodeSubType": "Url",
           "Url": "https://example.com"
       }
   }
};
```

## Enumeration Members

### 128

> **128**: `"CODE_128"`

Design element representing a barcode in the Code 128B format.

***

### 8

> **8**: `"EAN_8"`

Design element representing a linear EAN-8 code.

***

### 13

> **13**: `"EAN_13"`

Design element representing a linear EAN-13 code.

***

### A

> **A**: `"UPC_A"`

Design element representing a 13-digit UPC-A code.

***

### E

> **E**: `"UPC_E"`

Design element representing an 8-digit UPC-E code.

***

### CODE

> **CODE**: `"QR_CODE"`

Design element representing a QR code. Together with QR codes, you can specify [BarcodeSubType](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/enums/Barcode.BarcodeSubType.md).

***

### MATRIX

> **MATRIX**: `"DATA_MATRIX"`

Design element representing a DataMatrix code.
