Decimal IP Converter
Convert an IPv4 address to and from its 32-bit decimal integer representation.
About Decimal IP Converter
An IPv4 address is a 32-bit number typically displayed in dotted-decimal notation. Converting to a single integer treats the four octets as a big-endian 32-bit value: first_octet * 2^24 + second_octet * 2^16 + third_octet * 2^8 + fourth_octet.
Formula
IP to decimal
decimal = octet1 * 2^24 + octet2 * 2^16 + octet3 * 2^8 + octet4
- o_1..o_4
- Individual octets (0-255)
Worked example
With the default values below, Decimal IP Converter returns Decimal (32-bit Integer) of 3,232,235,777. Change any input above and every figure here is recalculated in your browser.
Inputs used
- IPv4 Address
- 192.168.1.1
Results
- Decimal (32-bit Integer)
- 3,232,235,777
- Hexadecimal
- 0xC0A80101
- Dotted Decimal
- 192.168.1.1
Step by step
- 1Octet values= 192 * 2^24 + 168 * 2^16 + 1 * 2^8 + 1 * 2^0
- 232-bit decimal= 3232235777
- 3Hexadecimal= 0xC0A80101
Assumptions and limits
- The result is derived only from the single input listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to whole numbers, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
Why would I need the decimal form of an IP?
Some databases store IPs as integers for efficient range queries and indexing. Firewall rules, ACLs, and programmatic comparisons are also often faster with integer representations than string parsing.
Can I put a decimal IP in a browser?
Yes — most browsers and operating systems accept decimal IP notation (e.g. http://3232235777 for 192.168.1.1) because the underlying socket API converts it back to the standard 32-bit representation before connecting.
