Skip to content
Calcrivo

Decimal IP Converter

Convert an IPv4 address to and from its 32-bit decimal integer representation.

Inputs

Decimal (32-bit Integer)

3,232,235,777

Hexadecimal

0xC0A80101

Dotted Decimal

192.168.1.1

Step by step

  1. Octet values

    192 . 168 . 1 . 1

    = 192 * 2^24 + 168 * 2^16 + 1 * 2^8 + 1 * 2^0

  2. 32-bit decimal

    192*16777216 + 168*65536 + 1*256 + 1

    = 3232235777

  3. Hexadecimal

    decimal 3232235777 to hex

    = 0xC0A80101

How it works

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)

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.

You might also need