IP to Number Converter
Free online IP to number converter, no installation required. Convert between decimal, hex, octal, and binary
About IP to Number
Converts IPv4 addresses to and from their 32-bit integer representation using BigInt for full unsigned 32-bit range. Two modes are available: IP to Number (default, with 192.168.1.1 preloaded) and Number to IP (preloaded with 3232235777). Each conversion also shows the hexadecimal, octal, and binary forms of the number.
How to Use
1. Pick the mode with the IP to Number / Number to IP toggle buttons. 2. Enter an IPv4 address (e.g. 192.168.1.1) or a decimal/hex/octal number in the input. 3. Click Convert (or press Enter). The five output rows appear, each with its own Copy button. 4. Invalid input clears the result and shows a red error message.
Supported Number Formats
When converting a number to an IP, the input may be a plain decimal, a 0x-prefixed hexadecimal, or a 0o-prefixed octal value (prefixes are stripped before parsing). Values must be in the range 0 to 4294967295 inclusive; anything outside that range is rejected as invalid. The binary output is always padded to 32 bits.
▶Why does this tool use BigInt instead of plain numbers?
▶Can I convert an IPv6 address?
▶What number formats are accepted when converting to an IP?
▶Why is my input shown as invalid?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee