Skip to content
SUMILORASUMILORA

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.

Questions

How do I convert binary to decimal?

Enter the binary digits and set the source base to 2. The decimal value appears immediately, along with hex and octal.

Why are letters used above base 10?

Each position needs a single symbol per value. Past 9 the digits run a, b, c and so on — so hexadecimal counts 0-9 then a-f, where f is 15. Base 36 uses the whole alphabet.

Does it handle negative numbers?

Yes, with a leading minus sign. It does not do two’s-complement representation, which depends on a word size you would have to specify.

Related tools