IPv4 to Binary Converter — 8-Bit Octets and the 32-Bit Form
Convert dotted IPv4 addresses into 4 binary octets and continuous 32-bit binary.
| Input | Binary octets | 32 bits |
|---|---|---|
192.168.1.1 | 11000000.10101000.00000001.00000001 | 11000000101010000000000100000001 |
10.0.0.254 | 00001010.00000000.00000000.11111110 | 00001010000000000000000011111110 |
8.8.8.8 | 00001000.00001000.00001000.00001000 | 00001000000010000000100000001000 |
100.64.12.7 | 01100100.01000000.00001100.00000111 | 01100100010000000000110000000111 |
203.0.113.45 | 11001011.00000000.01110001.00101101 | 11001011000000000111000100101101 |
255.255.255.0 | 11111111.11111111.11111111.00000000 | 11111111111111111111111100000000 |
When to use the IPv4 Dotted-Decimal to 32-Bit Binary Octets Converter
The basis of subnetting
Subnet masks, network IDs and broadcast addresses are all bit operations. Seeing the address in binary makes the network and host boundary visible instead of memorised.
Many addresses at once
Paste a list of addresses from a router config or practice exercises and see every line as binary octets and as 32 bits in a row in one table.
Strict input checks
Octets above 255, a wrong number of octets and leading zeros are refused with a reason per line, so a typo never produces misleading binary.
Results ready to copy
Results can be copied or downloaded as text for course notes, network training material or lab documentation.
Frequently asked questions
Why is an octet always 8 bits?
IPv4 has 32 bits split into four parts, so each part holds 8 bits with values 0 to 255. Leading zeros are written so each octet stays 8 digits long.
How does binary help with subnetting?
A /26 prefix means the first 26 bits are the network part. In binary you can see at once which bits stay fixed and which number the hosts.
How do I turn binary back into IPv4?
Use the Binary to IPv4 Converter, which accepts binary per octet as well as 32 bits in a row.
Can IPv6 be converted to binary here?
No; this tool is for 32-bit IPv4. IPv6 is 128 bits long and is usually read in hexadecimal.
Are the addresses I paste sent to a server?
No. Every conversion runs in your browser, so internal addresses from office configs stay private.
Similar tools
- 32-Bit Binary Octets to Dotted-Decimal IPv4 ConverterConvert 32-bit binary bitstreams or dotted binary octets back into IPv4.
- CIDR Exclusion & WireGuard AllowedIPs BuilderSubtract LAN or private ranges from 0.0.0.0/0 or any block and get the minimal CIDR list for WireGuard, routing or MikroTik.
- CIDR & IP Range to Full Address List ExpanderExpand IPv4/IPv6 CIDRs and start–end ranges into every individual address, ready to export as TXT for scanners and ACLs.
- IP / CIDR List Diff & Allowlist AuditorCompare two IP/CIDR lists by real address coverage: what was added, removed, or overlaps — ideal for firewall allowlist reviews.