Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal. All bases displayed simultaneously.

What is a Number Base Converter?

Converts numbers between different bases: binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16). Used by programmers, students, hardware engineers, anyone working with computer systems. Computers natively use binary; humans use decimal; hex is convenient shorthand for binary.

How to use

  1. Choose source base — Binary, octal, decimal, or hex
  2. Enter value — In that base's valid characters
  3. Click Convert — All four bases shown
  4. Copy any conversion — For your code or notes

Tips

  • Binary: only 0,1 valid chars
  • Octal: 0-7
  • Decimal: 0-9
  • Hex: 0-9 and A-F
  • Bit count: 4 bits = 1 hex digit; 8 bits = 2 hex digits = 1 byte
  • 255 in dec = FF in hex = 11111111 in binary

FAQs

Why do programmers use hex?

Compact representation of binary. 1 byte (8 bits) = 2 hex chars instead of 8 binary digits. Easier to read in colors (#FF5733), memory addresses, bytecode.

Negative numbers?

This tool handles positive integers. For negative, computers use two's complement — bit-pattern dependent on integer size (8-bit, 16-bit, 32-bit, 64-bit).

Decimal point support?

Whole numbers only here. For floating-point conversion, need specialized tool that handles IEEE 754 format.

Related

Hex to RGB · Text to Binary · Binary to Text

Copied