IP to Hex Converter

Enter a dotted IPv4 address and convert each octet into a compact hexadecimal value.

Network converter

Convert IPv4 to HEX

Result
Enter a value or load the sample to see the result.

IPv4 to HEX conversion guide

Convert an IPv4 address to hexadecimal notation online for network documentation, protocol notes, logs, and debugging.

What it does

IPv4 addresses are usually written as four decimal octets, such as 192.168.1.1. The same 32-bit value can also be represented as hexadecimal. This converter turns each octet into a two-character hex pair and joins the result into one compact value.

When to use it

Hexadecimal IP notation appears in protocol examples, packet analysis, debugging notes, log enrichment, network training, and low-level documentation. It is especially useful when you need to compare a dotted address with a byte-oriented representation.

How it works

The tool validates that the input is a proper IPv4 address with four parts from 0 to 255. Each part is padded to two hex characters, so 1 becomes 01 and 192 becomes C0. That keeps the output aligned as a full 8-character IPv4 hex value.

Practical note

Use this page for fast checks, documentation, study notes, and debugging. It is focused on IPv4 and does not attempt to convert IPv6 addresses.

Convert IPv4 to HEX

Input

192.168.1.1

Output

Hex: 0xC0A80101 / Plain: C0A80101

How to use

  1. Paste or enter the value you want to process.
  2. Click Convert to run the tool.
  3. Review the output and copy the result you need.

Best for

  • Network notes
  • Log inspection
  • Protocol examples
  • Subnet learning

IPv4 reference notes

32-bit structure

IPv4 addresses are 32-bit values split into four octets. Hex and binary outputs are alternate views of the same value.

Padding is intentional

Hex pairs and binary octets are padded so each address part keeps its byte-level shape in documentation and debugging notes.

IPv4 only

These tools do not parse IPv6 or mixed notation. Keeping IPv4 pages focused reduces ambiguous results.

IP to Hex Converter common mistakes

FAQ

Why is the output eight hex characters?

IPv4 is 32 bits. Eight hexadecimal characters represent those 32 bits.

What does 0x mean?

0x is a common prefix that marks a value as hexadecimal. The plain value is also shown without the prefix.

Can this convert IPv6?

No. This page is for IPv4 addresses only.

Why does 192 become C0?

192 in decimal equals C0 in hexadecimal.