Security tools

IPv4/IPv6 format convert

Show one IP address in every common representation (dotted/expanded, integer, and hex), computed locally.

Runs on your device. The file is never uploaded.

IPv4/IPv6 format convert takes one address and prints it four ways: dotted decimal, the unsigned 32-bit integer, 0x hex and dotted binary octets. An IPv6 address instead gives the compressed form, the fully expanded groups, plain hex and all 128 bits as one decimal number. Conversion runs one way, so an integer typed in is rejected.

Options

Questions

What formats does it print?

For IPv4: dotted decimal, the unsigned 32-bit integer, hex with an 0x prefix, and binary shown as four dotted octets. For IPv6: the compressed form, the fully expanded form with every group padded to four digits, plain hex, and the decimal value of all 128 bits.

Can I paste an integer and get an address back?

No. The input is parsed as an IPv4 or IPv6 literal, chosen by whether it contains a colon, so a bare integer is rejected. The conversion runs one way only, from an address to its other representations. If what you have is a block rather than an address, the CIDR calculator is the tool for it.

Why did my address fail to parse?

The parser is strict and names the problem. An octet above 255 gives an out of range message with your input. For IPv6 you might see an empty address, more than one double colon, too many groups around the double colon, a group count other than eight, or a group that is not one to four hex digits.

What is the difference between compressed and expanded?

Compressed is the everyday form with leading zeros dropped and the longest run of zero groups replaced by a double colon. Expanded writes all eight groups with four digits each. They are the same address, and the expanded form is easier to compare by eye or to sort.

Does it query anything about the address?

No. It is local arithmetic and formatting only: no DNS, no whois, no geolocation and no network request of any kind. Nothing about the address is looked up, so it will not tell you who owns it, whether it is routable, or whether anything answers there.

Related Security tools

·→1Subnet / CIDR calculatorCompute network address, broadcast/last address and host count for an IPv4 or IPv6 CIDR block. Pure arithmetic on the address you give it. No lookup, no network.Takes no file·→1IP range parserParse an IPv4/IPv6 range ("start-end" or CIDR) into its address count and the minimal set of CIDR blocks that cover it exactly. Pure arithmetic, no lookup.Takes no file·→1IPv6 transition addressesBuild IPv4-mapped/6to4/NAT64 IPv6 forms from an IPv4 address, or decode an IPv6 address back to its embedded IPv4 (and, for Teredo, server/client/port/flags). Reports what pattern was recognised, not whether the address is reachable or in use.Takes no filen→nIPv4 / TCP / UDP header parserDecode an IPv4 header, then its TCP or UDP header if the protocol field says so (checksum verified against the standard Internet checksum, not TCP/UDP's, which need a pseudo-header this tool is not given the source context to build). Give it bytes starting at the IP header, e.g. an Ethernet frame's payload.Runs on each file you dropn→nEthernet frame parserDecode an Ethernet II frame: destination/source MAC, EtherType (unwrapping one 802.1Q VLAN tag if present), and payload length. IEEE 802.3 LLC/SNAP framing is not handled, only Ethernet II.Runs on each file you dropn→nTLS record parserDecode a raw TLS record (RFC 8446 §5.1): content type, version, length, and for a ClientHello/ServerHello, the cipher suites/extensions inside. Give it bytes captured off the wire, not a PEM.Runs on each file you drop