ToolHub

Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal instantly.

About Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal. Enter a value in any base and see its equivalent in the others — essential for programming, networking, and low-level work.

How to Use

  1. Enter the number in its current base.
  2. Select the base you are entering (binary, octal, decimal, or hex).
  3. Read the value in all the other bases.
  4. Copy whichever representation you need.

Why Use This Tool?

Frequently Asked Questions

How do I convert decimal to binary?

Repeatedly divide the decimal number by 2 and read the remainders from bottom to top. For example, 13 → 1101 in binary. This tool does it instantly.

What is hexadecimal used for?

Hex (base 16) is a compact way to write binary — each hex digit maps to 4 bits. It is widely used for colour codes (#FF8800), memory addresses, and byte values.

What do the prefixes 0x and 0b mean?

0x marks a hexadecimal number (0x1F = 31) and 0b marks a binary number (0b1010 = 10). They tell the reader (and the compiler) which base the digits are in.

Related tools