Octal to Text Converter (ASCII Codes)
This converter works on code values, one at a time, from the table. Codes are not capped, so values above 127 are accepted. For whole text rather than single codes, use Binary to Text; for a plain number, use Octal to Decimal.
Going the other way? Convert text back to octal →
How do you convert octal to text?
Octal to text conversion reads each value as a code between 0 and 127 and looks up the character that the ASCII table gives for it.
- Read the first value. This example uses 110.
- Convert it to a decimal code if it is not one already: 72.
- Look that code up in the table. 72 is H.
- Repeat for every value and join the results: 110 151 = Hi.
Octal to Text Conversion Table
The codes this page works through, each with the character it stands for and the same value in hex, octal and binary. Find the code in the first column and read across; the row is the whole conversion. Codes 0 to 31 and 127 have no glyph, so the Char column shows their short name instead. This page shows the rows you need; ASCII code chart (decimal, hex, octal, binary) carries all 128.
| Dec | Char | Hex | Oct | Bin |
|---|---|---|---|---|
| 33 | ! | 21 | 041 | 00100001 |
| 48 | 0 | 30 | 060 | 00110000 |
| 57 | 9 | 39 | 071 | 00111001 |
| 65 | A | 41 | 101 | 01000001 |
| 72 | H | 48 | 110 | 01001000 |
| 90 | Z | 5A | 132 | 01011010 |
| 97 | a | 61 | 141 | 01100001 |
| 100 | d | 64 | 144 | 01100100 |
| 105 | i | 69 | 151 | 01101001 |
| 110 | n | 6E | 156 | 01101110 |
| 115 | s | 73 | 163 | 01110011 |
| 122 | z | 7A | 172 | 01111010 |
The base this page writes, defined by the digits it uses, how a value is marked, and what each position is worth.
| Base | Radix | Digits | Prefix | Place worth | Typical range |
|---|---|---|---|---|---|
| Octal | 8 | 0–7 | 0o | 8ⁿ | 3 digits cover a byte (000–377); Unix permissions 000–777 |
Worked Example: 110 151 to Text
One code value, taken from the table and written out in full. This is the same working the converter shows when you turn on "show steps".
text
Result: 110 151 = Hi
Start with the code itself: 72. The table gives one row per code from 0 to 127, and that row is the whole answer — there is no arithmetic to get wrong, only a row to find. Reading the row across gives the same value in every base the table carries.
The row gives H directly. Nothing is padded and nothing is rounded, so a code either has a row or it is out of range — and the converter says which. That is the difference between a lookup and a calculation, and it is why the answer here can be checked by eye against the table above.
Check it in reverse
The value looks the same read backwards. H maps to code 72, and code 72 maps to 110 — the table is a two-way lookup, not a calculation, so no rounding or padding can change the answer. To verify the result by hand, encode the text back to octal codes and compare it with the code you started from.
Worked examples: octal to text
Each example gives the value first, then the working. Click a value to load it in the converter.
What is 0o101 in text?
0o101 is A in text.
Method: look code 65 up in the 0–127 table; the row gives A.
What is 0o141 in text?
0o141 is a in text.
Method: look code 97 up in the 0–127 table; the row gives a.
What is 0o110 in text?
0o110 is H in text.
Method: look code 72 up in the 0–127 table; the row gives H.
What is 0o60 in text?
0o60 is 0 in text.
Method: look code 48 up in the 0–127 table; the row gives 0.
What is 0o41 in text?
0o41 is ! in text.
Method: look code 33 up in the 0–127 table; the row gives !.
What is 0o132 in text?
0o132 is Z in text.
Method: look code 90 up in the 0–127 table; the row gives Z.
What is 0o172 in text?
0o172 is z in text.
Method: look code 122 up in the 0–127 table; the row gives z.
What is 0o71 in text?
0o71 is 9 in text.
Method: look code 57 up in the 0–127 table; the row gives 9.
What is 0o144 in text?
0o144 is d in text.
Method: look code 100 up in the 0–127 table; the row gives d.
What is 0o156 in text?
0o156 is n in text.
Method: look code 110 up in the 0–127 table; the row gives n.
What is 0o163 in text?
0o163 is s in text.
Method: look code 115 up in the 0–127 table; the row gives s.
What is 0o151 in text?
0o151 is i in text.
Method: look code 105 up in the 0–127 table; the row gives i.
Every example above reverses exactly — write the same characters back as octal escapes.
What Changes the Code Output?
Values above 127
Values above 127 are accepted here, because this converter is not capped to ASCII. 233 is é and 8364 is €. the ASCII code chart in four bases lists the codes that ASCII itself defines.
Which base the code is written in
The same code can be typed as decimal, hex, octal or binary, and the base selector says which one you mean. 65, 41, 101 and 01000001 are all the letter A. Pick the wrong base and you look up a different row.
Control codes and printable codes
Codes 32 to 126 are printable characters; 0–31 and 127 are control codes. A control code has no glyph, so the table shows its short name instead — 10 is LF, 13 is CR. Converting one is valid; displaying one is not.
One code or a list
Several codes separated by spaces convert as a list, in order, and each keeps its own row. The separator is a display choice and does not change any value.
Octal to Text in Code
The same rule in one line. Both take code values and return the characters.
Python: bytes(int(g, 8) for g in s.split()).decode('utf-8') JavaScript: new TextDecoder().decode(new Uint8Array(s.split(/\s+/).map(g => parseInt(g, 8)))) Common Mistakes
- Typing text where a code value belongs. The converter reads 72 as one code, not as the characters 7 and 2 — for whole text use decode binary code into words.
- Reading a code in the wrong base. 41 is A in hex and ) in decimal.
- Expecting a character above 127. That value is outside ASCII and the answer depends on which extended set is meant.
- Dropping the padding on a fixed-width code, so a list of codes can no longer be split apart.
Frequently Asked Questions
Can an octal code above 177 be an ASCII character?
No. 177 in octal is 127, the last ASCII code. ASCII defines 128 characters, codes 0–127, using 7 bits; in practice each code is stored in one 8-bit byte with a leading 0. Higher values still convert here, but from a wider character set than ASCII.
How do you convert octal to an ASCII code?
Read the octal digits as a number, then take that number as the code: 101 is 65, and 65 is A. ASCII codes 32–126 are printable characters; 0–31 and 127 are control characters (for example 10 = line feed, 13 = carriage return, 32 = space).
Is octal to text the same as octal to decimal?
No. Both read 101 as 65. This page then takes 65 as a character code and shows A; octal to decimal stops at the number itself, which is what you want for a plain value rather than a code.
Every code here reverses: the same value converts straight back in the text to octal code direction.
Related Conversions
The rest of the family sits on the full converter grid.