Conversion Tools100% Client-Side

IPv4 to Hexadecimal Converter

Paste a dotted IPv4 address to see its bytes in one packed hexadecimal value. The converter writes eight lowercase hexadecimal digits after a 0x prefix. Each pair represents an original octet, starting with the leftmost address field. This is useful when comparing a dotted address with an eight-digit value in a fixture, trace, or diagnostic report that uses compact byte notation.

Input
11 chars•1 lines
Output

Reverse tool

Hex to IPv4

Decode a packed hexadecimal IPv4 value or four dotted hex groups. Copy the familiar dotted-decimal address after checking the byte order and input range.

Open Hex to IPv4
Example input
c0.a8.01.01
Example output
192.168.1.1

How to Use the IPv4 to Hex Online

  1. 1Paste an IPv4 address with four decimal octets separated by dots. Use values from 0 through 255.
  2. 2Place each additional address on its own line and keep any subnet prefixes separate. Read the output in the same line order.
  3. 3Split the eight hexadecimal digits into four pairs when comparing the bytes individually. Ignore the prefix while counting the pairs.
  4. 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.

Input Sample
192.0.2.10
Expected Output
0xc000020a

Each input gets its own eight-digit result, including leading zeros where the earlier bytes require them.

Input Sample
0.0.1.255
203.0.113.16
Expected Output
0x000001ff
0xcb007110

Practical 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.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

The prefix marks the number as hexadecimal. It is separate from the eight hexadecimal digits that represent the address. Keep it if the destination accepts prefixed hex, or copy the digits alone if that field defines the base already.

Explore Other Tools

12 suggested tools

View all tools