Decimal to IP
Convert a single 32-bit unsigned decimal integer into a dotted-decimal IPv4 address.
Single 32-bit unsigned integer (0..4294967295).
Dotted-decimal IPv4 address.
Decode a decimal integer back into an IPv4 address. The “decimal IP” notation is common in spreadsheets, databases, and CDN geo-IP tables because it sorts and indexes well.
Why does my database store IPs as integers?
Integers compare faster, index smaller, and support range queries with simple BETWEEN clauses.