IP Base Converter
IP Base Converter
Dotted ↔ 32-bit integer ↔ Hexadecimal ↔ Binary
How to Use
📖 Tool Introduction
In network programming, packet analysis and system configuration work, the very same IPv4 address shows up in several disguises: the human-friendly dotted-quad form 192.168.1.1, the 32-bit unsigned integer 3232235777 used inside programs, the hexadecimal 0xC0A80101 seen in memory dumps and registers, and the raw bit string used when inspecting individual bits. Developers routinely have to translate between these notations by hand, especially when reading a C struct in_addr, dissecting a Wireshark capture, or tracing through a firewall rule. The IP Base Converter turns that chore into one input and four output rows: you type whichever notation you happen to have, the tool automatically recognises whether it is dotted, integer or hexadecimal, interprets it in network byte order (big-endian) as a 32-bit unsigned integer, and then prints the other three forms side by side. Network byte order means that the first octet in an IP datagram is the most significant byte, so the integer value of 192.168.1.1 is not a string concatenation but rather 192 times 2 to the 24th, plus 168 times 2 to the 16th, plus 1 times 2 to the 8th, plus 1. The UI uses a vertical conversion chain, with the four results tagged in blue, green, orange and purple, and each row has its own copy button so you can grab exactly the form you need for your code. Everything runs locally in the browser, which makes it safe even when the address you are converting belongs to a private internal network.
✨ Key Features
- Three input types auto-detected: dotted 192.168.1.1, integer 3232235777, or hex C0A80101 and 0xC0A80101
- Strict network byte order: the first octet is multiplied by 2 to the 24th, matching C in_addr exactly
- Four notations on screen at once: dotted decimal, 32-bit integer, hex with 0x prefix, and per-octet binary
- CIDR friendly: input like 192.168.1.1/24 has the prefix stripped before conversion
- Per-row copy: each result row has its own copy button so you can take just the form you need
- Fully offline: no network request is made, so internal addresses stay on your machine
📝 How to Use
- Type whichever IP notation you have on hand, for example 192.168.1.1
- You may also type an integer like 3232235777 or hex like C0A80101
- Click the Convert button; a badge below the input shows the detected type
- Four result rows appear vertically: dotted, integer, hexadecimal and binary
- Click the copy button on any row to grab that value alone, or use Copy result for all four lines
⚠️ Notes
- Byte order: this tool uses big-endian network byte order, so the first octet is the most significant byte; little-endian memory dumps will not match directly
- Integer range: a 32-bit unsigned integer spans 0 to 4294967295; out-of-range decimal input is rejected
- Hex detection: without a 0x prefix, input containing A-F letters is treated as hex, while pure digits are treated as an integer
- Dotted validity: every octet must be a decimal integer from 0 to 255 and there must be exactly four of them
- Address only: this tool converts a single address and does no subnet math; pair it with the Subnet Mask Converter for range work