Free Binary Octal Hex Converter

Bitwise operations, subnet masks, color codes and opcodes all demand fluency in bases 2, 8 and 16. This free converter moves between binary, octal and hexadecimal in either direction, with decimal, bit-length and byte counts shown alongside.

—

Value in every base

RepresentationValue
Private by design. This tool runs 100% in your browser — nothing is uploaded to any server.

How to Use the Binary Octal Hex Converter

  1. Enter a value in binary, octal or hexadecimal.
  2. Choose the from/to bases — the ⇄ button swaps them.
  3. See the conversion instantly, with decimal, bit and byte counts below.
  4. Copy the result with one click.

Features

Bidirectional conversion between binary, octal and hexadecimal with swap button, arbitrary-precision integers, bit/byte counts, and grouped binary output for readability.

Benefits & Use Cases

Network engineers reading subnet masks, developers working with flags and bitmasks, electronics hobbyists, and students all get exact multi-base views of one value in a single table.

Tips

Learn the 16 hex-to-binary nibbles (0=0000 … F=1111) and conversions become mechanical. A /24 subnet mask is 255.255.255.0 = FFFFFF00 in hex.

Frequently Asked Questions

How do I convert binary to hexadecimal?

Enter the binary value, set From to binary and To to hexadecimal. For example, 11111111 = FF.

How many bits are in a hex digit?

4 bits per hex digit (a nibble); 2 hex digits make a byte.

How do I convert octal to binary?

Each octal digit becomes 3 bits: 17 octal = 001 111 = 1111 binary.

What byte count does it show?

The minimum whole bytes needed to hold the value — bits rounded up to multiples of 8.

Related Tools