Number base converter
Numbers & text
Enter a number and its base. You get binary, octal, decimal and hexadecimal at once, plus any other base you choose.
Runs in your browser
Nothing is uploaded. The work happens on your own device, so your file or text never reaches us.
About this tool
Exact at any size
Conversion here is done with arbitrary-precision integers, so a full 64-bit value survives intact: ffffffffffffffff is 18446744073709551615.
Converters that route through a JavaScript number return 18446744073709552000 instead — the nearest value a double can represent. For a hash, an address, an id or a bitmask, that is not a rounding error, it is the wrong number.
Prefixes are understood
Paste 0xDEADBEEF, 0b1010 or 0o755 and the prefix is recognised, whatever base is selected in the dropdown. The tool tells you it did so rather than silently reinterpreting your input.