IPv4 Format Converter
Convert IPv4 addresses between formats: dotted decimal (192.168.1.1), integer (3232235777), hexadecimal (0xC0A80101) and binary. Everything in your browser.
One address, four ways to write it
The access log shows 3232235777. An old firewall rule uses 0xC0A80101. A database column stores an unsigned integer and nobody remembers why. They all point at 192.168.1.1, but you need to confirm that right now, in the middle of an investigation, and turning a 32 bit number into four octets in your head is not a good use of the next five minutes.
Every IPv4 address is a 32 bit number, and dotted decimal is just a friendly way of printing four bytes. 192.168.1.1 works out to 192 times 2^24, plus 168 times 2^16, plus 1 times 256, plus 1, which is 3232235777. Paste dotted decimal, an integer between 0 and 4294967295, or hexadecimal carrying the 0x prefix, and all four fields fill in. Dotted binary is an output field.
The 0x prefix is required, so C0A80101 on its own is not recognized. Keep the hex to eight digits at most, since anything longer no longer fits in an IPv4 address. CIDR notation is not accepted, so strip the /24 before pasting. IPv6 is out of scope. The integer shown matches what MySQL INET_ATON returns, which is handy when checking a query. It all runs in your browser.
Frequently asked questions
Which address is the number 3232235777?
Does it handle IPv6?
Can I paste binary into the input box?
Related Tools
Binary ↔ Hexadecimal Converter
Convert numbers between binary and hexadecimal without going through decimal. Shows nibble (4-bit) grouping.
Numeric Bases Converter
Convert numbers between binary (base 2), decimal (base 10), hexadecimal (base 16) and octal (base 8). Type in any field for instant conversion in the others.
Number Base Converter
Convert numbers between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Instant bidirectional conversion.
Text ↔ Hex Converter
Convert ASCII text to hexadecimal values and vice versa, character by character. Useful for debugging, encoding and protocol analysis.
Binary Code Translator
Convert text to binary code (0s and 1s) and vice versa. Supports any ASCII character. Processed in the browser.
URL Encode / Decode
Encode text for safe use in URLs (percent-encoding) or decode URL-encoded strings back to the original. Processed in the browser.