consolelog.tools

IP Address Converter

Paste any IPv4 or IPv6 address, an IP as an integer, a 0x hex value, or a CIDR block — it auto-detects the format and converts live to dotted, integer, hex, binary, and reverse-DNS forms. See address class and private/public/loopback/reserved flags, expand network details for CIDR ranges, and copy any value or pipe the whole thing as JSON. Runs entirely in your browser.

About this ToolHow it works, benefits & use cases

Feed this converter an IPv4 or IPv6 address, an IP written as a decimal integer, a 0x hexadecimal value, or a CIDR block, and it auto-detects the format and converts it live. For IPv4 you get dotted decimal, the 32-bit integer, hexadecimal, full binary, and the reverse-DNS (PTR) name; for IPv6 you get the compressed and fully-expanded forms, the integer, hexadecimal, and PTR. Alongside the conversions, badges classify the address — its class, whether it is private, public, loopback, or reserved (global for IPv6) — so you immediately know what kind of address you are looking at. Give it a CIDR block and it expands the network: network and broadcast addresses, first and last host, total and usable host counts, netmask, and wildcard mask. Every value is copyable and the full analysis exports as JSON, all computed in your browser.

How to Use

  1. 1Type or paste an address into the input — a dotted IPv4, an IPv6 address, a decimal integer, a 0x hex value, or a CIDR block.
  2. 2Read the detected-format badge and the classification flags (class, private/public, loopback, reserved).
  3. 3Copy any conversion card — dotted, integer, hex, binary, or reverse-DNS (PTR).
  4. 4For a CIDR block, expand the Network details for network/broadcast, first/last host, host counts, netmask, and wildcard.
  5. 5Use the example buttons to try common inputs, then copy/download/pipe the full analysis as JSON.

Key Benefits

  • Auto-detects dotted IP, integer, 0x hex, IPv6, and CIDR input formats
  • IPv4 conversions: dotted, integer, hex, binary, and reverse-DNS PTR
  • IPv6 conversions: compressed, fully expanded, integer, hex, and PTR
  • Classification flags: class, private/public, loopback, and reserved
  • CIDR expansion: network, broadcast, host range, counts, netmask, and wildcard
  • Every value copyable; full analysis exports as JSON
  • All computation runs locally in your browser

Common Use Cases

  • Converting an IP stored as an integer in a database back to dotted notation
  • Working out the host range and usable count for a CIDR block when planning a subnet
  • Generating the reverse-DNS PTR name for an address
  • Checking whether an address is private, loopback, or reserved before using it
  • Expanding or compressing an IPv6 address to a canonical form
Detected IPv4 address

Auto-detects the format — try a dotted IP, a decimal integer, a 0x hex value, an IPv6 address, or a CIDR block.

Class CPrivate

Copy, download, or pipe to JSON Formatter / JSON to TypeScript.

{
  "ok": true,
  "input": "192.168.1.1",
  "version": 4,
  "kind": "address",
  "ipv4": {
    "dotted": "192.168.1.1",
    "integer": "3232235777",
    "hex": "0xC0A80101",
    "binary": "11000000.10101000.00000001.00000001",
    "class": "C",
    "isPrivate": true,
    "isLoopback": false,
    "isReserved": false,
    "ptr": "1.1.168.192.in-addr.arpa"
  }
}

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related tools