How to use Octal Converter
- Type your number in the Number field. Prefixes 0o, 0b and 0x, spaces, underscores and a leading minus are accepted.
- Pick the base you typed it in with "The number is in". The choices are Octal (base 8), Decimal (base 10), Binary (base 2) or Hexadecimal (base 16).
- Read the same number in all four bases in the table, and use the copy button on a row to copy one value.
- If the octal value has three or four digits, check the permission line below the table, for example rwxr-xr-x for 755.
Features
- Octal, decimal, binary and hexadecimal shown together in one table
- Exact for whole numbers of any size, up to 5,000 digits, using BigInt
- Accepts 0o, 0b and 0x prefixes, spaces, underscores and a minus sign
- Copy button on every row
- Unix permission string for 3- and 4-digit octal modes, including setuid, setgid and sticky
- Clear error that names the bad digit and the base
- Runs in your browser, so nothing is uploaded
Supported formats and limits
- Maximum input: 10,000 characters
Examples
| Input | Result |
|---|---|
| 755 (octal) | Decimal 493, binary 111101101, hex 1ED — As a file mode it is rwxr-xr-x. |
| 255 (decimal) | Octal 377, binary 11111111, hex FF |
| -8 (decimal) | Octal -10, binary -1000, hex -8 — The minus sign is kept. Two's complement is not applied. |
| 777777777777777777777777 (octal, 24 sevens) | Decimal 4722366482869645213695, hex FFFFFFFFFFFFFFFFFF — That is 2^72 − 1, still exact. |
| 4755 (octal) | rwsr-xr-x — The leading 4 is the setuid bit, which replaces the owner's x with s. |
Limitations
- Only whole numbers are supported; fractions such as 7.4 are not.
- Numbers are limited to 5,000 digits.
- Negative numbers are written with a minus sign, not in two's complement.
- The permission line only appears for octal values with three or four digits, and it does not know a file's real owner or ACLs.
Learn more
Octal is base 8. It uses only the digits 0 to 7, and each position is worth eight times the one to its right. Because 8 is 2 to the power 3, every octal digit matches exactly three binary digits, so you can convert by hand by grouping bits in threes from the right: 111 101 101 is 7 5 5, so binary 111101101 is octal 755. To go from octal to decimal, multiply each digit by its place value: 7 × 64 + 5 × 8 + 5 = 493. To go the other way, divide the decimal number by 8 repeatedly and read the remainders backwards.
Octal is still seen in Unix and Linux file permissions. A mode such as 755 has three digits for the owner, the group and everyone else. In each digit, 4 is read, 2 is write and 1 is execute, and the values are added, so 7 is rwx and 5 is r-x. A fourth leading digit carries the setuid (4), setgid (2) and sticky (1) bits.
Hexadecimal has largely replaced octal for writing bytes, since one byte is two hex digits but three octal digits. This converter keeps all four bases side by side so you can compare them.
Frequently asked questions
How do I convert octal to decimal?
Choose "Octal (base 8)" under "The number is in" and type the value. The decimal result appears in the table. For 755 it is 493.
What is 8 in octal?
Decimal 8 is 10 in octal, because the octal digits stop at 7. The digit 8 is not valid in base 8, and the tool says so.
Why is octal used for chmod?
Each octal digit stands for three bits, which match the read, write and execute permissions. So 7 is rwx, 5 is r-x and 4 is r--.
Can it convert very large numbers?
Yes. It uses arbitrary-precision integers, so values beyond the 2^53 limit of ordinary JavaScript numbers stay exact, up to 5,000 digits.
Is my input uploaded?
No. The conversion runs in your browser.
Sources
Last reviewed: September 30, 2026