Base Converter
Hex, decimal, binary and UTF-8 in either direction.
Runs offline
Enter a value in any row. The others update from it.
About base converter
Hex, decimal, binary and UTF-8 text, converted through a single big-integer representation so nothing overflows at 2⁵³ the way naive JavaScript conversions do. Useful for reading bytes32 values, decoding string constants out of contract storage, and checking that a number you were given in one base is the number you think it is.
Common questions
How do I convert hex to decimal for Ethereum amounts?
Paste the hex with or without a 0x prefix and read the decimal beside it. Ethereum RPC quantities are usually hex integers, so converting them is the difference between reading a balance and misreading it by orders of magnitude.
Can this convert hex to UTF-8 text?
Yes — hex, decimal, binary and UTF-8 round-trip here. That helps when reading bytes32 strings and when spotting values that look like text but are numbers, or the other way around.
Does anything leave my browser?
No. Conversion is ordinary integer and encoding maths in the tab. There is no network call, no account, and nothing to sign — which is why this tool keeps working with the network switched off.