Number Base Converter

Convert between binary, octal, decimal and hex.

Binary (Base 2)
--
Octal (Base 8)
--
Decimal (Base 10)
--
Hexadecimal (Base 16)
--

How to Use

Enter a number in any base (binary, octal, decimal, or hexadecimal) and the tool will instantly convert it to all other bases. You can also enter a custom base between 2 and 36. The conversions update in real time as you type.

Common Use Cases

  • Converting binary values from hardware registers to hexadecimal for documentation
  • Translating hex color codes to their decimal RGB components
  • Debugging network protocols that use octal or hex representations
  • Working with bitwise operations by converting between binary and decimal

Frequently Asked Questions

What number bases are commonly used in programming?

Binary (base 2) is used for bit-level operations and hardware. Octal (base 8) is used in Unix file permissions. Decimal (base 10) is the standard human-readable format. Hexadecimal (base 16) is used for memory addresses, colors, and compact binary representation.

How do I read hexadecimal numbers?

Hexadecimal uses digits 0-9 and letters A-F, where A=10, B=11, C=12, D=13, E=14, F=15. Each hex digit represents exactly 4 binary bits, making hex a compact way to write binary data.

Can I convert very large numbers?

The tool handles numbers within JavaScript safe integer range (up to 2^53 - 1). For arbitrarily large numbers, you may encounter precision issues due to floating-point limitations.