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
- Type the number and choose the base you wrote it in (for example decimal or hex).
- You get the same number in binary, octal, decimal and hex, plus any extra base you choose.
- 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
Scientific CalculatorScientific calculator with a full expression line and on-screen keys: trig in degrees or radians, logs, roots, powers, factorial and percent, plus a history of your recent calculations.Unit ConverterConvert length, mass, area, volume, speed, time, temperature, pressure, energy and digital storage (GB vs GiB) using exact conversion factors, with a table of every unit in the category.Fraction CalculatorAdd, subtract, multiply and divide fractions and mixed numbers, simplify any fraction and convert it to a decimal and a percentage, with the steps shown: common denominator and greatest common divisor.Descriptive Statistics CalculatorPaste your numbers to get the mean, median, mode, variance and standard deviation (sample and population), quartiles, outliers and skewness, plus a frequency table and a histogram.