home / data / bytes32-string-converterlocal
bytes32 String Converter
Pack short text into a bytes32 value, or read one back. Used for Solidity bytes32 names and IDs.
bytes32-string-converterready · runs in this browser
Runs locally in your browser. Nothing you type is sent anywhere.
data tools · free · runs in your browser · no sign-up · no wallet
01 // about this tool
Solidity stores short strings as bytes32, with the text bytes first and zeros after. Many contracts use this for names and IDs. This tool converts either way.
02 // how to use it
- Enter text or a bytes32 hex value.
- Pick the direction.
- Press Run.
03 // faq
What is the length limit?
32 bytes. Non-ASCII characters take more than one byte.
Is it padded left or right?
Strings are right-padded with zeros. Numbers are left-padded.