UTF-8 to Hex Converter

To put text into a transaction you first encode it as UTF-8 bytes and then write those bytes as hex. This tool does that encoding so you can build string arguments and memos by hand. It runs entirely in your browser with no network call.

Type UTF-8 text to see its hex and Base64 encodings. To decode hex back to text, paste it below.

完全在浏览器中运行。无需 API 密钥,数据不离开本页面。

Characters to bytes

UTF-8 turns each character into one or more bytes, which are then written in hex. Hello becomes 48656c6c6f. This is how string data is prepared before it is packed into calldata or attached to an off-chain payload that a contract will reference.

Building calldata by hand

When you construct a raw transaction or a signed message without an ABI encoder, you need the hex byte form of any text field. Encoding it correctly here keeps the bytes aligned with what the contract or verifier expects.

常见问题

Are multi-byte characters supported?

Yes. Non-ASCII characters and emoji are encoded as their full multi-byte UTF-8 sequences in hex.

Does this upload my text?

No. Encoding happens locally in your browser. There is no server call and no API key.

相关工具

充值、拿密钥、上线。

自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。

获取 API 密钥