CalculatorsConvertersDeveloperTextAll toolsDirectory
Submit your tool Sign in
Theme
Home/Answers/Network
How-to

How do I convert an IP address octet to binary?

Short answer

Use a browser-based number base converter to turn each decimal octet of an IP address, a value from 0 to 255, into its 8-bit binary form. It converts between binary, octal, decimal and hexadecimal on your device with no account.

An IP is four 8-bit numbers

An IPv4 address is written as four decimal octets separated by dots, and each octet is a single byte, so it ranges from 0 to 255 and fits in exactly 8 binary bits. Converting an octet to binary is how you see the network and host bits directly, which is useful when you are learning subnetting or checking a mask. A number base converter turns each decimal octet into its 8-bit pattern in one step.

Convert any octet without arithmetic

Rather than divide by two repeatedly, you enter the decimal value and read the binary result. The tool works entirely in your browser, so nothing is uploaded, and it also handles octal and hexadecimal if you need those. It is free and needs no sign-up.

Step by step

  1. Open the converter. Open the number base converter in your browser.
  2. Enter the octet. Type one octet of the IP address as a decimal value between 0 and 255.
  3. Read the binary. Read the 8-bit binary result and repeat for each of the four octets.

Frequently asked questions

How many bits is one octet?

Each octet is a single byte, so it is exactly 8 binary bits.

What is the range of an octet?

A decimal octet runs from 0 to 255.

Is the conversion done on a server?

No. It runs in your browser, so nothing is sent anywhere.

Related answers