Decimal to octal converter

Convert decimal to octal with BigInt and a successive division-by-8 table (quotient and remainder). Includes binary and hexadecimal and quick copy.

Base shortcuts

Decimal to Octal Calculator Online (Step-by-Step)

Convert decimal integers to octal instantly with BigInt, view the matching binary and hex values, and follow each successive division by 8.

Octal

Successive divisions by 8

Normalized decimal

Binary equivalent

Calculated with BigInt

Hexadecimal

Instant equivalent

Automatic divisions by 8

Step Dividend Operation Quotient Remainder Partial octal

How to convert decimal to octal

Split the sign from the magnitude and keep dividing the absolute value by 8: every remainder becomes an octal digit starting from the least significant.

  1. Normalize the input. Keep only one sign if present and remove spaces or comma separators.
  2. Work with the absolute value. Do the divisions on the unsigned number and keep the sign for later.
  3. Divide repeatedly by 8. Store quotient and remainder (0–7). While the quotient is above 0, keep dividing.
  4. Build the octal in reverse. Read the remainders from last to first and prepend “-” if the input was negative.
  5. Double-check. Rebuild the decimal with powers of 8 or compare against the binary and hex outputs.

Quick example: 478 ÷ 8 = 59 r 6, 59 ÷ 8 = 7 r 3, 7 ÷ 8 = 0 r 7 ⇒ 726₈.

0 → 0 7 → 7 8 → 10 64 → 100 255 → 377 1024 → 2000

FAQ