How to Use the IPv4 to Hex Online
- 1Paste an IPv4 address with four decimal octets separated by dots. Use values from 0 through 255.
- 2Place each additional address on its own line and keep any subnet prefixes separate. Read the output in the same line order.
- 3Split the eight hexadecimal digits into four pairs when comparing the bytes individually. Ignore the prefix while counting the pairs.
- 4Copy the packed value with its prefix, or remove the prefix when the destination expects digits only.
Input & Output Examples
The four byte pairs appear together as 0xc000020a.
192.0.2.100xc000020aEach input gets its own eight-digit result, including leading zeros where the earlier bytes require them.
0.0.1.255
203.0.113.160x000001ff
0xcb007110Practical Developer Workflows
- Compare a hexadecimal field in a fixture with the dotted IPv4 address used to create it.
- Prepare readable byte-oriented examples for a networking or data-format guide.
- Record address values from a trace alongside packed hex output for manual comparison.
Zero Server Uploads & Complete Privacy
Runs 100% in your browser; no data is uploaded to any server.
Let us know directly so our engineering team can fix it.