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
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat 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
Type or paste your IPv4 address in dotted notation (e.g. 192.168.1.1).
The decimal integer, hex, and binary outputs update instantly.
Click any copy button to copy a result to your clipboard.
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.
127.0.0.12130706433Data Privacy
All conversions run entirely in your browser using JavaScript. No IP address data is sent to any server.

