Free forever · No sign-up

Decimal to Octal Converter

Convert any decimal number to octal instantly — see every division step. Free, fast, no sign-up.

Last updated: October 2026

Your data stays in your browser.

Recent

No recent conversions yet.

How to convert decimal to octal

  1. Divide the decimal number by 8 and write down the remainder.
  2. Divide the quotient by 8 and write down the new remainder.
  3. Repeat until the quotient is 0, then read the remainders from bottom to top.

Example: 125 → 125÷8=15 r5, 15÷8=1 r7, 1÷8=0 r1 → 175.

Background reading: the octal number system on Wikipedia.

Conversion table

Decimal 0–15 with the matching octal value, plus larger worked examples.

DecimalOctalCalculation
000 = 0₈
111 = 1₈
222 = 2₈
333 = 3₈
444 = 4₈
555 = 5₈
666 = 6₈
777 = 7₈
8108 = 10₈
9119 = 11₈
101210 = 12₈
111311 = 13₈
121412 = 14₈
131513 = 15₈
141614 = 16₈
151715 = 17₈
6410064 ÷ 8 = 8 r 0, 8 ÷ 8 = 1 r 0 → 100
5121000512 = 8³ → 1000

Powers of 8

PowerValue
801
818
8264
83512
844096
8532768

Decimal to octal in code

Python

oct(64)[2:]        # → '100'

JavaScript

(64).toString(8);    // → '100'

C

#include <stdio.h>

int main(void) {
    printf("%o\n", 64);  /* → 100 */
    return 0;
}

Common values

  • 64 = 100₈
  • 8 = 10₈
  • 15 = 17₈
  • 511 = 777₈
  • 0 = 0₈
  • 16 = 20₈

Key takeaways

  • Divide by 8 repeatedly; read remainders bottom-to-top.
  • 64 = 100₈, 8 = 10₈.
  • Unix file permissions (chmod 755) are written in octal.
  • Octal digits never exceed 7.

Frequently asked questions

How do I convert decimal to octal?

Repeatedly divide by 8, record each remainder, and read the remainders bottom-to-top. The converter above shows every step.

What is 8 in octal?

8 in decimal equals 10 in octal.

Where is octal used?

Octal is used in Unix file permissions (e.g. chmod 755) and in some embedded systems.

What is 8 in octal?

8 = 10₈.

What is 64 in octal?

64 = 100₈ (1×64).

How do I convert decimal to octal by hand?

Repeatedly divide by 8 and read the remainders bottom-to-top.

Where is octal still used?

Unix file permissions (for example chmod 755) are the most common everyday use of octal.

Need the reverse? Try our octal to decimal converter.

More converters