Plain English

The actual content — text to display, barcode data to encode, or an RFID payload to write. Everything between `^FD` and `^FS` is the data. When the field is preceded by `^FH`, the data may include hex-escape sequences (e.g. `\20` for space, `\0A` for newline) which the printer decodes into bytes.

When to use

In every field that has content. `^FD` always pairs with `^FS`. Pair with `^FH` to embed control characters or non-printable bytes.

Syntax

^FDdata^FS

Parameters

ParameterDescription
dataThe content: text, barcode number, RFID hex, or `^FH`-escaped sequence

Example

^XA
^FH\
^FO50,50^A0N,30,30^FDLine 1\0ALine 2^FS
^XZ

`^FH\` declares `\` as the hex escape; `\0A` decodes to a newline byte inside the field data.

Try it in the playground View all ZPL commands