IP to Hex Converter

Convert any IPv4 address to hexadecimal in one click. Choose your output format — dotted (C0.A8.00.01), a single contiguous value (C0A80001), or 0x-prefixed (0xC0A80001) — and get zero-padded, uppercase hex instantly, no server required.

IPv4 address(es)

Enter one IPv4 address per line in dot-decimal notation.

Everything runs locally in your browser — nothing is uploaded.

Hex outputEach octet converted to 2-digit uppercase hexadecimal, formatted per your chosen output style.

0 lines in0 lines outN/A runtime

Hundreds of addresses convert in under 1ms on modern browsers.

How to convert IP to hex

Convert in 3 steps

Takes ~5 seconds
  1. 1
    Paste your IP addresses

    Enter one or more IPv4 addresses in dot-decimal notation, one per line.

  2. 2
    Pick a format and convert

    Choose dotted, contiguous, or 0x-prefixed output, then click Convert to Hex. Each address is split into four octets and each octet becomes a 2-digit uppercase hex value.

  3. 3
    Copy the results

    Grab the hex output for use in your network configs, scripts, or documentation.

Octet 0 becomes 00 and octet 255 becomes FF — always 2 digits, always uppercase, regardless of the output format you choose.

Who should use this tool?

  • Network engineers working with hex-based router and switch configurations
  • Developers parsing or encoding IP addresses in binary protocols or packed 32-bit integers
  • Students learning how IPv4 addresses map to hexadecimal notation

Examples

Private LAN address converted to dotted hex (default format).

Input
192.168.0.1
Output
C0.A8.00.01

Same address converted to a contiguous hex value.

Input
192.168.0.1
Output
C0A80001

Broadcast address — octet 255 becomes FF, dotted format.

Input
255.255.255.0
Output
FF.FF.FF.00

About IP to hex conversion

IPv4 addresses are four decimal octets from 0 to 255. Converting each octet to hexadecimal gives a compact, widely used alternative notation in networking and low-level programming — commonly written either as four dot-separated hex bytes or as a single packed 32-bit hex value.

This IP to hex converter transforms any dot-decimal IPv4 address into hexadecimal, in whichever format you need. Each octet is independently converted to a zero-padded, 2-digit uppercase hex value; choose dotted output (192.168.0.1 → C0.A8.00.01), a contiguous value (→ C0A80001), or a 0x-prefixed value (→ 0xC0A80001). Bulk convert multiple addresses at once, with clear error messages for any invalid input. All processing runs locally in your browser.

Choice of output format

Pick dotted hex, a contiguous value, or 0x-prefixed output — no need for a separate tool per format.

  • Dotted (C0.A8.00.01)
  • Contiguous (C0A80001)
  • 0x-prefixed (0xC0A80001)
Accurate hex conversion

Each octet is zero-padded to exactly 2 uppercase hex digits before formatting.

  • Zero-padded octets
  • Uppercase output
  • Consistent 8-digit value
Bulk processing

Paste a list of IPs and convert every line independently in one go.

  • One IP per line
  • Line order preserved
  • Per-line error reporting
Privacy first: we never send your input to a server. Everything runs locally in your browser.

Conversion tips

Ensure your input is valid dot-decimal IPv4 before converting.

  • Each octet must be a whole number from 0 to 255 — values outside that range are flagged as errors.
  • Remove any leading/trailing whitespace or extra dots before pasting for clean results.
  • Use the Hex to IP Converter to reverse the process and verify your output, in either dotted or contiguous form.

Frequently asked questions

Why is octet 0 shown as 00 instead of just 0?>
Each octet is zero-padded to exactly 2 hex digits for consistency, before being formatted into your chosen output style. This matches standard hex notation used in networking tools.
Can I convert a subnet mask like 255.255.255.0 to hex?>
Yes. Subnet masks are valid IPv4-format values and convert normally — 255.255.255.0 becomes FF.FF.FF.00 in dotted format, or FFFFFF00 as a contiguous value.
What happens if I enter an IP with an octet greater than 255?>
That line is flagged as invalid with an error message. Valid IPv4 octets must be integers between 0 and 255 inclusive.
How is dotted hex different from a contiguous or 0x-prefixed value?>
Dotted hex keeps the four-octet structure (e.g. C0.A8.00.01). Contiguous merges them into one 8-digit number (C0A80001), and 0x-prefixed adds the common code-style prefix (0xC0A80001) — all three represent the exact same address, just formatted differently. Use the output format selector to pick the one you need.

Related IP tools

32-Bit Binary to IP Converter

Convert 32-character binary strings to IPv4 dot-decimal addresses instantly. Paste one or more lines and get results in your browser.

Binary to IP Converter

Convert dotted binary IPv4 addresses to dot-decimal notation instantly. Paste one or more binary IPs and get results in your browser.

Count IPs in Given Range

Count how many IPv4 addresses exist between two endpoints. Paste start and end IPs to get the total. In your browser.

Hex to IP Converter

Convert hexadecimal IPv4 addresses to dot-decimal notation instantly. Accepts dotted hex like C0.A8.00.01 or a single hex value like C0A80001 / 0xC0A80001.

Integers to IPv4 Dot-Decimal IPs

Convert integer IP values to IPv4 dot-decimal format. Paste one integer per line and get IPs instantly. In your browser.

IP Address Sorter

Sort a list of IPv4 addresses from lowest to highest. Paste IPs and get sorted output instantly. Works fast in your browser.

IP to 32-Bit Binary Converter

Convert any IPv4 address to a 32-character binary string instantly. Paste one or more IPs and get the full 32-bit binary output in your browser.

IP to Binary Converter

Convert IPv4 addresses to dotted binary instantly. Paste one or more addresses and get 8-bit binary octets fast, right in your browser.

IPv4 Dot-Decimal IPs to Integers

Convert IPv4 dot-decimal addresses to integer format. Paste one IP per line and get numeric output instantly. In your browser.

Random IP Generator

Generate a list of random IPv4 addresses. Enter how many IPs you need and get them instantly. Works fast in your browser.