---
title: "Barcode in Word – Field Codes & Mail Merge Labels"
description: "How to add barcodes in Microsoft Word with DISPLAYBARCODE, print barcode labels with mail merge and MERGEBARCODE, or insert free generated barcode images."
url: https://barcodejar.com/barcode-in-word
source: BarcodeJar (free barcode tools)
---

# How to Make Barcodes in Word

Word can draw barcodes itself with the DISPLAYBARCODE field, and MERGEBARCODE puts a barcode on every mail-merge label. Or make a barcode image here and insert it.

_Interactive tool: open https://barcodejar.com/barcode-in-word to use it in your browser. It is free with no sign-up._

## How to add a barcode in Word

1.  Press Ctrl+F9 to insert field braces where the barcode should go.
2.  Type `DISPLAYBARCODE "your value" CODE128` inside the braces.
3.  Press F9 to update the field and show the barcode.
4.  For labels from a spreadsheet, use Mailings → Labels with a `MERGEBARCODE` field, or our [label generator](https://barcodejar.com/barcode-label-generator).

**Short answer:** press Ctrl+F9 in Word to insert field braces and type `DISPLAYBARCODE "INV-55120" CODE128`, then press F9 to update. For labels from a spreadsheet, use mail merge with `MERGEBARCODE`. Supported types include QR, CODE128, CODE39, EAN13, EAN8, UPCA, UPCE, ITF14 and NW7 (Codabar).

## Method 1: DISPLAYBARCODE field

1.  Click where you want the barcode and press Ctrl+F9 (on Mac, Cmd+F9) to insert field braces `{ }`. Do not type the braces yourself.
2.  Inside, type for example `DISPLAYBARCODE "INV-55120" CODE128 \h 1000`. The `\h` switch sets the height in twips.
3.  Right-click and choose _Toggle Field Codes_ or press F9 to show the barcode.

Values must be valid for the type: EAN13 needs 12 or 13 digits, CODE39 capitals and digits, and so on, or Word shows an error.

## Method 2: mail merge barcode labels

1.  Go to **Mailings → Start Mail Merge → Labels** and choose your label product (for example Avery 5160).
2.  **Select Recipients** and pick your Excel file or CSV.
3.  In the first label, insert field braces and type `MERGEBARCODE SKU CODE128`, where SKU is your column name. Add any other merge fields, such as the product name.
4.  Click **Update Labels**, then **Finish & Merge**.

Prefer not to deal with field codes? Our [label generator](https://barcodejar.com/barcode-label-generator) prints barcodes from a pasted list straight onto Avery and thermal labels as a PDF.

## Method 3: INCLUDEPICTURE with the barcode API

Word for Windows can pull an image from a URL with an INCLUDEPICTURE field, which gives you any of our 100+ barcode types from the free [barcode API](https://barcodejar.com/barcode-api). Press Ctrl+F9 and type `INCLUDEPICTURE "https://barcodejar.com/api/barcode?type=upca&data=012345678905" \d`, then press F9. In a mail merge you can nest a merge field in the URL, for example `data={ MERGEFIELD SKU }`, then select all and press F9 after merging to refresh the images.

## Method 4: insert a barcode image

Make the barcode above, download it as PNG (or SVG in recent versions of Word), then use **Insert → Pictures**. Images work in every version of Word and support all 100+ barcode types on this site. For many images, use the [bulk generator](https://barcodejar.com/bulk-barcode-generator).

See also: [barcode generators for every platform, product and use case](https://barcodejar.com/barcode-generator-for).

## Frequently asked questions

### Does Word have a barcode generator?

Yes. Word 2013 and later include the DISPLAYBARCODE and MERGEBARCODE field codes, which draw barcodes such as Code 128, Code 39, EAN-13, UPC-A and QR.

### Why does my DISPLAYBARCODE field show an error?

The value is not valid for the barcode type (for example letters in EAN13), or the braces were typed instead of inserted with Ctrl+F9.

### How do I print barcode labels with mail merge?

Start a Labels mail merge, connect your spreadsheet, and add a MERGEBARCODE field with your column name and barcode type in the first label. Then Update Labels and Finish & Merge.

### Can I use a barcode font in Word?

Yes, Code 39 fonts work if you add \* at both ends. Code 128 and UPC fonts need encoded text. See the [barcode fonts guide](https://barcodejar.com/barcode-fonts).

### What label sizes can I print?

Any label Word lists, such as Avery 5160 (30 per sheet). Our [label generator](https://barcodejar.com/barcode-label-generator) also supports A4 and thermal sizes.

## Related free tools

[**Barcode Label Generator**Print barcodes on Avery and other label sheets as PDF.](https://barcodejar.com/barcode-label-generator)[**Free Barcode API**Barcode images by URL for img tags, Google Sheets and Excel.](https://barcodejar.com/barcode-api)[**Bulk Barcode Generator**Paste a list or CSV, download hundreds as ZIP or PDF.](https://barcodejar.com/bulk-barcode-generator)[**Barcodes in Excel**IMAGE() formula with our free barcode API, or fonts and bulk images.](https://barcodejar.com/barcode-in-excel)[**Barcode Fonts**Free Libre Barcode fonts, how to use them, and when to use images instead.](https://barcodejar.com/barcode-fonts)[**Barcodes in Google Sheets**One IMAGE() formula with our free barcode API, or Libre Barcode fonts.](https://barcodejar.com/barcode-in-google-sheets)[![Code 128 Generator example](/thumbs/code128.svg)**Code 128 Generator**Create Code 128 barcodes free. PNG, SVG, PDF.](https://barcodejar.com/code-128-barcode-generator)[**How to Print Barcodes**Printers, labels and settings that scan first time.](https://barcodejar.com/guides/how-to-print-barcodes)
