Number Base Converter
Convert a whole number from one base to another, anywhere from base 2 to base 36. Type a value, pick the base it is in and the base you want, and read the result instantly. Big numbers convert exactly because the math uses arbitrary precision.
How to convert between number bases
- Type the number you want to convert in the input field. Digits use 0-9 then a-z, and you can include a leading minus for negatives.
- Choose the base your number is currently written in (the from base) and the base you want to convert it to (the to base).
- Read the converted result and the binary, octal, decimal and hex breakdown, then copy any value with one click.
Examples
Decimal to hexadecimal
255 from base 10 to base 16
ff
Binary to decimal
11111111 from base 2 to base 10
255
Frequently asked questions
Which bases does this converter support?
Any base from 2 to 36. That covers the common ones (binary base 2, octal base 8, decimal base 10, hexadecimal base 16) and every base in between. Base 36 is the largest that fits using the digits 0-9 followed by the letters a-z.
How are digits above 9 written?
Bases larger than 10 use letters after the digit 9: a is 10, b is 11, and so on up to z which is 35. Input is case-insensitive, so FF and ff are read the same, and results are shown in lowercase.
Can it handle very large numbers?
Yes. The conversion uses arbitrary-precision integers (BigInt), so numbers with dozens or hundreds of digits convert exactly with no rounding or loss of precision, unlike calculators that rely on floating point.
Does it support negative numbers and zero?
Yes. A single leading minus sign marks a negative value and is carried through to the result, so -10 in base 10 becomes -1010 in base 2. Zero converts to 0 in every base.
Why do I get an error about an invalid digit?
Every digit must be legal for the base you chose. For example 2 is not a valid binary digit, and g is not a valid hexadecimal digit. Check that your input only uses digits allowed in the from base.
Is my data private?
Yes. The conversion runs entirely in your browser. Nothing you type is uploaded, logged or stored anywhere.
Related tools
Scientific Notation Converter
Convert numbers to and from scientific notation and E notation. Enter a number or a value like 1.23 x 10^4 to see the standard decimal form. Free and private.
Roman Numeral Converter
Convert numbers to Roman numerals and Roman numerals to numbers. Type a number from 1 to 3999 or a Roman numeral and copy the result. Free and private.
Number to Words
Convert numbers to written words instantly. Spell out whole numbers or write a cheque amount in dollars and cents, then copy the result. Free and private.
Area Calculator
Find the area of a circle, square, rectangle, triangle, trapezoid, parallelogram, ellipse, sector or rhombus. Free and runs in your browser.
Arithmetic Sequence Calculator
Find the nth term, the sum of n terms and the full term list for any arithmetic or geometric sequence. Enter the first term, step or ratio, and n.
Average Calculator
Find the mean, median, mode, range, sum, count, min and max of a list of numbers. Paste values separated by commas, spaces or new lines.