tools.now

Number Base Converter

Enter a number in one base to see it in binary, octal, decimal, hexadecimal, base 32 and base 36 at once. Arbitrarily large integers are converted exactly.

Output

🔒 Runs in your browser. Your data is never uploaded.

How to use

  1. Choose the base of the number you have.
  2. Type the number. Prefixes such as 0x and 0b, spaces and underscores are accepted.
  3. Copy the representation you need.

Why hex maps neatly onto binary

One hexadecimal digit is exactly four bits and one octal digit is exactly three, so a byte is always two hex digits. That is why memory dumps, colors and hashes are written in hex.

No rounding on big numbers

Ordinary JavaScript numbers are exact only up to 2^53. This tool uses arbitrary-precision integers, so 128-bit values such as UUIDs or IPv6 addresses convert without losing digits.

Frequently asked questions

How are negative numbers shown?
With a minus sign in every base, for example -101 in binary for -5. Two's-complement form depends on a chosen bit width and is not produced.
Can it convert fractions?
No. Only whole numbers are supported; a decimal point is reported as an error.
What digits does base 36 use?
The digits 0–9 followed by the letters a–z, which makes it the most compact case-insensitive alphanumeric form.

Related tools