Number Base Converter
int → intConvert between binary, octal, decimal, hex and any base up to 36.
Conversion runs on big integers, so a full 64-bit value like ffffffffffffffff converts exactly rather than rounding as a JavaScript number would.
About Number Base Converter
Enter a number in binary, octal, decimal, hexadecimal, or any base up to 36, and read it back in all of the common ones at once. The 0x, 0b and 0o prefixes are accepted and so are the underscores you would write in source code, so you can paste a literal straight out of your editor.
Everything is computed with big integers rather than JavaScript numbers. That distinction is invisible until it matters and then it matters completely: a 64-bit identifier like ffffffffffffffff is larger than a double can represent exactly, so a converter built on ordinary numbers silently returns a value ending in 616 instead of 615. Here it converts exactly, however long it is.
The readout also reports how many bits the value needs and the smallest integer type it fits in, which is usually the actual question behind the conversion.
Common questions
This page does the work itself, in this tab. Nothing you paste is sent to a server. Close the tab and no copy remains.