Skip to content
PBPasteBench

Number Base Converter

Binary, octal, decimal, and hexadecimal side by side. Type in any field and the rest follow.

Common values

Values are held as arbitrary-precision integers, so 64-bit numbers convert exactly rather than losing digits past 253.

Common questions

Why does my large hex value lose digits in other converters?+

Most convert through a JavaScript number, which stops being exact above 2^53. This one uses arbitrary-precision integers, so 64-bit register values and IDs convert without silently rounding.

What do the 0x and 0b prefixes mean?+

They are source-code conventions marking hexadecimal and binary literals. You do not need to type them here — pick the field and enter the digits.

More tools