--- title: toUtf8 --- # 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 ```