# How to Scan Barcodes with Embedded Weight

Updated February 6, 2023 · https://help.loyverse.com/help/barcodes-with-embedded-weight

[▶ Video](https://www.youtube.com/watch?v=9IxBzxlNZFg)

The option allows you to scan barcodes containing the item SKU and its weight. When scanning such a barcode, the item is automatically added to the receipt with the indicated weight (quantity). The system allows the use of weighted barcodes in the following formats: EAN 13 and UPC-A.

To use this feature, log in to your [Back Office](https://loyverse.com/en/login), click on the Settings icon on the left menu bar to go to the System settings.   
 In the ‘Features’ section, switch on the parameter for ‘Barcodes with embedded weight’.  Click the ‘Save’ button.

![parameter Barcodes with embedded weight](https://help.loyverse.com/media/images/weight-barcodes.max-1000x1400.format-jpeg.jpegquality-72.jpg)

At your POS, you can [sell items by scan barcodes](https://help.loyverse.com/help/how-sell-items-using-barcode) with embedded weight using the device camera or barcode scanner.

Barcodes with embedded weight format should follow the pattern:  
 **YYCCCCCWWWWWX**  
 **YY** - prefix, by which the system determines that it is a weight embedded barcode. It must be “20” or “02” for EAN 13 and “2” for UPC-A.  
 **CCCCC** - item SKU (note that it has to be programmed as five digits, for example "10010" or "00010").  
 **WWWWW** - weight (quantity) of item in grams. For example "01750" = 1.750kg  
 **X** - barcode checksum

Samples of barcodes with embedded weight

EAN 13

![EAN 13 barcode with embedded weight](https://help.loyverse.com/media/images/weight-barcodes_BT932Y8.max-1000x1400.format-jpeg.jpegquality-72.jpg)

UPC-A

![UPC-A barcode with embedded weight](https://help.loyverse.com/media/images/weight-barcodes_atB4ssR.max-1000x1400.format-jpeg.jpegquality-72.jpg)

**Note:** Items should have the ['sold by weight' option](https://help.loyverse.com/help/how-sell-items-weight) on. Otherwise, you will receive an error message when scanning barcodes with embedded weight.

![sold by weight option](https://help.loyverse.com/media/images/EN_How_to_scan_.max-1000x1400.format-jpeg.jpegquality-72.jpg)

**See also:**

[How to Sell Items Using Barcode Scanners](https://help.loyverse.com/help/how-sell-items-using-barcode)

[How to Sell Items by Weight](https://help.loyverse.com/help/how-sell-items-weight)
