Skip to content
Calcrivo

Octal IP Converter

Convert an IPv4 address between dotted-decimal and octal notation.

Inputs

Octal Notation

0300.0250.01.01

Decimal Notation

192.168.1.1

Step by step

  1. Convert each octet to octal

    192 = octal 300, 168 = octal 250, 1 = octal 1, 1 = octal 1

    = 0300.0250.01.01

  2. Prefix with 0 for octal notation

    0300.0250.01.01

    = 0300.0250.01.01

How it works

Octal IP notation represents each octet in base-8 with a leading zero prefix (e.g. 192 decimal = 0300 octal). This format is recognized by some network utilities and programming languages, and has security relevance since leading-zero octets can be misinterpreted.

Formula

Decimal to octal per octet

octal_octet = '0' + base8(decimal_octet)

decimal_octet
Standard decimal octet value (0-255)

Frequently Asked Questions

Why is octal IP notation a security concern?

Some URL parsers interpret leading-zero octets as octal (e.g. 0300 = 192 decimal), while others treat them as decimal with a leading zero. This inconsistency can be exploited to bypass security filters that check IP addresses as strings.

What systems accept octal IP notation?

Many Unix/Linux network utilities (ping, curl) and C-based socket libraries interpret leading-zero octets as octal per POSIX conventions. Windows and some modern parsers may not, leading to cross-platform inconsistencies.

You might also need