IP Address Converter Calculator
Convert IP address
Results
- Address type
- —
- Standard format
- —
- Binary
- —
- Hexadecimal
- —
- Decimal
- —
- Octal
- —
A firewall ticket lists C0A80001 and asks you to confirm the host. A DHCP lease file stores 3232235521 as a single integer. A lab handout wants 11000000.10101000.00000000.00000001 translated back to dotted decimal. In my experience on network support calls, the slow part is never the math itself—it is flipping between whichever format the ticket author used and the dotted-quad notation your router CLI expects.
Think of an IPv4 address as four numbered lockers lined up in a row. Standard dotted decimal names each locker from 0 to 255. Hex writes each locker in base-16 shorthand, binary shows all eight switches inside each locker, and the decimal integer treats the whole row as one 32-bit number. This converter opens every locker at once—paste whichever format your log or spec uses and read standard, binary, hex, decimal, and octal side by side without retyping.
How to Use This IP Address Converter Calculator
- Select input format. Choose Autodetect when you are not sure, or pick IPv4/IPv6 standard, Binary, Hexadecimal, Decimal, or Octal to match your source data exactly.
- Enter the IP address in the field. Examples: standard 192.168.0.1 or 2001:db8::1; hex C0.A8.00.01 or C0A80001; binary 11000000.10101000.00000000.00000001; decimal 3232235521; octal 30052000001.
- Read all five output columns updated as you type—standard format, binary, hexadecimal, decimal, and octal. IPv6 addresses show standard, binary, and hex; decimal and octal integer forms apply to IPv4 only because a full 128-bit integer is rarely useful in day-to-day network work.
- Resolve ambiguous autodetect input by switching the format selector manually. Some strings could be read more than one way; the tool asks you to pick rather than guess wrong on a production ACL.
To get started on a typical decode job, pick Autodetect, paste 192.168.0.1, and confirm hex reads C0.A8.00.01 with decimal 3232235521. For subnet math after you know the host address, open the IP Subnet Calculator. For byte-level character encoding of hostnames or payloads, use the ASCII Converter.
IP Address Converter Formulas and Practical Applications
IPv4 uses four octets a.b.c.d, each from 0 to 255. The single 32-bit decimal integer packs those octets with base 256:
N = a × 256³ + b × 256² + c × 256 + d
Example for 192.168.0.1: 192 × 16777216 + 168 × 65536 + 0 + 1 = 3232235521. Going the other direction, divide by powers of 256 or shift bits: the top octet is N ÷ 256³, and so on.
IPv4 to hexadecimal
Convert each octet independently and pad to two hex digits:
192 → C0, 168 → A8, 0 → 00, 1 → 01
Join as C0A80001 or grouped C0.A8.00.01. The padding step matters—decimal 12 must become 0C, not C, when you are building ACL entries that expect fixed-width bytes.
IPv4 to binary
Each octet becomes eight bits, zero-padded on the left:
192.168.0.1 → 11000000.10101000.00000000.00000001
Remove the dots for a continuous 32-bit string—handy when you are AND-ing against a subnet mask in a spreadsheet or teaching how CIDR prefix length maps to host bits.
IPv4 to octal
Strip dots from the 32-bit binary string, pad the left so the bit count is a multiple of three, then group in threes and convert each group to an octal digit. In summary: standard → binary → octal. For 192.168.0.1, the result is 30052000001.
Where this shows up in real work
- Firewall and ACL tickets that list hex host IDs while your CLI wants dotted decimal.
- Database or log exports that store client IPs as 32-bit integers instead of strings.
- Certification labs that ask you to hand-convert between binary, hex, and dotted-quad forms.
- Legacy mainframe or embedded configs that reference octal-packed IPv4 values.
- IPv6 address documentation where compressed standard form must be expanded to full hex for comparison.
Standard Units and Conversion Tables
The calculator accepts six input modes. Each row below is the same IPv4 value expressed differently—the tool converts between them automatically once parsed.
| Format | Example (192.168.0.1) | Notes |
|---|---|---|
| Standard IPv4 | 192.168.0.1 | Four decimal octets, 0–255 each |
| Hexadecimal | C0.A8.00.01 | Two hex digits per octet; dots optional |
| Binary | 11000000.10101000.00000000.00000001 | Eight bits per octet |
| Decimal integer | 3232235521 | Single 32-bit number, 0–4294967295 |
| Octal integer | 30052000001 | From 32-bit binary grouped by threes |
| Standard IPv6 | 2001:db8::1 | Eight hextets; :: compresses zero runs |
Quick reference octets for 192.168.0.1
| Octet | Decimal | Hex | Binary |
|---|---|---|---|
| 1 | 192 | C0 | 11000000 |
| 2 | 168 | A8 | 10101000 |
| 3 | 0 | 00 | 00000000 |
| 4 | 1 | 01 | 00000001 |
Frequently Asked Questions
How do I convert an IP address to hex manually?
Split the IPv4 address into four octets, convert each from decimal to hexadecimal with two digits (pad with a leading zero when needed), then join the four pairs. For 192.168.0.1: 192 = C0, 168 = A8, 0 = 00, 1 = 01—result C0A80001 or C0.A8.00.01.
How do I convert an IP address to binary?
Split into four decimal parts and convert each to an 8-bit binary number. 192.168.0.1 becomes 11000000.10101000.00000000.00000001, or 11000000101010000000000000000001 without dots.
What is 192.168.0.1 in decimal?
3232235521. Apply 192 × 256³ + 168 × 256² + 0 × 256 + 1. That single integer shows up in some DHCP databases and geolocation APIs—knowing the formula lets you sanity-check exports without opening a spreadsheet.
Does this converter support IPv6?
Yes for standard, binary, and hex output when you enter an IPv6 address such as 2001:db8::1. Decimal and octal integer columns show a note for IPv6 because a full 128-bit integer is impractical for everyday CLI work—use IPv4 when you need those forms.
Is my IP input sent to a server?
No. Conversion runs entirely in your browser. Nothing is uploaded, stored, or logged—safe for internal network addresses you would rather keep off third-party tools.
Need CIDR and host-range math after decoding an address? Try the IP Subnet Calculator. Browse all other calculators on RapidRatio.