^FX Comment

Format start and end, separators, comments ZPL caret command

Adds a non-printing comment to a label format. The comment runs up to the next caret or tilde command.

Format ^FXc

^FX parameters

Parameters of ^FX
ParameterMeaningAccepted valuesDefault
cnon-printing commentp. 209

Free text that the printer ignores. It ends where the next ^ or ~ command begins.

Informational text. A caret (^) or tilde (~) ends the comment, and the guide says to avoid using either inside it.

Not stated in the guide.

^FX notes and gotchas

  • Gotcha

    Everything after ^FX up to the next caret or tilde command has no effect on the label. A caret or tilde inside the comment therefore ends it early, and the guide says to avoid them there.

    p. 209
  • Note

    The guide says correct use of ^FX includes following it with ^FS.

    p. 209
  • Note

    The ZBI chapter says a ZBI program can keep runtime data in printer memory by writing it as ^FX comments inside a stored format and reading that format back. This is a ZBI technique shown in its sample programs, not a documented use of ^FX in ordinary label formats.

    p. 512
  • Note

    Not stated by the guide: what ends a comment when the prefix characters have been changed. The entry names the caret and the tilde, while ^CC (page 152) and ^CT (page 166) change those characters.

    pp. 152, 166, 209

^FX example

example.zplZPL
^XA
^FXPrice tag for shelf 12^FS
^FO40,40^A0N,30,30^FDPrice tag^FS
^XZ

The comment holds no caret or tilde, ends at the ^FS that follows it, and does not change the label. The next field is an ordinary text field.

Guides that use ^FX

BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.

Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 60, 152, 166, 190, 201, 204, 209, 512.

Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.

ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.