Web3S_Demo > Web 3S String Utils Function Library > String to Hex

String to Hex

Converts the text string to a string containing the corresponding
character byte values written in two-digit lowercase hex format.

Inputs

Text String
String

The text string to be converted to a hex string.

With Prefix
Boolean

If true, the hex code will be prefixed with "0x" (Default: True).

Outputs

Return Value
String

Hex string of the input text string.