IPv4 number converter
Convert one IPv4 address between dotted decimal, unsigned integer and 32-bit binary.
- 1Add input
- 2Review and run
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Paste one IPv4 address, unsigned decimal integer, or 32-bit binary value. Inspect the equivalent forms side by side and copy the exact value needed for a database, log or network configuration.
How to use this tool
- Paste one dotted IPv4 address, unsigned decimal integer, or supported binary form.
- Check the detected input type and address preview before converting.
- Compare the equivalent address, decimal and binary values. Copy a plain field or download the complete JSON.
Supported inputs and limits
One IPv4 value per run. Decimal input uses the unsigned 32-bit range 0–4294967295 and network byte order; signed integers and little-endian host-order values are not reinterpreted.
Dotted input requires four 0–255 decimal octets without leading zeros. Binary input accepts 0b-prefixed bits, exactly 32 plain bits, or four 8-bit groups separated by periods or spaces.
This is representation conversion only; it does not resolve DNS, classify address ownership, or test network reachability.
Worked example
Example input
192.168.1.1
Example options
{}Example output
{
"address": "192.168.1.1",
"decimal": "3232235777",
"binary": "11000000101010000000000100000001"
}When something does not work
Check that you entered one IPv4 value. Use four octets from 0 to 255, unsigned decimal 0–4294967295, or supported binary notation.
Frequently asked questions
Why is the decimal value never negative?
This tool uses an unsigned 32-bit integer. Some programming languages display the same high-bit address as a negative signed 32-bit number; convert it to unsigned before comparing.
Which byte order does the integer use?
Network byte order: the leftmost dotted octet is the most significant eight bits. Little-endian host-order integers are not inferred or swapped.
Can I paste a binary address without 0b?
Yes, when it has exactly 32 bits. You can also enter four 8-bit groups separated by periods or spaces. Short binary values need the 0b prefix.
Does converting an address check whether it is usable or assigned?
No. All 32-bit patterns, including 0 and 4294967295, can be represented. Reachability and assignment depend on the network context.
Is my input sent to a server?
No. The conversion runs in your browser and does not contact the address.
Documentation & further reading
Related tools
IPv4 subnet and netmask calculator
Calculate IPv4 subnet boundaries and usable endpoints, or convert a netmask and prefix.
IP range to CIDR
Turn an inclusive IPv4 address range into the smallest exact list of CIDR blocks.
Aggregate CIDR blocks
Reduce an IPv4 CIDR list without changing its address coverage.
IPv6 expand and compress
Convert one IPv6 address to canonical, expanded and colon-free 32-digit forms.