WebToolsPlanet
Converter Tools

IP to Binary Converter

Enter an IPv4 address to instantly see its 32-bit binary representation, mapping grid, decimal integer, and hex formats.

Last updated: May 30, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is IP to Binary Converter?

An IPv4 address consists of 32 bits divided into four 8-bit octets separated by dots (dotted-decimal notation). When computers, routers, and switches communicate, they use the raw binary representation of these addresses rather than decimal formats.

To convert an IP to binary, each of the four decimal numbers (0-255) is converted to an 8-bit binary string (filled with leading zeros where necessary).

For example, for the IP 192.168.1.1: - 192 converts to 11000000 - 168 converts to 10101000 - 1 converts to 00000001 - 1 converts to 00000001

Dotted Binary result: 11000000.10101000.00000001.00000001.

How to Use IP to Binary Converter

1

Type or paste your dotted-decimal IPv4 address in the input field.

2

The tool validates the format (ensuring each octet is a number between 0 and 255).

3

The binary mapping grid, dotted binary, spaced binary, continuous 32-bit binary, decimal integer, and hex values are updated dynamically.

4

Click any of the copy buttons to copy results to your clipboard.

Common Use Cases

  • Calculating network subnets and wildcard masks manually.
  • Understanding how CIDR routing blocks and network prefixes mask binary addresses.
  • Analyzing network headers and packet routing protocols.
  • Preparing school assignments or certification exams (such as CCNA).

Example Input and Output

The IP address 127.0.0.1 is converted to loopback binary 01111111.00000000.00000000.00000001.

IPv4 Address
127.0.0.1
Binary IP Address
01111111.00000000.00000000.00000001

Data Privacy

All address conversions are performed using client-side JavaScript. No data is stored or sent to any server.

Frequently Asked Questions

Why are IP addresses split into octets?
IP addresses are split into four 8-bit chunks (octets) to make them easier for humans to read and remember. Reading four decimal numbers (0 to 255) is much easier than reading a continuous 32-digit string of binary 1s and 0s.
Does this tool work for IPv6?
No. IPv6 uses a 128-bit address space, which is typically represented in hexadecimal format. This tool is designed exclusively for standard 32-bit IPv4 addresses.
How do you convert decimal to binary manually?
To convert an octet like 192 to binary, divide it by 2 repeatedly and track the remainders (0 or 1) from bottom to top. Alternatively, subtract powers of 2 (128, 64, 32, 16, 8, 4, 2, 1): 192 = 128 + 64 (which sets the 128 and 64 bits to 1, and the rest to 0: 11000000).