IPv4 address converter
Convert IPv4 addresses between dotted decimal, decimal integer, hexadecimal, binary, octal and IPv6-mapped notation, with batch mode plus address class and private-range detection.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Conversion result
Enter an address to see every notation
What this tool does
- Turn the decimal, hex or octal forms you find in logs and packet captures back into dotted decimal so you can see which host was actually addressed.
- Write firewall, Nginx, Kubernetes or database allowlist rules in decimal or hex notation for a compact single-line entry.
- Get the 32-bit integer form before doing bitwise maths, mask arithmetic or address comparison, instead of comparing strings by accident.
- Clean up an address list: paste one address per line to convert them all and instantly see which ones are private (10/8, 172.16/12, 192.168/16), loopback, link-local or carrier-grade NAT.
Example
Input
192.168.1.1
Output
Dotted decimal: 192.168.1.1 Decimal integer: 3232235777 Hexadecimal: 0xC0A80101 Binary: 11000000.10101000.00000001.00000001 Octal: 0o30052000401 IPv6 mapped: ::ffff:192.168.1.1 IPv6 mapped (hex): ::ffff:c0a8:0101
Extra metadata: class C · private address · detected as dotted decimal. The octal output is the whole 32-bit integer (0o30052000401), not each octet converted separately.
Frequently asked questions
Which notations are accepted?
Dotted decimal (192.168.1.1), decimal integer (3232235777), hexadecimal (0xC0A80101), binary (either 0b… or dotted binary such as 11000000.10101000.…), octal (0o…) and the IPv6-mapped forms (::ffff:192.168.1.1 or ::ffff:c0a8:0101). The tool detects which one you pasted.
Why is the octal output 0o30052000401 rather than 300.250.1.1?
Dotted octal looks far too much like dotted decimal — 8.8.8.8 is 10.10.10.10 in octal, which would be parsed as decimal if you pasted it back. So the tool emits the 32-bit integer with a 0o prefix, which round-trips exactly.
How is the address nature determined?
By the standard ranges: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private, 127/8 is loopback, 169.254/16 is link-local, 224/4 is multicast, 100.64/10 is carrier-grade NAT, 240/4 and the documentation ranges are reserved, 255.255.255.255 is limited broadcast, and everything else counts as public.
What happens with an invalid address?
In single mode you get the exact reason (not a valid IPv4 address / value outside the 32-bit range / enter an address). In batch mode only the offending line is flagged; every other line still converts, and at most 500 lines are processed per run.
Is the conversion uploaded anywhere?
No. Everything is computed locally as 32-bit unsigned integers, the page makes no network requests, it works offline, and the addresses you enter are never recorded.
Keywords:ipv4ip 转换ip converter十进制 ip十六进制二进制八进制ipv6 映射批量转换