Ad Space — Top Banner

Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal.
Supports bases 2 through 36.

Conversion Results

Number bases (or radixes) determine how many unique digits are used to represent numbers.

Common bases:

  • Binary (Base 2): Uses 0 and 1. Used in computers.
  • Octal (Base 8): Uses 0–7. Used in Unix file permissions.
  • Decimal (Base 10): Uses 0–9. Standard human counting.
  • Hexadecimal (Base 16): Uses 0–9 and A–F. Used in colors and memory addresses.

How base conversion works (decimal 42 to binary):

  • 42 ÷ 2 = 21 remainder 0
  • 21 ÷ 2 = 10 remainder 1
  • 10 ÷ 2 = 5 remainder 0
  • 5 ÷ 2 = 2 remainder 1
  • 2 ÷ 2 = 1 remainder 0
  • 1 ÷ 2 = 0 remainder 1
  • Read remainders bottom-up: 101010

Examples:

Decimal Binary Octal Hex
10 1010 12 A
42 101010 52 2A
255 11111111 377 FF

Ad Space — Bottom Banner

Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.