Octal to IP Converter
CU-14Paste an octal IPv4 address, either as four dotted octal octets or as one number like 30052000401, and get the dotted decimal address. The second button goes the other way.
Runs in your browser. Nothing is uploaded.
Octal or IPv4 addresses (one per line)
Result
How to use it
- Paste one octal address per line, such as 300.250.1.1 or 30052000401.
- Press Octal to IP to get dotted decimal addresses.
- To go back, paste dotted addresses and press IP to octal.
- Choose four dotted octets or one 11-digit number for the octal output.
- Copy the result or download it as a .txt file.
Octal and IPv4
An octet from 0 to 255 fits in three octal digits (0 to 377), so 192.168.1.1 is 300.250.001.001 in octal, or 30052000401 as one 32-bit number. Octal forms show up in older tools and in the way some programs read a leading zero: a number starting with 0 is often taken as octal. This converter reads four octal octets separated by dots or spaces, or one octal number that fits in 32 bits. An octet above 377, or a number above 37777777777, is an error.
Scope and limits
It converts notation only. It handles IPv4, not IPv6, and it does not check that an address is routable or in use. In the IP to octal direction, decimal octets with a leading zero are rejected, because that very notation is how a leading zero gets misread as octal elsewhere. A leading zero on octal input is fine, and a 0o prefix is accepted. Each line is converted on its own and an error names the failing line.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Octet "400" in "400.0.0.0" is above 255 (in octal that is 377). | An octal octet is larger than 377. | Keep each octet at 377 or below. |
"789" is not an octal number: "8" is not allowed (use 0-7). | A digit 8 or 9 appeared in octal input. | Use only the digits 0 to 7 in octal input. |
Questions people ask
How do I convert an octal number to an IP address?
Write the number in binary, split it into four bytes, and convert each to decimal. Or paste the octal here and press Octal to IP. For 30052000401 the result is 192.168.1.1.
What does 012.0.0.0377 mean as an IP address?
Read as octal octets, 012 is 10 and 0377 is 255, so the address is 10.0.0.255. Paste it and press Octal to IP to check. Note that many programs read a leading-zero octet as octal, which is why mixed notation causes confusion.
How do I convert an IP address to octal?
Convert each decimal octet to three octal digits: 192 is 300, 168 is 250, 1 is 001. Press IP to octal. Choose One 32-bit number for the single 11-digit form, and tick the prefix option for 0o.
Why is the largest octal octet 377?
377 in octal is 3 times 64 plus 7 times 8 plus 7, which is 255, the largest value in one byte. Any octet above that cannot be part of an IPv4 address, so the tool reports it.
Can I use it for IPv6?
No. It converts 32-bit IPv4 addresses only. IPv6 addresses are 128 bits long and use hex groups, so a value of that kind is not accepted here and the tool reports an error.
About this tool
Reads each line as either four octal octets separated by dots (up to 3 digits each, for example 300.250.1.1) or one octal number of up to 32 bits (such as 30052000401), and writes the dotted IPv4 address. Every octet must be 377 or less; a value above that, or more than 32 bits, is an error. The second button writes an IPv4 address as four 3-digit octal octets, or as one 11-digit number. It handles IPv4 only, not IPv6, and it does not look an address up. Addresses with leading zeros in a decimal octet are rejected because some systems read them as octal.