Home › Toolkit › Network › IPv4 / IPv6 Converter

🔢 IPv4 / IPv6 Converter

The same address wears many costumes: dotted decimal in the config, a bare integer in the database, hex in the packet dump, an IPv6-mapped form in the dual-stack log. Convert between all of them, in both directions, in your browser.

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

  1. Type or paste an IPv4 or IPv6 address in any standard spelling.
  2. Press Convert.
  3. 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

Making videos too? Try our YouTube Video Analyzer, or browse the full Toolkit and the free YouTube tools.