Convert an IP Address to Hex
Quickly convert an IP address to a hex IP address. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Quickly convert an IP address to a hex IP address.
Type or paste above to see the result here.
What you paste never leaves this tab
Convert an IP Address to Hex is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, whatever you type in is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Convert an IP Address to Hex
- 1. Enter the IPv4 address. Type a dotted-quad address such as 127.0.0.1, one per line for a list. A :port or a /prefix after the address is read too, and leading zeros like 010 are read as decimal with a note.
- 2. Pick the format and byte order. Choose Plain for c0a80001, 0x prefixed for source code, or Dotted hex for c0.a8.00.01. Byte order Little endian writes the bytes the way /proc/net/tcp shows them, so 127.0.0.1 becomes 0100007f. One address also lists the 0x form, dotted hex, little endian, the 32-bit integer and the binary, each with its own copy button.
- 3. Copy the hex address. Copy the converted address from the output pane and use it in your packet filter, register write or lookup against a kernel table.
When to use Convert an IP Address to Hex
Convert an IP Address to Hex turns human-readable IPv4 into the raw form that kernels, firmwares and packet dumps actually store. Tools like /proc/net/tcp, bootloaders and low-level socket code all show addresses as hex words, and translating by hand invites octet mistakes.
- Reading /proc/net/tcp on Linux. The kernel lists connections with hex addresses. Convert the IP you are hunting for, remembering byte order may differ, and grep the file for it instead of decoding every row.
- Configuring embedded network stacks. A microcontroller SDK wants the static IP as a 32-bit hex constant. Convert 192.168.0.1 with the 0x prefixed format and paste the literal straight into the config header.
- Matching bytes in a packet capture. When Wireshark shows raw bytes, the destination address appears as four hex octets. Converting the expected IP first lets you spot it in the dump without mental arithmetic.
- Writing firewall or eBPF constants. Filter programs often compare against an address as an integer. Generate the hex form here so your BPF or ACL rule matches the host you intend.
Examples
Localhost
Input
127.0.0.1
Output
7f000001
Private
Input
192.168.0.1
Output
c0a80001
Little endian, as in /proc/net/tcp
Input
127.0.0.1
Output
0100007f
With a port
Input
127.0.0.1:8080
Output
7f000001:1f90
About the Convert an IP Address to Hex tool
Convert an IP Address to Hex does its work locally, right in the browser. Quickly convert an IP address to a hex IP address. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Hex Tools collection on EditSafely, a set of 108 small, focused Hex utilities that share the same instant, private workspace.
You can shape the output with 2 settings, including Output format and Byte order, and the result refreshes the moment you change one. 4 worked examples further down the page show exactly what the tool produces for real inputs.
Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Is Convert an IP Address to Hex free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.
Related tools
All Hex Tools →Convert Hex to an IP Address
Quickly convert a hex IP address to a human-readable IP address.
Convert IPv6 to Hex
Convert an IPv6 address to hexadecimal form.
Convert Hex to IPv6
Convert an IPv6 address in hexadecimal form back to human-readable form.
Add Hex Numbers
Quickly calculate the sum of a bunch of hex numbers.