IP address converter

Convert IPs to integers, hexadecimal and reverse names.

Processed only in this browser

Convert an IP address into an integer, hexadecimal, bits and a reverse-DNS name without looking it up.

Inputs and settings
Examples
More options

Inputs and results are processed in this tab. Reloading or closing clears them; files you choose to save remain on your device.

How to use this tool

  1. Enter an IPv4/IPv6 address or a nonnegative integer.
  2. For numeric input, choose the IPv4 or IPv6 family in More options.
  3. Copy the normalized, expanded, binary or reverse-name representation you need.

Turn an integer into IPv4

Input and settings
3232235777; numeric family IPv4
Result
192.168.1.1; equivalent to 0xC0A80101

This interprets an address number; it does not connect to a device at that address.

One address, several representations

IPv4 octets are combined into a 32-bit unsigned integer. IPv6 uses a 128-bit integer, preserving values that floating-point numbers cannot represent exactly. A decimal integer or a hexadecimal value prefixed with 0x can be converted back into an address.

IPv6 compression targets one longest run of zero groups and chooses the leftmost run when lengths tie. Expanded output writes every group with four hexadecimal digits, which can help when comparing bit layouts.

A reverse name is not a lookup result

The reverse name reverses IPv4 octets into the in-addr.arpa tree or IPv6 hexadecimal nibbles into ip6.arpa. Producing this name does not establish that a PTR record actually exists there.

Ports, URLs, brackets and zone identifiers such as %eth0 are not accepted. Extra leading zeros in IPv4 octets are rejected to avoid confusion with octal-style interpretations. Use the subnet calculator for CIDR ranges.

Common questions

Why is a plain number interpreted as IPv4?

IPv4 is the default numeric family. Choose IPv6 in More options when the integer represents a 128-bit address.

Does the reverse name reveal a host name?

No. It constructs the DNS query name only; no PTR query or host-name discovery takes place.

Standards and references