Octal to Text Converter
Paste octal numbers and read the text they spell. Numbers separated by spaces, commas or new lines and backslash escapes like \110\151 all work, and UTF-8 accents and emoji come back correctly.
How to Convert Octal to Text
Quick answer: paste the octal numbers; the text appears below straight away.
-
1
Paste the octal
Numbers or backslash escapes.
-
2
Check the encoding
UTF-8 bytes suit most data.
-
3
Read the text
It appears straight away.
-
4
Copy or download
Save the text.
What You Get
Decoding Octal
Octal numbers use the digits 0 to 7 to write bytes in base 8, and they still turn up in shell scripts, file dumps, older data formats and escape codes such as \101. This decoder turns those numbers back into bytes and reads them as UTF-8 text, so 110 151 becomes "Hi" without any manual conversion.
Accepted Input
Separate numbers with spaces, commas, semicolons or new lines, or write them as backslash escapes one after another. Each number should use only the digits 0 to 7; anything else produces a clear message that points to the problem, such as a stray 8 or 9 which suggests the numbers are decimal instead.
UTF-8 or Code Points
Leave UTF-8 bytes selected for octal made from files and strings, where é appears as 303 251. Choose code points when each character was written as a single octal number, such as 351 for é. Numbers above 377 cannot be single bytes and are always read as code points.
Example
Paste \110\145\154\154\157 and you get "Hello". The pair 303 251 decodes to é. To turn text into octal, use Text to Octal.
Who Decodes Octal?
System administrators reading escaped strings in scripts and logs, programmers debugging data written with octal escapes, students checking number system exercises, and puzzle solvers decoding messages. Decoding many numbers by hand means converting each one through base 8; here the whole list is done instantly.
Step by Step
Copy the octal numbers or escapes and paste them in. Read the result; if it looks wrong, check for numbers containing 8 or 9, or a missing separator that joins two numbers together. Fix the input and the text updates straight away. Copy the decoded text or download it as a .txt file.
Good to Know
The number 012 is a new line and 040 is a space, so the layout of the original text comes back with the words. Bytes that do not form valid UTF-8 show as replacement marks. For data written in binary, hex or decimal, use Binary to Text, Hex to Text or ASCII to Text.
More Examples
More examples: 101 102 103 decodes to "ABC", 141 142 143 to "abc" and 060 061 062 to the digits "012". Terminal output often contains \033 followed by codes such as [31m, which is how colours are switched on in a command window; the \033 decodes to an invisible escape character. A list like 110,145,171,041 gives "Hey!". Numbers written without padding, such as 12 for a new line, are decoded the same way as 012. If the same message decodes cleanly as decimal codes, it was probably never octal; try ASCII to Text instead. Long octal dumps from files decode just as quickly as short messages, and nothing you paste is ever stored.
Private, Free and Instant
The decoder is free and handles long input. There is no sign-up, no limit and nothing to install. The conversion runs inside your browser, so your text and data are never uploaded, logged or stored. The result updates as you type or paste, and you can open a text file from your device and download the result as a new .txt file. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android, in any modern browser.
Octal Codes and Text: How the Conversion Works
Octal is a number system with eight digits, 0 to 7. In computing, octal values were once common because three binary digits map neatly to a single octal digit. Characters can be written as octal codes, and you meet them in Unix file permissions, old documentation and escape sequences such as \101.
From numbers to letters
Each group of octal digits is the code of one character. For ASCII text, the letter A is decimal 65, which is 101 in octal; a space is 40; a newline is 12. Separate the codes with spaces. The converter turns each group into its decimal value and then into the matching character.
Worked example
The codes 110 145 154 154 157 spell Hello: 110 is 72 (H), 145 is 101 (e), 154 is 108 (l, twice) and 157 is 111 (o).
Common mistakes
- Digits 8 and 9 do not exist in octal.
- Characters outside basic ASCII need more than one code in UTF-8, so accented letters may show as several values.
For the opposite direction, use text to octal.
Frequently Asked Questions
Questions about octal to text