^FH Field Hexadecimal Indicator

Field data ZPL caret command

Lets the field data that follows contain hexadecimal values for characters. A marker character, an underscore by default, introduces each value.

Format ^FHa

^FH parameters

Parameters of ^FH
ParameterMeaningAccepted valuesDefault
ahexadecimal indicatorp. 193

The character that introduces a hexadecimal value inside the field data. Use it when the default underscore is not suitable.

Any character except the current format and control prefixes (^ and ~ by default).

_

An underscore.

^FH notes and gotchas

  • Gotcha

    ^FH must precede each ^FD that uses hexadecimal values, so it is sent again for every field that needs it.

    p. 193
  • Interaction

    What a hexadecimal value means depends on the encoding chosen with ^CI. The guide's examples write each byte as its own indicator-and-value group. For the one character U+00A1 it shows _C2_A1 under ^CI28 (UTF-8) and _00_A1 under ^CI29 (UTF-16 big-endian).

    pp. 157, 193, 194
  • Interaction

    With ^CI0 selected, the guide uses ^FH to put a tilde into the data by its hexadecimal value, and shows the same thing with a different indicator character.

    p. 193
  • Note

    Inside the field data, the indicator must come before each hexadecimal value. The guide says a minimum of two characters must follow the indicator; it does not say what happens with more, and its examples use two hexadecimal digits per byte.

    pp. 193, 194
  • Note

    Valid hexadecimal characters are 0 to 9, A to F and a to f.

    p. 193
  • Note

    ^FH works with the commands that carry field data: ^FD, ^FV and ^SN.

    p. 193

^FH example

example.zplZPL
^XA
^FO40,40^A0N,30,30^FH#^FDRef #7E 12^FS
^XZ

^FH# makes # the indicator for this field. In the data, #7E is the hexadecimal value 7E, the code of the tilde character, so the field data stands for Ref ~ 12 with a tilde the data itself could not contain directly. The example assumes the initial character set of ^CI0.

Guides that use ^FH

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, 157, 190, 193, 194, 201, 204.

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.