WebToolsPlanet
Converter Tools

IP to Decimal Converter

Enter a dotted IPv4 address to instantly get its 32-bit decimal integer, hex, and binary equivalents.

Last updated: May 30, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is IP to Decimal Converter?

Every IPv4 address is fundamentally a 32-bit number. The familiar dotted notation (like 192.168.1.1) is just a human-readable way of presenting four 8-bit octets. Databases, routing tables, and network APIs often store or compare IP addresses as plain integers because integer comparisons are faster and more memory-efficient than string comparisons.

To convert an IPv4 address to a decimal integer, each octet is multiplied by its positional weight: - First octet × 16,777,216 (2²⁴) - Second octet × 65,536 (2¹⁶) - Third octet × 256 (2⁸) - Fourth octet × 1

For example, 192.168.1.1: - 192 × 16,777,216 = 3,221,225,472 - 168 × 65,536 = 11,010,048 - 1 × 256 = 256 - 1 × 1 = 1 Total: 3,232,235,777

How to Use IP to Decimal Converter

1

Type or paste your IPv4 address in dotted notation (e.g. 192.168.1.1).

2

The decimal integer, hex, and binary outputs update instantly.

3

Click any copy button to copy a result to your clipboard.

4

Click "Load Sample" to see an example conversion.

Common Use Cases

  • Storing or querying IP addresses in MySQL/PostgreSQL as INT fields.
  • Building IP range queries (BETWEEN low_int AND high_int) for geo-location lookups.
  • Debugging network scripts that represent IPs as raw integers.
  • Converting log file IP fields to integers for statistical analysis.

Example Input and Output

The IPv4 address 127.0.0.1 (loopback) converts to the decimal integer 2130706433.

IPv4 Address
127.0.0.1
Decimal Integer
2130706433

Data Privacy

All conversions run entirely in your browser using JavaScript. No IP address data is sent to any server.

Frequently Asked Questions

Why store IP addresses as integers?
Integers use only 4 bytes of storage, compared with up to 15 bytes for a dotted string. They also allow fast BETWEEN range queries for subnet membership or geo-IP lookups.
What is the maximum decimal value for an IPv4 address?
4,294,967,295, which corresponds to 255.255.255.255 — the highest possible 32-bit unsigned integer.
Does this tool work for IPv6?
No. IPv6 addresses are 128-bit and use hexadecimal groups. This tool only handles standard 32-bit IPv4 addresses.
Can I convert 0.0.0.0?
Yes. 0.0.0.0 converts to the decimal integer 0, representing the unspecified or default route address.