Free IP Address Converter
Quick Reference
192.168.0.1 = 11000000.10101000.00000000.00000001192.168.0.1 = C0.A8.00.01 = 3232235521
Supports IPv4 and IPv6 formats
192.168.0.1 = C0.A8.00.01
Enter an IP address or encoded value above to see conversions
IP Address Converter: Convert IPv4/IPv6 to Binary, Hex, Decimal & Octal
This network tool enables you to transform any IPv4 or IPv6 address into its equivalent binary, hexadecimal, decimal, and octal representations. Whether you need an IP to binary conversion for subnet calculations or an IP to hex value for device settings, this converter works in both directions: you can also convert a binary or hex string back into a standard IP address. The utility supports autodetection of the input format, minimizing manual selection.
Using the Converter
Follow these steps:
- Choose the input format. From the dropdown, select one of: Standard IPv4/IPv6, Binary, Hexadecimal, Decimal, Octal, or Autodetect. The autodetect mode tries to identify the format automatically; if the input could be valid in multiple formats, you will be prompted to pick the correct one.
- Enter the value. Type or paste the address or number into the IP address field.
- View the results. The tool instantly displays the equivalent values in all six formats: standard notation, binary, hexadecimal, decimal, and octal.
For example, entering 192.168.0.1 yields the following:
| Format | Equivalent |
|---|---|
| Standard | 192.168.0.1 |
| Binary | 11000000.10101000.00000000.00000001 |
| Hexadecimal | C0A80001 (or C0.A8.00.01) |
| Octal | 30052000001 |
| Decimal | 3232235521 |
Manual Conversion Methods
All examples below use IPv4, but the same principles extend to IPv6 (128‑bit addresses). The calculator handles both types.
IP to Hexadecimal
- Split the address into its four decimal octets.
- Convert each octet to a two‑digit hexadecimal number (use a leading zero if the hex value is a single digit, e.g., 12 becomes
0C). - Concatenate the four hex pairs.
Example: 192 → C0, 168 → A8, 0 → 00, 1 → 01 ⇒ C0A80001 (often written with dots as C0.A8.00.01).
IP to Binary
A quick method is first to convert the IP to hexadecimal, then expand each hex digit into its 4‑bit binary equivalent. Each octet becomes an 8‑bit binary block.
Example: From C0A80001:
C→ 1100 → 11000000 (padded)A→ 1010 → 101010000→ 00001→ 0001
Joining with dots:11000000.10101000.00000000.00000001.
You can also convert each decimal octet directly to 8‑bit binary by repeated division by 2.
IP to Octal
Octal conversion requires an intermediate binary step:
- Obtain the full binary representation (no dots) of the IP address.
- Group the binary digits into sets of three, starting from the right. If the leftmost group has fewer than three bits, pad with zeros.
- Convert each 3‑bit group to its octal digit (0–7).
Example: For 192.168.0.1, the binary string is 11000000101010000000000000000001. Grouping from the left with zero‑padding gives 011 000 000 101 010 000 000 000 000 001, which corresponds to octal 30052000001.
IP to Decimal
The decimal form of an IPv4 address comes from the base‑256 polynomial:
where are the four decimal octets.
Example: For 192.168.0.1:
Adding these together with the last octet: .
Thus, 192.168.0.1 in decimal is 3232235521.
Additional Features
The tool fully supports IPv6 addresses (e.g., 2001:db8::1), converting them into their binary, hex, decimal, and octal equivalents where applicable. The autodetect feature helps streamline the conversion process, but if an ambiguous value is encountered (e.g., 10 could be decimal, hex, or octal), you will be prompted to specify the exact format manually.
FAQ
1. How do I use the converter to change an IP address into binary?
Select "Standard" as the input format, enter the IP address, and read the binary result from the output panel. You can also input a binary value to convert it back to an IP.
2. What is the formula for manually converting an IPv4 address to a decimal number?
Use the formula IP_decimal = a × 256³ + b × 256² + c × 256 + d, where a, b, c, d are the four decimal octets.
3. Does the tool support IPv6 addresses?
Yes, it supports both IPv4 and IPv6. You can enter an IPv6 address like 2001:db8::1 and obtain its binary, hex, decimal, and octal equivalents.
4. What should I do if the autodetection mode gives an ambiguous input message?
You will be prompted to manually select the correct format from the available options.
5. How can I convert an IP address to octal by hand?
First convert the IP to binary without dots, then group the binary digits into sets of three from the right (pad with zeros if needed), and convert each 3‑bit group to the corresponding octal digit.
How to Use
- Select the format of your input value from the dropdown menu - choose between IPv4/IPv6 standard format, Binary, Hex, Decimal, Octal, or Autodetect.
- Enter or paste your IP address or encoded value in the input field.
- Click the Convert button to instantly see the equivalent representation in all formats - binary, hex, decimal, octal, and standard notation.