Reference > Functions reference > Container functions > HexDecode
Returns either container or text content from text encoded in hexadecimal format.
data - text expression or text field that contains hexadecimal data to decode.
fileNameWithExtension - text expression or text field that contains the filename and extension to use when the returned content is stored in a container field.
Data type returned 
text, container
Originated in 
FileMaker Pro 16.0
Hex encoding does not retain the filename or extension of encoded content, so you can use the fileNameWithExtension parameter to specify this information if you store the returned content of HexDecode in a container field. If a filename and extension are not specified, HexDecode returns text rather than container content.
This function is not supported in runtime solutions and returns "?".
Example 1 
HexDecode ( "46696C654D616B6572" ) returns FileMaker.
Example 2 
Decodes hexadecimal data in a text field and stores it as a file named in a container field.
Set Field [ table::container ; HexDecode ( table::text ; "" ) ]
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas