Number Base Converter

The Number Base Converter transforms numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) formats. This tool is essential for programmers, computer science students, and anyone working with low-level programming, networking, or digital electronics. It also supports custom bases (base 3 to base 36) for specialized applications. The converter handles both integer and fractional numbers.

Binary0
Octal0
Decimal0
Hexadecimal0

Formula

Number bases:
- Binary (base 2): 0, 1
- Octal (base 8): 0-7
- Decimal (base 10): 0-9
- Hexadecimal (base 16): 0-9, A-F
- Custom: base 3 to base 36

Conversion: divide by base, track remainders
Hex digits: 0-9 = values 0-9, A-F = values 10-15

Example

Input: 255 (decimal) Binary: 11111111 Octal: 377 Decimal: 255 Hexadecimal: FF Input: 1010 (binary) Decimal: 10 Hexadecimal: A

How to Use

  1. Enter your number in the input field
  2. Select the input base (binary, octal, decimal, hex, or custom)
  3. The converter shows the number in all other bases
  4. Copy the format you need
  5. Use in programming, networking, or electronics

Frequently Asked Questions

What is a number base?

A number base (or radix) is the number of unique digits used to represent numbers. Base 10 (decimal) uses 10 digits (0-9). Base 2 (binary) uses 2 digits (0-1). Base 16 (hexadecimal) uses 16 digits (0-9, A-F).

Why do programmers use hexadecimal?

Hexadecimal is compact and aligns with byte boundaries. One byte (8 bits) is exactly two hex digits. Hex is used for memory addresses, color codes (#FF5733), MAC addresses, and byte-level data representation. It is easier to read than binary.

What is octal used for?

Octal (base 8) was historically used in computing because it aligns with 12-bit and 36-bit word sizes. Today, it is less common but still used in Unix file permissions (chmod 755) and some legacy systems.

Can I convert fractional numbers?

Yes. The converter handles numbers with fractional parts. For example, 10.5 in decimal is 1010.1 in binary and A.8 in hexadecimal. Fractional conversion uses multiplication by the target base for the fractional part.

What is the maximum supported base?

The converter supports bases 2 through 36. Base 36 uses digits 0-9 and letters A-Z (26 letters + 10 digits = 36 symbols). Bases higher than 36 require additional symbols, which are not standardized.