🔢

Number Base Converter

Convert between binary, octal, decimal & hex

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

About Number Base Converter

Type a number in any base and all other representations update immediately. Binary, octal, decimal, hex — no need to select a direction or press a button. Hex shows up constantly in programming: colour codes, memory addresses, byte values in protocols. Octal is used in Unix file permissions. Binary is what the machine actually operates on. Switching between them by hand is error-prone — easier to paste and read. Custom base conversion (any base 2–36) is also supported for encoding schemes and computer science work.

Common Use Cases

  • Converting hex colour codes to decimal for graphics programming
  • Reading memory addresses and byte values in systems work
  • Computing chmod permission values between octal and binary
  • Understanding IP address binary representation for networking

Frequently Asked Questions

Why is hexadecimal used so much in programming?+
Each hex digit maps exactly to 4 binary bits, making conversion between the two trivial. It is also much more compact than binary while still being directly readable as bit patterns — useful for colour codes, memory addresses, and protocol bytes.
What is octal used for?+
Mainly Unix file permissions. chmod 755 is octal — each digit represents 3 bits corresponding to read, write, and execute permissions for owner, group, and others respectively.
How do I convert a hex colour to RGB?+
#FF5733 splits into three byte pairs: FF=255, 57=87, 33=51. This tool converts each pair from hex to decimal. The Color Converter tool does the full conversion automatically.