Decimal to Octal Converter

Convert any whole number to octal (base 8) instantly.

Free decimal to octal converter — enter a base-10 number and get the base-8 octal value, plus binary and hex. Runs entirely in your browser, nothing is uploaded. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What is octal used for?

Octal (base 8) groups three binary bits into one digit using 0-7. It is best known from Unix file permissions, where modes like 755 are octal representations of read, write, and execute bits.

Decimal to octal — base-10 to base-8

Enter a whole number and this tool returns its octal (base 8) value, plus the binary and hexadecimal forms. Octal is most familiar from Unix file permissions (modes like 755 and 644) and from older computing systems where bits are grouped in threes.

How it works

Octal is base 8, using only the digits 0-7. Each octal digit represents exactly three binary bits, since 2³ = 8. To convert, the number is repeatedly divided by 8 and the remainders are read in reverse order. For example, 420 divides as:

420 ÷ 8 = 52 remainder 4
 52 ÷ 8 =  6 remainder 4
  6 ÷ 8 =  0 remainder 6

Reading the remainders from bottom to top gives 644 in octal. In the Unix permission context, each digit is the sum of read (4), write (2) and execute (1) for a class of user.

Unix file permissions — the most common use of octal

The three-digit octal mode used by chmod maps directly to the three groups of permission bits in a Unix file:

Octal digitBinaryPermissions
0000--- (none)
1001—x (execute only)
2010-w- (write only)
3011-wx (write + execute)
4100r— (read only)
5101r-x (read + execute)
6110rw- (read + write)
7111rwx (read + write + execute)

The three digits in order are: owner, group, others. So:

  • 755 = owner rwx (7), group r-x (5), others r-x (5) — typical for directories and executables
  • 644 = owner rw- (6), group r— (4), others r— (4) — typical for regular files
  • 600 = owner rw- (6), group --- (0), others --- (0) — private files like SSH keys
  • 777 = everyone rwx — avoid on shared systems

Cross-base reference

DecimalOctalBinaryHex
81010008
64100100000040
25537711111111FF
4206441101001001A4
5117771111111111FF

Historical context

Octal was important on early minicomputers — PDP-8, PDP-11, and others from DEC — where word widths of 12, 18, or 36 bits divided evenly into 3-bit groups, making octal a natural fit for manual inspection of memory dumps. Hexadecimal (4-bit groups) later became dominant with 8-bit and 16-bit bytes, but octal persists in Unix permissions because the permission model itself is built on 3-bit groups.

The conversion runs entirely in your browser — nothing is uploaded.