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.
Hundreds of addresses convert in under 1ms on modern browsers.
How to convert IP to hex
Convert in 3 steps
Takes ~5 seconds- 1Paste your IP addresses
Enter one or more IPv4 addresses in dot-decimal notation, one per line.
- 2Pick 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.
- 3Copy the results
Grab the hex output for use in your network configs, scripts, or documentation.
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).
192.168.0.1
C0.A8.00.01
Same address converted to a contiguous hex value.
192.168.0.1
C0A80001
Broadcast address — octet 255 becomes FF, dotted format.
255.255.255.0
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.
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)
Each octet is zero-padded to exactly 2 uppercase hex digits before formatting.
- Zero-padded octets
- Uppercase output
- Consistent 8-digit value
Paste a list of IPs and convert every line independently in one go.
- One IP per line
- Line order preserved
- Per-line error reporting
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?>
Can I convert a subnet mask like 255.255.255.0 to hex?>
What happens if I enter an IP with an octet greater than 255?>
How is dotted hex different from a contiguous or 0x-prefixed value?>
Related IP tools
Convert 32-character binary strings to IPv4 dot-decimal addresses instantly. Paste one or more lines and get results in your browser.
Convert dotted binary IPv4 addresses to dot-decimal notation instantly. Paste one or more binary IPs and get results in your browser.
Count how many IPv4 addresses exist between two endpoints. Paste start and end IPs to get the total. In your browser.
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.
Convert integer IP values to IPv4 dot-decimal format. Paste one integer per line and get IPs instantly. In your browser.
Sort a list of IPv4 addresses from lowest to highest. Paste IPs and get sorted output instantly. Works fast in your browser.
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.
Convert IPv4 addresses to dotted binary instantly. Paste one or more addresses and get 8-bit binary octets fast, right in your browser.
Convert IPv4 dot-decimal addresses to integer format. Paste one IP per line and get numeric output instantly. In your browser.
Generate a list of random IPv4 addresses. Enter how many IPs you need and get them instantly. Works fast in your browser.