What is a number base?
A number base is how many digits a counting system uses. Everyday numbers are base 10; computers work in base 2 (binary); programmers often write values in base 16 (hexadecimal) because two hex digits make exactly one byte; and Unix file permissions use base 8 (octal).
This converter takes numbers in any of these bases and shows them in all the others at once, plus a base of your choice up to 36. Computer science students use it to check conversions, developers for colours, memory addresses, bit masks and permissions, and puzzle solvers for encoded clues.
How to use the Number Base Converter
1.Choose the input base
Decimal, binary, octal, hexadecimal or base 36.
2.Paste the values
One per line. Prefixes like 0x and 0b are accepted.
3.Read every base
Each number is shown in all the common bases at once.
Example: 255, 1024 and −42
Three decimal numbers in every base:
- 255
- binary 1111 1111, octal 377, hex FF
- 1024
- binary 0100 0000 0000, octal 2000, hex 400
- −42
- binary −0010 1010, hex −2A
- 255 in base 36
- 73
255 is the largest value a single byte can hold: eight ones in binary.
Exact for huge numbers
Conversions use arbitrary-precision integers, so a 64-bit hash or a 40-digit number converts exactly instead of losing its last digits, which is a common bug with ordinary floating-point maths.
Binary digits can be grouped in fours, each group matching one hex digit, which makes bit patterns easy to read. Negative numbers keep a minus sign rather than being shown in two's complement, which depends on a fixed word size.
Frequently asked questions
What is 255 in hex and binary?
FF in hexadecimal and 1111 1111 in binary.
Why does hex use letters?
Base 16 needs sixteen digits, so A to F stand for 10 to 15.
What is base 36 used for?
Short IDs and URLs, since it uses all ten digits and 26 letters.
Does it handle fractions?
No, whole numbers only.
Related tools
Text to Binary Converter
Convert text to binary, hex, octal or decimal bytes, and back.
Roman Numeral Converter
Convert numbers to Roman numerals and back, from 1 to 3,999.
HEX ↔ RGB ↔ HSL Converter
Convert a colour between HEX, RGB, HSL, HSV and CMYK, with alpha.
Ratio Calculator
Solve A : B = C : ?, simplify a ratio or split a total in a ratio.
Average Calculator (Mean, Median, Mode)
Mean, median, mode, range and sum of a list of numbers.
Weighted Average Calculator
Average values that count for different amounts, like graded coursework.