An octal glyph is always three bits: 6 unfolds to 110, 4 to 100, so chmod 644 is 110100100 (rw-r--r--). Paste 0–7 here, with or without 0o, and read the expanded 0/1 string. Optional: drop leading zeros after the unfold.
Chunking bits into octal is the other page: binary to octal. The four-base box is the binary converter hub.
File mode 644 is 6 4 4 → 110 100 100. Directory-style 755 is 111101101 (rwxr-xr-x). 0o12 and 12 are the same 001010; tick strip-zeros if you want 1010 instead.
The eight-row chart is the reverse of the triplet page: 7↔111, 0↔000. 8 and 9 are not octal — they raise a red banner, as do A–F (those are hex). Three-digit pastes also print the rwx label so 644 is visibly rw-r--r--.
Reveal the working panel for each glyph → triplet line. 0777 unfolds to nine 1s; 0001 is 000000001 until you strip. Nothing leaves this tab.
How to convert octal to binary
- Type 0–7, optionally with a 0o prefix. Spaces and underscores are ignored.
- Read three bits per glyph. Tick strip-zeros when a leading 000 triplet should vanish.
- Reveal the working panel. Three-digit Unix modes also print rwx under the bits.
- Copy 110100100. Chunk bits back into octal on the reverse page.
Key Features
- One octal glyph → exactly three bits
- chmod 644 → 110100100 (rw-r--r--); 755 → 111101101
- 0o prefix; optional strip of leading 0 bits
- Eight-row 0–7 chart (the reverse of the triplet page)
- Runs locally in this tab
Expand each glyph to three bits
- 6 → 110, 4 → 100, 5 → 101, 7 → 111. Concatenate in the same order as the digits.
- 644: 110 100 100. Owner rw-, group r--, others r--. That is a typical file mode, not a directory.
- 755: 111 101 101. Directories and scripts often use this so everyone can execute.
- 07 with strip-zeros is 111 (3 bits). Without the option it stays 000111 (6 bits).
Unix modes versus other bases
- A three-digit chmod is octal, not decimal. Decimal 644 as a base-10 integer is 1010000100 in bits — a different value from 110100100.
- 644₈ as hex is 1A4. Want decimal, hex, octal and bits together? Use the binary converter hub.
- Any glyph outside 0–7 fails the whole paste. 8 and 9 are decimal; A–F are hex and belong on hex to binary.
- A 16-bit word such as FFFF is not a permission mask. Expand it on the hex page, not here.
- rw-r--r-- is only a label for three octal digits. Longer pastes still unfold, but the rwx string is omitted when the length is not 3.
- Sticky/setuid bits (a fourth octal digit such as 1755) still unfold: 1 7 5 5 → 001 111 101 101. This widget does not name those extra bits; it only prints 001111101101.
- umask 022 as bits is 000010010. That is not a file mode — it is a mask subtracted from 666 or 777 by the shell. Expanding 022 here is still valid octal, just a different meaning.
Common mistakes
- Writing 7 as 111 000 (an extra triplet). One glyph is exactly three bits, never six.
- Dropping leading zeros inside a byte: 07 is 000111, not 111, unless you opted to strip.
- Reading 644 as decimal six hundred forty-four. These are octal digits 6, 4, 4.
- Pasting a 0/1 string here. That direction is binary to octal.
- Expecting UTF-8 text from octal bytes — that is not a number-base spoke.
Digit table (0–7 → 000–111)
- Same eight rows as binary → octal, with headings swapped for this direction.
| Octal | Triplet |
|---|---|
| 0 | 000 |
| 1 | 001 |
| 2 | 010 |
| 3 | 011 |
| 4 | 100 |
| 5 | 101 |
| 6 | 110 |
| 7 | 111 |
Frequently Asked Questions
What is 644 in binary?
110100100. Three digits, three triplets. The rwx form is rw-r--r--.
What is 755 in binary?
111101101. That is rwxr-xr-x, the chmod sample on the reverse page.
Does a 0o prefix matter?
It is stripped. 0o755, 755 and 0755 are the same bits (leading-zero strip is a separate option).
When should I strip leading zeros?
When you want the shortest 0/1 string (07 → 111). Leave them when the byte width matters.
Is 7 the same as 111?
Yes. 7 is decimal 7, which is the triplet 111. One octal digit never uses four bits.
Can I convert octal to hex here?
This page prints bits. Hex of the same integer appears on the hub, or expand then use [binary to hex](/tool/binary-to-hex/).