IP address converter: integer, hexadecimal, binary and IPv6
Enter an IPv4 or IPv6 address (or its integer or hexadecimal value) to see every representation: integer, hexadecimal, binary, reverse DNS name (in-addr.arpa and ip6.arpa), compressed and expanded IPv6, IPv4-mapped, 6to4 and NAT64 forms.
Runs in your browser The addresses you enter are not sent to a server.
Example: 192.0.2.33, 2001:db8::1, 3221225985 or 0xC0000221. Tick the box to read an integer as an IPv6 address.
Result: 192.0.2.33
IPv4
Example conversion: 192.0.2.33. Enter your own address in the box above; the result here updates.
Dotted decimal
192.0.2.33
Integer
3221226017
Hexadecimal
0xc0000221
Binary
11000000.00000000.00000010.00100001
Reverse DNS name
33.2.0.192.in-addr.arpa
IPv4-mapped IPv6
::ffff:192.0.2.33
IPv4-mapped IPv6 (hexadecimal)
::ffff:c000:221
6to4 prefix
2002:c000:221::/48
NAT64 address
64:ff9b::192.0.2.33
CopyCopy allThis browser cannot run the calculator (BigInt is required). Update your browser.Result: {x}Blocks: {n}Calculate this blockSwap and calculateEntered addressCIDR notationNetwork addressBroadcast addressFirst usable addressLast usable addressFirst addressLast addressUsable host countTotal address countSubnet maskWildcard maskPrefix lengthBlock typeDotted decimalCompressed (RFC 5952)ExpandedIntegerHexadecimalBinaryReverse DNS name/64 prefixIPv4-mapped IPv6IPv4-mapped IPv6 (hexadecimal)6to4 prefixNAT64 addressEmbedded IPv4 (mapped)Embedded IPv4 (6to4)Embedded IPv4 (NAT64)Binary viewAddressMaskNetwork addressBold: network bits · faded: host bitsBlockUsable rangeBroadcastFirst addressLast addressAddress countHosts requestedUsable hostsMaskRequestTotal blocks: {n}Total blocks: {n}; showing the first {shown}.{ip} is in this block.{ip} is not in this block.Addresses left in the block: {n}The range is a single CIDR block.Enter an address.The input is too long (at most {n} characters).Enter a valid IPv4 or IPv6 address.A number with a leading zero (for example 010) is not accepted: some systems read it as an octal number.A zone ID (such as %eth0) is not supported.The subnet mask is not valid: its bits must be contiguous (for example 255.255.255.0).The prefix length is not valid: 0-32 for IPv4, 0-128 for IPv6.Enter an integer or a hexadecimal number starting with 0x.The number is outside the address range (at most 4294967295 for IPv4).Enter the first and last address separated by a hyphen (192.168.1.10 - 192.168.1.200) or a CIDR block.Both addresses must be the same version (both IPv4 or both IPv6).The first address is larger than the last.The new prefix length must be larger than the block's.Enter one network's host count per line.At most {n} networks can be entered.Host counts must be integers of 1 or more.The requested networks do not fit in the block. Use a larger block or reduce the requests.The address must be the same version as the block.This network (RFC 791)Private network (RFC 1918)Shared address space, CGNAT (RFC 6598)Loopback (the device itself)Link-local (automatic local address)IETF protocol assignment (RFC 6890)Documentation and example addresses (RFC 5737, RFC 3849)Network device benchmarking (RFC 2544)MulticastLimited broadcast address (255.255.255.255)Reserved or unassignedCovers several types (includes private ranges)Public address spaceUnspecified address (::)IPv4-mapped IPv6 (::ffff:0:0/96)NAT64 prefix (RFC 6052)Discard prefix (RFC 6666)6to4 (RFC 3056; anycast mode deprecated, RFC 7526)Unique local address, ULA (RFC 4193)Global unicast (2000::/3)
What is converted?
IPv4: integer, hexadecimal, binary and the reverse DNS name (in-addr.arpa)
IPv6: compressed (RFC 5952) and expanded notation, hexadecimal, the reverse DNS name (ip6.arpa) and the /64 prefix
The IPv6 equivalents of an IPv4 address: IPv4-mapped (::ffff:), 6to4 (2002::/16) and NAT64 (64:ff9b::/96)
An IPv4 address embedded in an IPv6 address is extracted
How do I read the result?
In IPv6 compression the longest run of zeros becomes "::" (the first run on a tie); a single zero group is not compressed and letters are lowercase (RFC 5952).
The reverse DNS name is the name a PTR record is looked up under: 8.8.8.8.in-addr.arpa for 8.8.8.8; in IPv6 the 32 hexadecimal digits are written reversed with dots.
6to4 (RFC 3056, 2002::/16) is rarely used today: RFC 7526 (2015) deprecated 6to4's anycast mode and the 192.88.99.0/24 prefix. The NAT64 prefix 64:ff9b::/96 is defined in RFC 6052.
Frequently asked questions
How do I get an IP address from an integer?
An IPv4 address is a 32-bit number: 3232235777 is 192.168.1.1. Type the number; it is split into four octets and written with dots.
Why is the IPv4-mapped address shown in two forms?
::ffff:192.0.2.33 and ::ffff:c000:221 are the same address; the first uses the dotted IPv4 notation and the second plain hexadecimal (RFC 5952).
Are the addresses I enter stored?
No. The conversion runs in your browser; the addresses are not sent to a server.
CopiedSectionCould not get the result. Reload the page and try again.Switch to light themeSwitch to dark themeOpen menuClose menu