IPv4 Address Converter
Convert IPv4 addresses between decimal, binary, hexadecimal, and integer representations instantly.
IPv4 Address Converter tool
Example
Input: 192.168.1.1
Result: Binary 11000000.10101000.00000001.00000001, Hex 0xC0A80101, Integer 3232235777, Octal 0300.0250.0001.0001
The four octets form one 32-bit number: 192 x 256^3 + 168 x 256^2 + 1 x 256 + 1 = 3232235777. You can also paste the integer, hex or binary form to get the dotted address back.
Common IPv4 Addresses as Hex and Integer
| Address | Hex | Integer |
|---|---|---|
| 0.0.0.0 | 0x00000000 | 0 |
| 8.8.8.8 | 0x08080808 | 134744072 |
| 10.0.0.1 | 0x0A000001 | 167772161 |
| 127.0.0.1 | 0x7F000001 | 2130706433 |
| 172.16.0.1 | 0xAC100001 | 2886729729 |
| 192.168.0.1 | 0xC0A80001 | 3232235521 |
| 192.168.1.1 | 0xC0A80101 | 3232235777 |
| 255.255.255.255 | 0xFFFFFFFF | 4294967295 |
Values as the converter outputs them.
- Enter an IPv4 address in dotted-decimal notation (for example 192.168.1.1).
- Read the binary, hexadecimal, octal and 32-bit integer forms that appear below.
- To go the other way, type an integer, a hex value (such as 0xC0A80101) or binary into the same field to get the dotted-decimal address.
- Click the copy button next to any format to copy it.
- If the input is not a valid IPv4 value, the message under the field lists the formats that are accepted.
IPv4 Addresses in Binary, Hex and Integer Form
An IPv4 address is one 32-bit number written as four parts. This converter shows that number in dotted decimal, binary, hex, octal and as a plain integer. For example, 192.168.1.1 is 0xC0A80101 in hex and 3232235777 as an integer.
The input works both ways. Type a dotted address, or paste an integer, a 0x hex value, dotted hex such as C0.A8.01.01, or 32 bits of binary with or without dots. The tool detects the format and shows every other form, each with its own copy button. Octets must be 0 to 255 and written without leading zeros, so 192.168.001.1 is rejected rather than guessed at.
Why convert at all? Binary makes subnetting visible. In a /24 network, the first 24 bits name the network and the last 8 pick the host. The integer form is how many databases, log tools and geo-IP files store addresses, because a range check becomes a simple test between two numbers. Hex turns up in packet captures, kernel output and some firewall configs.
To work out a whole subnet from an address and prefix, use the IPv4 Subnet Calculator. For base changes of any other number, the Number Base Converter does the same math on a single value. Everything here runs in your browser, so internal addresses never leave your device.
Sources
Frequently Asked Questions
Related Tools
IPv4 Subnet Calculator
Calculate network address, broadcast address, host range, subnet mask, and wildcard mask from any IP and CIDR prefix.
Network ToolsIPv4 Range Expander
Expand CIDR notation or IP address ranges into a complete list of individual IP addresses.
Network ToolsIPv6 ULA Generator
Generate unique local IPv6 addresses (ULA) per RFC 4193 with cryptographically random prefixes.
Network ToolsNumber Base Converter
Convert numbers between binary, octal, decimal, hexadecimal, and any custom base.
Math and Numbers