Toolkitties
🔟 Writing

How to Convert Between Binary, Hex, Octal and Decimal

Convert a number between binary, octal, decimal and hexadecimal instantly — useful for programming and networking work.

Key takeaways

  • Number Base Converter switches a number between binary, octal, decimal and hexadecimal as you type.
  • Common in programming (bitwise work, color codes, memory addresses) and networking (subnet masks, MAC addresses).
  • No need to remember the manual conversion steps — enter a number in any base and see it in all the others at once.

Converting a number

Open Number Base Converter, type a number into any one of the base fields (binary, octal, decimal, or hex), and the others update automatically.

Frequently asked questions

Can it handle negative numbers?

Yes, standard signed conversions are supported across the bases.

Is this the same as the color HEX codes used in design?

Related but not identical — hex color codes are a specific 6-digit hex format for RGB values. For that specific case, [Color Converter](/color-converter) is purpose-built.

Keep reading