Skip to content

IP Address Converter · Networking

See an IP address in every form at once.

Paste an address in whatever form a log, firewall or packet capture handed you and read every other representation back at once — plus what the address is: private, loopback, CGNAT.

Runs in your browser IPv4 & IPv6 No signup Updated Jul 22, 2026

IP Address Converter playground

Any form — dotted decimal 192.168.1.10, integer 3232235786, hex 0xC0A8010A, binary, or IPv6 2001:db8::1 — the format is auto-detected.

Result

Type an IP in any form or pick an example to see it in dotted decimal, integer, hex and binary here.

The Gap

The same address, four ways to write it.

A log line stores an IP as an integer, a firewall shows it in hex, your code reads it dotted, and a packet capture prints binary. Converting an IP address to decimal, binary or hex by hand means multiplying by powers of 256 and is easy to get subtly wrong.

This converter detects whatever form you paste and shows the rest instantly — IPv4 and IPv6 — so you can match a value across tools without reaching for a calculator. It works in reverse too: paste an integer or hex value to convert it back to a dotted IP address. Entirely in the browser, with nothing to install.

Need the network maths instead? Open the Subnet Calculator.

The Pipeline

How it works.

Four deterministic steps run on every keystroke — all inside your browser tab, with exact BigInt arithmetic.

  1. Detect the format.

    Colons mean IPv6, 0x means hex, only 0s and 1s mean binary, digits mean an integer, dots mean IPv4.

  2. Read to a number.

    The input is parsed to a single BigInt — the canonical value behind every representation.

  3. Re-encode.

    That value is rendered back out as dotted decimal, integer, hexadecimal and binary (or IPv6 forms).

  4. Classify.

    The address is labelled — private, loopback, link-local, documentation, multicast and so on.

The Formats

One value, every representation.

Each form is just a different encoding of the same underlying number — 32 bits for IPv4, 128 for IPv6 — and the range that number falls in tells you what kind of address it is.

IPv4

100.64.0.1 — carrier-grade NAT space, easily mistaken for a private address — in each form:

ipv4-forms
100.64.0.1              dotted decimal
1681915905              integer (decimal)
0x64400001              hexadecimal
01100100.01000000.      binary (by octet)
  00000000.00000001
1.0.64.100.in-addr.arpa PTR name
Carrier-grade NAT       address type (RFC 6598)

IPv6

::ffff:192.168.1.10 — an IPv4-mapped address — in each form:

ipv6-forms
::ffff:c0a8:10a         compressed (RFC 5952)
0000:0000:0000:0000:    expanded
  0000:ffff:c0a8:010a
192.168.1.10            embedded IPv4
281473913979146         integer (decimal)
IPv4-mapped             address type (RFC 4291)

Next Step

Need the network, not just the address?

The Subnet Calculator takes an address plus a prefix and returns the network, broadcast, mask, wildcard and host range for IPv4 and IPv6 — the companion to converting a single address.

convert.txt
0xC0A8010A
  →  192.168.1.10
  →  3232235786
  →  11000000.10101000.00000001.00001010

FAQ

Questions, answered.

Tap a question to expand the answer.

Paste an IP address in any common form — dotted decimal (192.168.1.10), an integer (3232235786), hexadecimal with or without the 0x prefix, binary, or an IPv6 literal (2001:db8::1) — and it shows every other representation at once, plus the PTR name and the address type. A bulk mode converts a whole list, one address per line. Everything is computed in your browser.

No. Detection and conversion run 100% client-side in your tab. There is no server, no account and no logging, so internal and private addresses are safe to paste.

A value with colons is read as an IPv6 literal; a 0x-prefixed value as hexadecimal (more than 8 hex digits means IPv6); bare hexadecimal without the 0x is accepted when it is exactly 8 or 32 digits and contains at least one letter; a string of 0s and 1s totalling 32 or 128 bits is binary, with dots, colons, underscores or spaces allowed as separators; a plain run of digits is an integer; and a dotted value is IPv4. A %zone suffix is stripped and shown as its own row, and a /prefix is ignored with a warning. You do not pick the format — the converter infers it and tells you what it read.

An IPv4 address is a 32-bit unsigned integer. The decimal value is octet1 x 256^3 + octet2 x 256^2 + octet3 x 256 + octet4, so 192.168.1.10 becomes 3232235786. Paste the dotted address into the converter and it computes the integer instantly using exact BigInt arithmetic.

An integer takes 4 bytes versus up to 15 for a dotted string and makes sorting and range or CIDR checks simple numeric comparisons — which is why GeoIP tables and allow/deny lists store IPs as integers. The converter moves between the integer and dotted forms exactly, removing the risk of hand-calculation errors.

Each octet becomes a two-digit hex value, concatenated and 0x-prefixed, so 192.168.1.10 is 0xC0A8010A. The tool always outputs zero-padded hex — 8 digits for IPv4 and 32 for IPv6 — and accepts bare hex without the 0x when it is exactly 8 or 32 digits. For IPv4 it also shows the byte-swapped form (0x0A01A8C0) that little-endian sources such as /proc/net/tcp print.

Yes. IPv6 is converted with full 128-bit precision: you get the RFC 5952 compressed form, the fully expanded form, the decimal integer and the padded 32-digit hexadecimal. Embedded IPv4 (for example ::ffff:192.168.1.1) is parsed too.

Reverse DNS stores the hostname for an address under a special domain: IPv4 octets are reversed under in-addr.arpa (192.168.1.10 becomes 10.1.168.192.in-addr.arpa) and IPv6 nibbles are reversed under ip6.arpa. The converter derives the PTR name for every address; to build the matching PTR record and reverse zone, open the Reverse DNS / PTR Helper.

Each of the four octets is written as an 8-bit binary number, giving 192.168.1.10 as 11000000.10101000.00000001.00001010. The converter accepts binary back too — with or without the dot separators — so its own output round-trips, and IPv6 addresses get a colon-grouped 128-bit binary view.

Browsers and operating systems accept an IPv4 address written as its raw integer or as hex, so http://3232235786 and http://0xC0A8010A both resolve to 192.168.1.10. This is useful for testing and explains why these alternate forms appear in logs and security scans. The converter lets you move quickly between the forms without manual arithmetic.

More free, private DevOps tools.

The IP Address Converter is one tool in OpsCanopy — a growing canopy of browser-based validators, converters and testers that never touch a server.

New to Networking?  Read the Networking guide →

29 free tools, every one offline-capable — opscanopy.com works with no signup and nothing uploaded.

More networking: the Reverse DNS / PTR Helper and the Subnet Splitter, or browse the full tools directory.

Provided as-is for convenience. OpsCanopy is free and open.