About this tool
An IPv4 address is a 32-bit number that humans agreed to read as four decimal bytes — 192.168.0.1 is really 3232235521 wearing punctuation. Systems store and display that number in whichever costume suits them: firewalls think in dotted decimal, databases in integers, protocol analysers in hex and binary, and programmers meet all four in the same afternoon. This converter shows every representation at once, so the address in your log and the address in your config can be recognised as the same machine without mental arithmetic in base 256.
IPv6 raises the stakes: 128 bits, written in hexadecimal groups, with a compression shorthand — the longest run of zero groups becomes a double colon — that makes two spellings of one address look unrelated. The converter expands any IPv6 address to its full eight-group form and compresses it back by the canonical rules, and it bridges the two worlds with the IPv4-mapped form (::ffff:192.168.0.1) that dual-stack systems use to file IPv4 clients inside IPv6 logs. Everything is computed locally in your browser; address arithmetic is pure mathematics and no lookup leaves the page.
How to use it
- Type or paste an IPv4 or IPv6 address in any standard spelling.
- Press Convert.
- Read every representation — decimal, integer, hex, binary, expanded, compressed and mapped — with copy-ready values.
Good to know
- When a database stores IPs as integers, sort numerically, never as text: as strings, 10.0.0.9 files itself after 10.0.0.100.
- Two IPv6 spellings that differ only in zero-compression and leading zeros are the same address — expand both before concluding a log shows two visitors.
- The ::1 address is IPv6's localhost, the twin of 127.0.0.1; seeing it in a log means the request came from the machine itself.
Frequently asked questions
Why does my IPv4 address appear inside an IPv6-looking entry?
Dual-stack servers log IPv4 clients in the IPv4-mapped IPv6 form ::ffff:a.b.c.d. It is the same address in translation, which this converter shows side by side.
Is the compressed IPv6 form unique?
Yes when the rules are followed: compress the longest run of zero groups (the first, on a tie), never a single group, and strip leading zeros. This tool applies the canonical rules.
Are conversions checked anywhere online?
No — the maths runs in your browser tab. IP addresses you paste are never sent to this site's server.
More Network tools
IP Lookup
Look up an IP address: its hostname, version and address class — or leave it blank to inspect your own.
DNS Lookup
Read the live DNS records for any domain — A, AAAA, MX, NS, TXT, CNAME, SOA and CAA, straight from DNS.
HTTP Headers Checker
See the exact response headers any web address sends — status, security headers, caching and server clues.
SSL Checker
Inspect any site's HTTPS certificate: who issued it, when it expires, and which names it covers.
Whois Lookup
Read the public Whois record for a domain: registrar, creation date, expiry and registration status.
Redirect Checker
Follow a web address hop by hop: every redirect, its status code, and where the chain finally lands.
Making videos too? Try our YouTube Video Analyzer, or browse the full Toolkit and the free YouTube tools.