# octal to decimal: converting byte values

> Convert byte-sized numbers, preserve their boundaries and understand the input syntax.

- Tool: [Octal to Decimal Converter](https://toolsg.com/en/octal-to-decimal)
- Language: en (available: en, zh, ms, ta)
- Last verified against official sources: 2026-10-18
- Source site: ToolSG — a planning guide, not official or financial advice. Cite the agencies listed under Sources.

## Key figures at a glance

| Fact | Value | Source |
| --- | --- | --- |
| Accepted byte range | 000–377 |  |
| Output grouping | The output uses unpadded decimal numbers. |  |

## What this page converts

This page rewrites each octal byte value as decimal. Paste values into the input box; the result updates in your browser. Each token must represent a whole byte between 0 and 255. A sequence of bytes is not interpreted as one large integer, signed value or text string.

## Read and group the input

Octal uses only 0–7. Separate bytes with spaces, or use a compact run whose length is a multiple of three. The largest byte is 377 in octal, so 777 is out of range even though every digit is octal. A single short token such as 5 is also accepted.

For example, 245 means 2 × 64 + 4 × 8 + 5 = 165. The output uses unpadded decimal numbers.

## Worked examples

These rows were calculated with the actual browser engine and checked against its PHP mirror. Spaces in the output preserve byte boundaries.

| Input | Result |
| --- | --- |
| `000` | `0` |
| `005` | `5` |
| `052` | `42` |
| `245` | `165` |
| `377` | `255` |
| `000 101 377` | `0 65 255` |

## Limits and round-trip checks

Fractions are rejected. Commas, colons, semicolons, underscores and hyphens are separators, so a minus sign does not request signed arithmetic. Do not paste thousands separators or negative numbers expecting their mathematical meaning. Invalid digits, oversized bytes and incomplete compact groups produce an error.

Use [the reverse converter](https://toolsg.com/en/decimal-to-octal) to check the same byte sequence. Padding and letter case may normalize, so compare values and boundaries rather than original spelling. For character encoding use [text to binary](https://toolsg.com/en/text-to-binary).

## Frequently asked questions

**Is my data sent anywhere?**

No. The conversion runs entirely in your browser using JavaScript. Nothing you paste leaves your device, is logged, or is stored.

**How should I separate values?**

Spaces work, and so do commas, colons and semicolons. For binary, hex and octal you can also paste a single unbroken run of digits — it is split into bytes automatically.

**Does it handle emoji and non-English text?**

Yes. Text is treated as UTF-8, so accented characters, Chinese, Tamil and emoji all convert correctly. They simply take more than one byte each.

**Why did I get an error?**

The input contained a character that is not valid for the source format, a value above 255, or a run of digits that does not divide evenly into bytes. The message names the specific token so you can find it.


## Sources

- [ECMA-262 — parseInt and Radix Parsing](https://tc39.es/ecma262/multipage/global-object.html#sec-parseint-string-radix)
- [ECMA-262 — Number.prototype.toString](https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-number.prototype.tostring)
- [NIST — Eight Bits per Byte](https://physics.nist.gov/cuu/Units/binary.html)
