Skip to content
ihategas.xyz

Base Converter

Runs offline

Convert between hex, decimal, binary and UTF-8 text.

0x prefixed
unsigned integer
base 2
UTF-8
Text is decoded from the raw bytes, so non-printable input can come back as replacement characters. The hex row is always the faithful one.

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.

More developer tools