Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36.

Reviewed by the WorldCalcs team · Methodology · Last reviewed: June 2026

Binary (base 2)

11111111

Octal (base 8)

377

Decimal (base 10)

255

Hexadecimal (base 16)

FF

In base 2

11111111

What is a number base?

A number base (or radix) is how many distinct digits a counting system uses. Decimal — the system we use every day — is base 10: it uses the digits 0 through 9. Binary is base 2 (digits 0 and 1), octal is base 8, and hexadecimal is base 16, which adds the letters A–F to represent the values 10 through 15. The same quantity can be written in any base; only the symbols change, not the amount. This converter changes a number from one base to another for any base from 2 to 36. If you work with very large or very small numbers, you may also find our scientific notation converter and exponent calculator useful, since every base is built on powers — binary on powers of 2, decimal on powers of 10.

How it's calculated

To convert a number to base 10, multiply each digit by its place value — the base raised to the digit's position, counting from zero on the right — and add the results. For example, the binary number 1010 is 1×2³ + 0×2² + 1×2¹ + 0×2⁰ = 8 + 0 + 2 + 0 = 10 in decimal. To go from base 10 to another base, divide repeatedly by the new base and read the remainders from bottom to top. Dividing 255 by 16 gives 15 remainder 15; 15 in hexadecimal is F, so 255 becomes FF. Digits above 9 use letters: A = 10, B = 11, and so on up to Z = 35 in base 36.

Example

Enter 255 with a "from" base of 10. The converter shows it as 11111111 in binary, 377 in octal, and FF in hexadecimal. Switch the input to FF with a from-base of 16 and you get back 255 in decimal — the conversion works both ways and for any base between 2 and 36.

All calculations happen in your browser. Nothing is sent, stored, or tracked.

Results are estimates and may contain errors — for general information only, not professional advice. Always verify before relying on them. Disclaimer

How to use

Type a number, choose the base it's in, and see it in binary, octal, decimal and hexadecimal at the same time. Use the second selector to convert into any other base from 2 to 36.

Letters A–Z stand for digit values 10–35 and are always shown uppercase. Whole numbers only.

Frequently asked questions

What is a number base?+

A number base is the count of unique digits a system uses. Base 10 uses ten digits (0–9); base 2 uses two (0 and 1). The base sets the place value of each position in the number.

How do I convert binary to decimal?+

Multiply each binary digit by 2 raised to its position (counting from the right, starting at 0) and add them up. For 1010 that is 8 + 0 + 2 + 0 = 10.

What is 255 in hexadecimal?+

255 in decimal is FF in hexadecimal. It is the largest value that fits in one byte (8 bits), which is why FF appears so often in computing and colour codes.

Why does hexadecimal use letters?+

Hexadecimal is base 16, so it needs sixteen digit symbols. After 0–9 it uses A–F for the values 10 to 15, keeping each digit to a single character.

What is the difference between binary, octal and hexadecimal?+

They are bases 2, 8 and 16. Binary maps directly to on/off circuit states, octal groups three bits per digit, and hexadecimal groups four bits — so one hex digit equals exactly four binary digits.

What is base 36?+

Base 36 uses all ten digits plus all 26 letters A–Z, so Z equals 35. It is the highest base that fits in ordinary alphanumeric characters and is sometimes used to shorten identifiers.

Can I convert decimal fractions?+

This converter works with whole numbers (integers). Fractional values follow the same place-value idea but with negative exponents, which this tool does not cover.

Is hexadecimal the same as a colour code?+

Web colours are written in hexadecimal — for example FF0000 is red — because each pair of hex digits (00–FF) maps to one 0–255 colour channel. The base is the same; only the meaning differs by context.