Decimal to Octal Converter

Quick answer

The decimal to octal converter converts whole numbers between binary, octal, decimal and hexadecimal, groups binary digits in fours, counts the bits needed and shows the two’s-complement form for a chosen bit width. It works with numbers of any length. Everything is calculated in your browser; nothing you type is sent to our server.

Result
—
Binary
—
Octal
—
Decimal
—
Hexadecimal
—
Bits needed
—
Two’s complement
—

Octal (base 8) uses digits 0–7. Converting decimal to octal is done by repeated division by 8; it is mostly used for Unix permissions and some older computing systems.

How to use the Decimal to Octal Converter

  1. Number
  2. Input base
  3. Convert to
  4. Two’s complement width

Everything runs in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

The number is read exactly using arbitrary-precision integers (so very long values are not rounded), then written in each base. Two’s complement shows how a negative number is stored in the chosen number of bits.

Formula

value = Σ digit × base^positionTo convert: divide repeatedly by the new base and read the remainders in reverse.

Worked example

Inputs — Number: 493; Input base: Decimal (10); Convert to: Octal (8); Two’s complement width: No fixed width.
Results — Result = 755; Binary = 1 1110 1101; Octal = 755; Decimal = 493; Hexadecimal = 1ED; Bits needed = 9.

Key terms

Bit
A binary digit, 0 or 1.
Nibble
Four bits, one hexadecimal digit.
Two’s complement
The standard way computers store negative integers.

Frequently asked questions

What is 255 in binary?

1111 1111.

What is FF in decimal?

255.

How do I convert binary to hex by hand?

Split the bits into groups of four from the right and replace each group with its hex digit (0000 = 0 … 1111 = F).

What formula does the Decimal to Octal Converter use?

value = Σ digit × base^position.

Cite this calculator

Speedy Calculator. (2026). Decimal to Octal Converter. Speedy Calculator. https://speedycalculator.com/calculators/conversion/decimal-to-octal/