Number Base Converter

Convert signed integers between binary, decimal, hexadecimal and other bases.

Calculations happen in your browser. Entries are not submitted or saved by this tool.

How the number base converter works

Enter a whole number, its current base and the base you want. It converts between any bases from 2 to 36, including binary (2), octal (8), decimal (10) and hexadecimal (16). Letters A to Z stand for digits 10 to 35.

Worked example

  • 255 in decimal = FF in hexadecimal
  • 255 in decimal = 11111111 in binary
  • FF in hexadecimal = 377 in octal

Frequently asked questions

How do I convert binary to decimal?

Multiply each digit by 2 raised to its position (counting from 0 on the right) and add them up. 1011 = 8 + 0 + 2 + 1 = 11.

What does hexadecimal mean?

Base 16. It uses 0 to 9 and A to F, where A = 10 and F = 15.

Does it handle decimals or fractions?

No. It converts whole numbers only.

Other calculators you may need

Last reviewed: 30 October 2026