Kharabeesh
On-device ع

Number Base Converter

Convert whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, however large, with digit grouping for readability and a two’s-complement view for 8, 16, 32 or 64 bits.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Type the number and choose the base you wrote it in (for example decimal or hex).
  2. You get the same number in binary, octal, decimal and hex, plus any extra base you choose.
  3. Turn on “Two’s complement” and pick a bit width to see how the number (especially a negative one) is stored in memory.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.
  • Needs a browser with BigInt support (all browsers since 2020).

Frequently asked questions

Does it convert fractions such as 10.5?

No. It handles whole numbers only (positive or negative), up to 2000 digits.

What are the letters in hex and larger bases?

After 9 the digits continue with letters: A = 10, B = 11 … F = 15, up to Z = 35 in base 36. Upper or lower case both work.

What is two’s complement?

It is how computers store negative integers: write the absolute value in binary at the chosen width, flip every bit, then add 1. Example: −5 in 8 bits is 11111011.

Why does 200 show as −56 in 8 bits?

Signed 8-bit numbers only cover −128 to 127. The pattern 11001000 reads as 200 unsigned and −56 signed, and the tool shows both readings.

Related tools