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
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat 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
Type or paste your dotted-decimal IPv4 address in the input field.
The tool validates the format (ensuring each octet is a number between 0 and 255).
The binary mapping grid, dotted binary, spaced binary, continuous 32-bit binary, decimal integer, and hex values are updated dynamically.
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.
127.0.0.101111111.00000000.00000000.00000001Data Privacy
All address conversions are performed using client-side JavaScript. No data is stored or sent to any server.

