Free network utility
IP Address to Binary Converter
Convert IPv4 addresses between dotted decimal, 32-bit binary, hexadecimal, and unsigned integer formats.
What the IP address to binary converter accepts
Enter a dotted-decimal IPv4 address such as 192.168.1.1, four dotted 8-bit binary octets, one continuous 32-bit binary value, hexadecimal prefixed with 0x, or an unsigned decimal integer from 0 through 4,294,967,295. The converter detects the representation, validates its exact range, and returns the same IPv4 value in every supported format. Conversion takes place in the browser, so the submitted value is not sent to RouterNAT. The result includes a per-octet table that makes the arithmetic visible instead of presenting an unexplained answer.
How IPv4 uses 32 bits and four octets
An IPv4 address contains 32 binary digits divided into four octets. Each octet contains eight bits and therefore represents a decimal value from 0 through 255. The bit positions carry weights of 128, 64, 32, 16, 8, 4, 2, and 1. Adding the weights of the set bits produces the decimal octet. Dots improve readability but are not stored as part of the numeric address. For example, 192.168.1.1 is four decimal octets, while 11000000.10101000.00000001.00000001 is the same 32-bit address written in binary.
Worked example: convert 192.168.1.1 to binary
Start with the first octet, 192. It equals 128 plus 64, so its 128 and 64 positions are one and the remaining six positions are zero: 11000000. The value 168 equals 128 plus 32 plus 8, producing 10101000. Decimal 1 uses only the final weight, producing 00000001. Repeating that value for the fourth octet gives 11000000.10101000.00000001.00000001. Removing the display dots produces the continuous 32-bit value 11000000101010000000000100000001. The table generated by this page lets each decimal octet, padded binary octet, and hexadecimal byte be checked side by side.
Convert a 32-bit binary address back to IPv4
For reverse conversion, divide the 32-bit input into four groups of eight bits from left to right. Multiply each set bit by its positional weight and add the results inside that octet. In 11000000, the set positions are 128 and 64, which total 192. In 10101000, the set positions total 168. Each 00000001 group equals 1. The final dotted-decimal address is therefore 192.168.1.1. The converter accepts either four dotted 8-bit groups or a continuous 32-bit string, but it rejects shortened groups because an ambiguous bit boundary can produce a different address.
Hexadecimal and unsigned-integer representations
Network documentation, packet captures, APIs, operating-system structures, and debugging output sometimes show an IPv4 address as hexadecimal or as one unsigned 32-bit integer. Each hexadecimal byte represents one octet: C0, A8, 01, and 01 combine as 0xC0A80101. The same bit pattern interpreted as an unsigned base-10 integer is 3232235777. These are representations of one address, not separate destinations. The tool uses network byte order, placing the most significant octet first. Prefix hexadecimal input with 0x when it contains only decimal-looking digits so it cannot be mistaken for an unsigned integer.
How to read the octet table
The generated table contains one row for each of the four IPv4 octets. Decimal is convenient for router interfaces and ordinary network documentation. Eight-bit binary exposes individual address bits and is useful for understanding prefix boundaries. Two-digit hexadecimal is compact and frequently appears in code, packet analysis, registry values, or low-level logs. Compare rows horizontally to verify a conversion, then read the four rows vertically to preserve byte order. A value such as decimal 10 must appear as binary 00001010 and hexadecimal 0A, not as a variable-width binary fragment.
Leading zeros and common input errors
Every binary octet requires eight digits even when its significant value is short. Decimal 1 becomes 00000001, not simply 1, because removing leading zeros destroys the visible octet width. Decimal IPv4 input must contain exactly four octets, and no octet can exceed 255. Binary input must contain exactly 32 zero-or-one digits, optionally separated into four dotted groups. Hexadecimal input cannot exceed eight digits, while an unsigned integer cannot be negative or exceed 4,294,967,295. These rules prevent overflow, accidental truncation, and incorrect grouping during reverse conversion.
Address conversion is not subnet calculation
Changing notation does not determine the network, broadcast address, usable host range, or subnet mask. Those values require a prefix length such as /24 because the same IPv4 address can belong to different networks under different masks. Binary notation can show where a known prefix divides network and host bits, but the address alone does not supply that boundary. Use a subnet calculator when the task involves CIDR, masks, address capacity, network boundaries, or DHCP planning. Use this converter when the task is to express one exact 32-bit IPv4 value in another numerical format.
Practical uses in router and network work
Binary conversion is useful when checking access-control wildcard logic, studying route summaries, interpreting packet fields, validating software output, or explaining why a host falls inside a known prefix. Hexadecimal and integer forms help when an API, database, firewall log, or programming language stores an IPv4 address as a number. In router troubleshooting, converting unfamiliar output can confirm that two interfaces display the same address in different notations. The result does not query the address, test reachability, discover a device, or reveal ownership; it performs deterministic format conversion only.
Validation, limitations, and privacy
This calculator handles IPv4 only. IPv6 contains 128 bits and uses hexadecimal groups with separate compression rules, so it should be processed by a dedicated IPv6 tool. The converter does not classify an address as public, private, CGNAT, loopback, or reserved unless you open the related address-type checker. It also cannot tell whether the address is currently assigned or reachable. All arithmetic runs locally in the browser and the input is not submitted as a tool request. As with any copied network value, verify important configuration against the authoritative router, host, or network documentation before applying a change.
When the address must be interpreted with a prefix, use the IPv4 subnet calculator to find its network, broadcast, and usable range. For a prefix-only conversion, open the CIDR and subnet mask converter.
Numerical format does not reveal address scope. Use the IP address type checker to distinguish public, private, CGNAT, loopback, link-local, and reserved values. If the converted address is intended for local router access, follow the router admin page local-IP diagnostic.
Privacy and responsible use
This calculation runs locally in your browser. RouterNAT does not receive or save the values entered into this tool. Use the result only for lawful network administration and troubleshooting.
How to use this result
Verify important changes against your router manual, ISP documentation, or an authorized network administrator. This utility provides planning guidance and does not connect to, scan, or modify your router.

Comments
Leave a Comment
Your email address will not be published. Comments are reviewed before appearing.