Octal to Decimal Converter
Translate base-8 octal numbers into their standard base-10 decimal equivalents — paste, convert, and copy instantly.
About Octal to Decimal Converter
Octal to Decimal Converter translates base-8 numbers into their standard base-10 equivalents instantly. You type or paste one or more octal values — digits 0 through 7, optionally prefixed with 0o — and the tool outputs the corresponding decimal integer on each line. It also accepts space- or newline-separated batches, so you can convert a whole list in one pass.
The most common reason to reach for this converter is Unix and Linux file permissions. When chmod 755 or chmod 644 appears in a script or tutorial, the three-digit octal code maps directly to the read/write/execute bits for owner, group, and others. Converting 755 gives 493 and 644 gives 420, which are the raw permission masks stored by the kernel. Beyond permissions, octal literals appear in older C source code, PDP-11 assembly, network device configuration, and certain embedded-systems registers — any context where grouping bits in threes was historically convenient.
All arithmetic runs entirely in your browser using JavaScript BigInt, so arbitrarily large octal numbers convert without overflow errors. Nothing is sent to a server, no account is required, and there are no usage limits.
Key Features
Batch conversion
Separate multiple octal values with spaces or newlines and convert the entire list at once. Each value gets its own decimal result on a new output line.
BigInt precision
Uses JavaScript BigInt internally, so numbers far beyond the 53-bit safe integer limit convert correctly without rounding or overflow.
Accepts 0o prefix
Input like 0o755 or 0O644 is handled automatically — the prefix is stripped before conversion so you can paste directly from source code.
Clear validation errors
If a value contains a digit outside 0-7 (such as 8 or 9), the tool shows a specific error message identifying the offending token rather than silently returning a wrong answer.
100% client-side
Every conversion happens in your browser. No data leaves your machine, making it safe to paste internal configuration values or permission sets from private servers.
One-click copy
Copy all decimal results to the clipboard with a single button and paste them straight into your terminal, script, or spreadsheet.
How to Use
Type or Paste Octal
Enter one or more octal numbers in the left pane. You can separate multiple values with spaces or newlines. The 0o prefix is optional.
Click Convert to Decimal
Press the Convert button. Each valid octal number is converted to its decimal equivalent and displayed on a matching line in the right pane.
Copy the Result
Use the copy button to grab all decimal values at once and paste them wherever you need them.
Example
Converting three Unix chmod permission values — 755, 644, and 777 — shows the decimal integers the kernel stores for each permission mask.
755
644
777 493
420
511 Common Use Cases
- arrow_circle_right
Decoding Unix file permissions
chmod values like 755 or 644 are octal shorthand for the nine permission bits. Converting to decimal (493 and 420) lets you cross-reference kernel documentation or pass the raw mask to system calls that expect a decimal integer.
- arrow_circle_right
Reading legacy C and embedded code
C integer literals starting with 0 are octal by convention. When auditing older codebases or embedded firmware, converting octal constants to decimal makes their actual numeric values immediately readable.
- arrow_circle_right
Studying number systems in coursework
Students learning positional notation need to verify manual base-8 to base-10 calculations. This tool converts instantly and shows the correct decimal so you can check your long-form working.
- arrow_circle_right
Working with PDP-11 and retro computing
PDP-11 and many DEC systems represented memory addresses and instruction opcodes in octal. Converting archived octal addresses to decimal is often necessary when comparing them with modern disassembler output.
- arrow_circle_right
Scripting and automation sanity checks
Shell scripts that set permissions programmatically sometimes mix octal literals and decimal constants. Quickly verify that your octal constant equals the expected decimal value before committing the change.