IP Address to Hex Converter
Convert an IPv4 or IPv6 address to integer, hexadecimal, and binary format. Enter either address family and get the integer value, hex, colon-separated hex, binary, reverse-DNS (PTR) pointer, and address-type classification (private, loopback, link-local, public...) all at once.
Input
An IPv4 address (192.168.1.1) or IPv6 address (2001:db8::1, full or compressed with '::').
Output
| Format | Value |
|---|---|
| No data yet | |
Guides
The IP Address to Hex Converter takes a single IPv4 or IPv6 address and shows every representation networking tools actually need: the integer value, hexadecimal, binary, the reverse-DNS (PTR) pointer name, and a best-effort classification of the address type.
How to use it
Paste an address in either family — a dotted-decimal IPv4 address (192.168.1.1) or an IPv6 address, full or compressed with :: (2001:db8::1) — and the calculator auto-detects which one it is. An embedded IPv4 tail (::ffff:192.168.1.1) is also supported.
The output table shows:
- IP Version — IPv4 or IPv6.
- Integer — the address as a plain decimal number (32-bit for IPv4, 128-bit for IPv6).
- Hexadecimal — the address as one continuous hex string (
0x…). - Colon-Hex — the same hex digits grouped and colon-separated (byte pairs for IPv4, 4-digit groups for IPv6).
- Binary — the full bit string (32 bits for IPv4, 128 bits for IPv6).
- Reverse DNS Pointer — the
in-addr.arpa(IPv4) orip6.arpa(IPv6) name used for a reverse DNS (PTR) lookup. - Address Type — Private, Loopback, Link-Local, Multicast, Public / Global, and a few other reserved ranges.
Reverse DNS pointers
A reverse DNS lookup asks "what hostname does this IP resolve back to?" by querying a specially-formatted domain name instead of the address itself:
- IPv4 reverses the four octets and appends
.in-addr.arpa—192.168.1.1becomes1.1.168.192.in-addr.arpa. - IPv6 reverses every hex nibble of the full 128-bit address and appends
.ip6.arpa— one label per hex digit, 32 labels total.
Address type classification
The classification is a best-effort read of the well-known reserved ranges (RFC 1918 private ranges, loopback, link-local, multicast, and so on) — useful for a quick sanity check, not a substitute for an authoritative IANA registry lookup on edge cases.
Privacy
All conversions run entirely in your browser. Your IP address is never uploaded or stored.
Use it from code
From 3 credits per callREST API
curl -X POST https://api.iotools.cloud/v1/tool/ip-address-to-hex-converter \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"address": "192.168.1.1"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `ip-address-to-hex-converter` tool (IP Address to Hex Converter) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.