--- title: toUtf8 description: "Converts a hex string into its UTF-8 decoded string value." keywords: ["toutf8", "utils", "hex to utf8", "decode hex", "tronweb"] --- # toUtf8 Helper function that will convert HEX to UTF8. ### Usage ```JavaScript TronWeb.toUtf8(value); ``` ### Parameters | Parameter | Description | Data Type | | --------- | ----------- | --------- | | value | A hex string | String | ### Return String - The UTF8 value of the passed in hex string. ### Example ```JavaScript TronWeb.toUtf8("0x74657374"); // output-start 'test' // output-end ```