IP Address Converter

Convert a dotted IPv4 address to decimal and hex.

Decimal 3,232,235,777
Hexadecimal 0xC0A80101

Formula: decimal = a*256^3 + b*256^2 + c*256 + d

Step-by-step with your numbers:
1. Values used:
2.
3. Decimal = 3,232,235,777
4. Hexadecimal = 0xC0A80101
Did we solve your problem today?

An IPv4 address is really a single 32-bit number written as four octets.

How the Math Works

The IP Address Converter uses a mathematical formula to transform a dotted IPv4 address into decimal and hexadecimal formats. Each of the four octets (a, b, c, d) in an IP address like 192.168.1.1 is multiplied by a power of 256 based on its position: the first octet is multiplied by 256 cubed (256^3), the second by 256 squared (256^2), the third by 256 to the first power (256^1), and the fourth remains as is. These values are then summed to produce the decimal representation. For example, 192.168.1.1 becomes 192×256^3 + 168×256^2 + 1×256 + 1 = 3,232,235,777 in decimal, which can then be converted to hexadecimal format for compact representation.

Practical Applications

To use this calculator, simply enter a valid dotted IPv4 address such as 10.0.0.1 into the input field and click convert. The tool will instantly display both the decimal equivalent (167,772,161) and the hexadecimal representation (0x0A000001). This conversion is particularly useful for network administrators configuring routers, database developers storing IP addresses in numeric format, or software engineers debugging network applications where IP addresses need to be represented in different formats for optimal storage or display purposes.

Day-to-Day Use

Understanding IP address conversions helps with everyday technology tasks like troubleshooting internet connectivity issues, configuring home networks, or setting up smart home devices. When working with online security tools or network diagnostic utilities, you may encounter IP addresses displayed in different formats. This knowledge is also valuable when reading server logs, understanding how web browsers and websites communicate, or when optimizing database queries that involve IP-based filtering. Even basic familiarity with IP addressing can help you better understand how devices on your home or office network are configured and interconnected.

Worked example

192.168.1.1 is 3232235777 (0xC0A80101).

FAQ

Why convert?

The decimal form is handy for math, sorting and database storage.