Netzwerk
IPv4 Address Converter
The IP converter translates IPv4 addresses between all common notations: dotted-decimal (192.168.1.1), binary (11000000.10101000.00000001.00000001), hexadecimal (0xC0A80101), octal, and 32-bit integer (3232235777). It is useful for low-level network programming, firewall rule analysis, and understanding how IP addresses are represented in different systems.
What is the IP Converter?
The IP converter is a tool for translating an IPv4 address from one numeric notation to another. Although humans commonly use dotted-decimal notation, computers store and process IP addresses as 32-bit unsigned integers. Network equipment, programming libraries, and database systems may represent addresses in hexadecimal or binary. The converter handles all four octets simultaneously, showing how each notation is derived from the same underlying 32-bit value.
How does it work?
Enter an IPv4 address in any supported format and the tool converts it to all other formats simultaneously. Dotted-decimal input (192.168.1.1) is parsed by splitting on dots and converting each octet. Integer input (3232235777) is converted by interpreting it as a big-endian 32-bit value and extracting each byte. Binary input is parsed octet by octet. All conversions are performed in the browser with no server-side processing required.
Typical Use Cases
- Converting an IP address to its 32-bit integer form for storage in a database INT column
- Reading a hexadecimal IP address from a network packet capture or log file
- Verifying binary subnet mask calculations by hand
- Understanding IP address representation in low-level socket programming
Step-by-step Guide
- Step 1: Enter an IP address in any format (dotted-decimal, hex, binary, or integer).
- Step 2: The tool automatically detects the input format.
- Step 3: Read the converted values in all other notations.
- Step 4: Copy the notation you need for your use case.
Example
Input
192.168.1.1
Output
Binary: 11000000.10101000.00000001.00000001 | Hex: 0xC0A80101 | Integer: 3232235777
Tips & Notes
- Store IP addresses in the database as a 32-bit unsigned integer for efficient range queries and indexing.
- Hex representation is useful for reading IP addresses in Wireshark packet captures and router logs.
- A subnet mask of /24 corresponds to 255.255.255.0 or 0xFFFFFF00 or 4294967040 in integer form.
Frequently Asked Questions
Does this tool support IPv6?
This tool focuses on IPv4 conversion. IPv6 addresses are 128-bit values typically written in eight groups of four hexadecimal digits. Use the ip-converter or a dedicated IPv6 tool for IPv6 notation conversion.
Why would I store an IP as an integer in a database?
Integer storage is more space-efficient than varchar and enables fast range queries using BETWEEN for subnet filtering — for example, finding all IPs within a /24 subnet using integer comparison.
IPv4 Address Converter
Convert IPv4 addresses between dotted decimal, binary, hex, octal, and integer representations, as well as various IPv6 formats.
Open Tool