---
source: https://carbone.io/examples/label-barcode/
title: "Create shipping label | Carbone Sample"
description: "Generate shipping label effortlessly with Carbone. Merge JSON data with templates in DOCX, PPTX, XLSX, ODT, ODP, ODS, HTML, MD, XML, and more."
generated_at: "2026-07-13"
---

# Barcodes On Labels

Generate stunning labels effortlessly with Carbone

[![label-barcode thumbnail](/examples/label-barcode/thumb-result.webp)](/examples/label-barcode/result.pdf)

[Download Template](/examples/label-barcode/template.docx)

[Download data sample](/examples/label-barcode/data.json)

-   Template type document docx simple
-   Carbone min. v4.0.0+
-   Features barcode loop
-   Target label custom

## Overview

Learn how to generate professional shipping labels that include:

-   Barcodes
-   Company logos

This example demonstrates how to create a template for printing shipping labels using Carbone's document generation capabilities.

## Step-by-Step Guide

### 1\. Set Up the Layout

-   Choose your preferred page size and adjust margins
-   Create a table to organize your label elements
-   Place Carbone template tags in strategic positions
-   Select appropriate fonts for optimal readability

### 2\. Add Barcodes

To include barcodes in your labels:

1.  Insert placeholder images where you want the barcodes to appear
2.  Right-click each placeholder image
3.  Select the **View Alt Text** menu option
4.  Add the barcode formatter syntax:

```text
{d.rows[i].mainContent.ssccNo:barcode(code128, width:1000, height:400, scale:1, includetext:false, svg:true):imageFit(contain)}
```

Learn more about [barcode formatting options](/documentation/design/advanced-features/barcode.md).

### 3\. Enable Multiple Labels

To generate multiple labels:

1.  Insert a **page break** after your label design
2.  Use the iteration syntax `[i+1]` to create subsequent labels. Example: `{d.rows[i+1]}`

That's it! Your template is now ready to generate professional shipping labels with barcodes.

## Related Examples

[![stock-inventory-spreadsheet thumbnail example](/examples/stock-inventory-spreadsheet/thumb-result.webp)](/examples/stock-inventory-spreadsheet/index.md)

## Trusted by 800+ paid customers in 40+ countries

## Related topics

- [Transport ticket](/examples/ticket/index.md)
- [Summary](/examples/summary/index.md)
- [Stock inventory spreadsheet](/examples/stock-inventory-spreadsheet/index.md)
- [Store Inventory](/examples/shoes/index.md)
- [Sensor readings](/examples/sensor-readings/index.md)
- [Real estate property document](/examples/real-estate-property-description/index.md)
