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.
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.
Related Tools
Decimal to IP Converter
Convert decimal integers (32-bit integers) into standard dotted-decimal IPv4 addresses. Ideal for network engineers and database managers.
IP to Binary Converter
Convert dotted decimal IPv4 addresses into binary strings (dotted, spaced, or continuous 32-bit). Includes octet breakdown grid, decimal, and hex outputs.
IP to Hex Converter
Convert a dotted-decimal IPv4 address to its 8-digit hexadecimal value. Also shows decimal and binary outputs.
Binary to IP Converter
Convert 32-bit binary values into standard dot-separated IPv4 addresses. Supports visual octet breakdown, decimal, and hexadecimal output formats.
Hex to IP Converter
Convert hexadecimal addresses (32-bit hex values) into standard dot-separated IPv4 addresses. Supports decimal integer and binary representation formatting.
IP to Octal Converter
Convert a dotted-decimal IPv4 address to octal notation. Supports dotted octal and full 32-bit octal, plus decimal and hex outputs.

