Skip to main content
Calnex LogoCalnex
Developer Tools

Decimal (base 10) → Octal (Base 8)

Decimal (base 10) → Octal (Base 8). Convert decimal numbers to octal (base 8) representation.

Parameters

Enter the number to convert (digits valid for the selected base)

The base of the input number

Results

Octal (Base 8)
377

Octal representation

Other results (5)
Binary (Base 2)
1111 1111

Binary representation with 4-bit grouping

Decimal (Base 10)
255

Decimal representation

Hexadecimal (Base 16)
0xFF

Hexadecimal representation with 0x prefix

Bit Length8

Number of bits required to represent this number

As Byte (0x00–0xFF)
0xFF

Single-byte hex representation

Example input and result

255
377

Integer input only, up to 4,096 digits. Negative values use a minus sign; this is not a fixed-width two’s-complement representation.

Why Choose Decimal (base 10) → Octal (Base 8)

Decimal (base 10) → Octal (Base 8). Convert decimal numbers to octal (base 8) representation.

Authoritative References & Sources

MDN — BigInt

View Source