How to use the ip address format converter
- Type or paste an IPv4 address in any supported form. The default choice detects the form for you.
- If detection guesses wrong, pick the input format yourself, for example Decimal number for a value like 3232235521.
- Read the table of dotted, decimal, hex, binary and IPv4-mapped IPv6 forms.
- Use Copy all forms to copy the list as text.
192.168.0.1 in every form
The dotted address 192.168.0.1 is the decimal number 3232235521, because 192 x 16,777,216 + 168 x 65,536 + 0 x 256 + 1 equals 3,232,235,521. In hex it is C0A80001, written 0xC0A80001, since 192 is C0, 168 is A8, 0 is 00 and 1 is 01.
In binary the four bytes are 11000000.10101000.00000000.00000001. As an IPv4-mapped IPv6 address it is ::ffff:192.168.0.1, which can also be written ::ffff:c0a8:1. The tool also notes that the address is in the 192.168.0.0/16 private range.
What the forms mean
An IPv4 address is a 32 bit number. The dotted form writes it as four bytes in decimal, the decimal form writes the whole number, the hex form writes it in base 16, and the binary form writes all 32 bits. Some older software and some web addresses accept the decimal or hex forms, which is why you may see them in logs.
An IPv4-mapped IPv6 address places the 32 bits after the prefix ::ffff:, and is how some systems show an IPv4 connection on an IPv6 socket. Only that kind of IPv6 address can be converted to IPv4. Other IPv6 addresses, such as ::1 or 2001:db8::1, have no IPv4 form and are refused with a message.
Strict reading, on purpose
Short forms such as 127.1 and parts with leading zeros such as 010.1.1.1 are refused. Different programs read them differently (leading zeros may mean octal), so converting them silently would be a guess. Each dotted part must be 0 to 255, a decimal address must be 0 to 4294967295, and a hex address has 1 to 8 digits.
The reserved range note and the table are a reference list of well known ranges, with the RFC that defines each one. It is not complete and does not say whether an address is in use. This tool only reformats numbers. It does not look up, ping or contact an address. See also the number base converter, the binary translator and the bitwise calculator.
Assumptions and limits
- Only IPv4 addresses and IPv4-mapped IPv6 addresses (::ffff:0:0/96) are converted.
- Short forms and leading zeros are rejected rather than interpreted.
- The range list is a reference table of well known ranges, not a complete registry.
- Nothing is looked up online. The result is arithmetic on the number you typed.
Frequently asked questions
How do I convert an IP address to a decimal number?
Multiply the four parts by 16,777,216, 65,536, 256 and 1 and add them up. For 192.168.0.1 that gives 3,232,235,521. The tool does it for you.
Why is 127.1 rejected?
Some software expands 127.1 into a full four part loopback address and some does not. The tool asks for all four parts so the result is never a guess.
Can it convert any IPv6 address?
No. Only IPv4-mapped IPv6 addresses carry an IPv4 address inside. A general IPv6 address is 128 bits and has no IPv4 equivalent.
Is the address checked online?
No. The page never contacts the address or any server. It only changes how the number is written.