Skip to main content
KalkuNet

IPv4 to Hex Converter — 0x, Per Octet and Little-Endian

Convert IPv4 octets into dotted hex and 32-bit hex (for DHCP Options & /proc).

Runs in your browserNetwork · IPv6, MAC, Binary & Address Converters
Input32-bit hexHex octetsLittle-endian (/proc/net/tcp)
192.168.1.10xC0A80101C0.A8.01.010101A8C0
10.0.0.2540x0A0000FE0A.00.00.FEFE00000A
8.8.8.80x0808080808.08.08.0808080808
100.64.12.70x64400C0764.40.0C.07070C4064
203.0.113.450xCB00712DCB.00.71.2D2D7100CB
255.255.255.00xFFFFFF00FF.FF.FF.0000FFFFFF

When to use the IPv4 Address to Hexadecimal (0x) Converter

  • Three hex forms at once

    Every address is shown as 32-bit hex with a 0x prefix, as hex octets, and as little-endian hex the way Linux /proc/net/tcp prints it.

  • For configs and firmware

    DHCP options, some iptables rules and firmware code often expect addresses in hex. The result is ready to paste without converting each octet by hand.

  • Many addresses in one table

    Paste an address list from network documents and see all hex forms side by side, with invalid lines marked.

  • Consistent upper case

    Hex digits use upper case with leading zeros, so every address is exactly 8 digits and easy to compare in logs.

Frequently asked questions

How do I convert to hex by hand?

Turn each decimal octet into two hex digits, for example 192 becomes C0 and 168 becomes A8, then join all four.

When do I need little-endian?

When reading /proc/net/tcp, /proc/net/route or memory dumps from x86 and ARM processors that store numbers smallest byte first.

Is hex the same as the 32-bit integer?

Yes, both are the same number in different bases. Use the IPv4 to Integer converter to see the decimal form.

What about the reverse?

Use the Hex to IPv4 converter, which reads both big-endian and little-endian order.

Is my data sent to a server?

No. Every conversion runs in your browser, so addresses from internal configs or device firmware are never sent to a server.

Learn more