ToolGenie

Number Base Converter

Convert between binary, hex and decimal.

Loading tool…

How to use Number Base Converter

  1. Type your number and pick the base it is written in.

  2. Binary, octal, decimal and hexadecimal are shown at once.

  3. For anything else, choose a custom target base between 2 and 36.

Frequently Asked Questions

How large a number can I convert?

Arbitrarily large ones. Conversions use big integers, so a 256-bit hexadecimal value converts to decimal without losing a single digit to rounding.

Are prefixes like 0x and 0b accepted?

Yes. A leading 0x, 0b or 0o is recognised and stripped, so you can paste values straight from source code.

Can it convert negative numbers?

Yes, using a leading minus sign. Two's-complement representations are not produced, since those depend on a fixed word size.

Related tools

Looking for something else? Browse all developer tools.