ToHex

circle-info

The ToHex() function converts a text or number to its hexadecimal equivalent.

This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.

circle-check

Syntax

chevron-rightToHex(text)hashtag

ToHex("qwertyuiop1234567890") =>"71776572747975696f7031323334353637383930"

chevron-rightToHex(number)hashtag

ToHex(255) =>"FF"

ToHex(255.2) =>"FF"

ToHex(255.7) =>"FF"

Parameters

Name
Type
Required
Description

text

text

☑️

Original text to be converted to hexadecimal.

number

numeric

☑️

Numeric value to be converted to hexadecimal. Only the integer part of a number will be used, any decimals will be ignored.

Last updated

Was this helpful?