Octet out of range
Each IPv4 octet must be between 0 and 255.
Fix: Check the offending octet highlighted in the error message and correct it.
header • up to 320x100 / 728x90
Convert an IPv4 address into its 32-bit unsigned decimal form for routing tables, allow-lists, and database storage.
Use a compact field for small conversion and calculation tools.
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
Decimal (base 10) is the everyday number system humans use, handy as a reference format when converting between binary, octal, and hexadecimal values.
IP to Decimal Converter takes a dotted-quad IPv4 address and returns the single 32-bit unsigned integer that represents it, combining all four octets using the formula a*2^24 + b*2^16 + c*2^8 + d.
Decimal IPs are widely used in MySQL, PostgreSQL, Redis, and geo-IP databases because a single INTEGER column is faster to index and compare than a VARCHAR of dotted-quad text.
192.168.0.1
3232235521
Each IPv4 octet must be between 0 and 255.
Fix: Check the offending octet highlighted in the error message and correct it.
A CIDR string like 10.0.0.0/24 is not a single address.
Fix: Remove the /prefix before converting, or use a CIDR calculator instead.
IPv6 addresses do not fit into 32 bits.
Fix: Use a dedicated IPv6-to-decimal tool for 128-bit addresses.
0 to 4,294,967,295 (2^32 - 1).
Yes. The output equals `SELECT INET_ATON('192.168.0.1')`.
PostgreSQL's `inet` type stores the same conceptually; use `::integer` casts with caution because `inet` allows CIDR too.
No. Use the IPv6 converter for 128-bit addresses.
No. The conversion happens entirely in the browser.
Integer comparisons and range queries are faster and easier to index than dotted-quad strings.
Continue working with other IP representations or inspect adjacent network conversions. You can also browse the full Unit Converters category for more options.
Convert a 32-bit unsigned decimal value back into a standard dotted-quad IPv4 address.
Convert each octet of an IPv4 address into its 8-bit binary form, ideal for subnet calculations and teaching materials.
Convert an IPv4 address into uppercase hexadecimal octets, useful for network logs, packet dumps, and embedded configuration.
Convert an IPv4 address into zero-padded octal octets, matching inet_aton behaviour and documentation examples.
Convert IPv6 address to binary
Convert IP addresses between formats
Convert four 8-bit binary octets (separated by dots) into a standard dotted-decimal IPv4 address.
Convert a hexadecimal IPv4 address (either dotted hex or contiguous 8 chars) back into dotted-decimal notation.
Convert four octal octets back into the standard dotted-decimal IPv4 address used by humans and most APIs.
Convert binary numbers to decimal
Convert decimal numbers to binary
Convert decimal numbers to hexadecimal