Skip to content

IPv4 Address Converter

Convert IPv4 addresses between decimal, binary, hexadecimal, and integer representations instantly.

IPv4 Address Converter tool

Loading...

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

AddressHexInteger
0.0.0.00x000000000
8.8.8.80x08080808134744072
10.0.0.10x0A000001167772161
127.0.0.10x7F0000012130706433
172.16.0.10xAC1000012886729729
192.168.0.10xC0A800013232235521
192.168.1.10xC0A801013232235777
255.255.255.2550xFFFFFFFF4294967295

Values as the converter outputs them.

  1. Enter an IPv4 address in dotted-decimal notation (for example 192.168.1.1).
  2. Read the binary, hexadecimal, octal and 32-bit integer forms that appear below.
  3. 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.
  4. Click the copy button next to any format to copy it.
  5. 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

Multiply each octet by a power of 256 and add the results: the first by 16,777,216, the second by 65,536, the third by 256, then add the fourth. For 192.168.1.1 that is 3,221,225,472 + 11,010,048 + 256 + 1 = 3,232,235,777. The converter does this for you and also works in reverse, from an integer back to dotted form.
The tool only accepts octets without leading zeros. Some systems read a leading zero as octal, so 010 could mean 8 instead of 10. Rather than guess which one you meant, the converter asks you to type 192.168.1.1. The octal output, which does use leading zeros such as 0300, is shown for reference only.
255.255.255.255 equals 4,294,967,295, which is 2 to the power of 32 minus 1. That is why IPv4 has about 4.3 billion addresses in total. The converter accepts any integer from 0 to 4294967295 and rejects anything larger, since it would not fit in 32 bits.
Yes. Paste four groups of 8 bits separated by dots, or one string of 32 bits (a 0b prefix is allowed). The tool turns each group of 8 bits into a number from 0 to 255 and rebuilds the dotted address. Any other length is rejected, because an IPv4 address is always exactly 32 bits.
No. It handles 32-bit IPv4 values only. IPv6 addresses are 128 bits long and written as hex groups separated by colons, so they need different tools. If you want private IPv6 addresses for a home or lab network, the IPv6 ULA Generator on this site creates them.

Related Tools

IPv4 Subnet Calculator

Calculate network address, broadcast address, host range, subnet mask, and wildcard mask from any IP and CIDR prefix.

Network Tools

IPv4 Range Expander

Expand CIDR notation or IP address ranges into a complete list of individual IP addresses.

Network Tools

IPv6 ULA Generator

Generate unique local IPv6 addresses (ULA) per RFC 4193 with cryptographically random prefixes.

Network Tools

Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal, and any custom base.

Math and Numbers

MAC Address Generator

Generate random MAC addresses with optional OUI prefix in colon, hyphen, or dot notation formats.

Network Tools

MAC Address Lookup

Look up the manufacturer or vendor associated with a MAC address using the OUI prefix database.

Network Tools