Text to Octal Converter
Convert text to octal codes and octal back to text, live, in both directions.
Direction
Values
Plain English letters come out the same either way. They differ on accented letters, symbols, and emoji, which take several bytes but only one code point.
Separator
Converted live as you type. Nothing leaves your browser.
How to convert text to octal online
Pick a direction
Choose Text to octal to encode your words, or Octal to text to turn a string of octal values back into readable text.
Choose bytes or code points
Encode one value per UTF-8 byte for the byte-level view, or one value per character to see each code point on its own.
Set a separator
Separate values with a space, a comma, or nothing at all so the output matches wherever you plan to paste it.
Type and copy
Type or paste your input and the result appears live below, ready to copy with one click.
Why use this tool
Both directions
Encode text into octal, or paste octal values and read the text back, without switching to a second tool.
Bytes or code points
Byte mode writes one three-digit value per UTF-8 byte, so a solid run can still be split apart. Code point mode writes one value per character instead.
Three separator styles
Space-separated values for readability, commas for lists and arrays, or no separator at all for a single unbroken run.
Tolerant, honest decoding
Spaces, line breaks, commas, colons, 0o prefixes, and backslashes are all stripped before parsing, and an invalid value is quoted back to you instead of producing silent garbage.
Live character and byte counts
A quiet line under the result reports how many characters, bytes, or code points you are looking at, so multi-byte text is never hidden.
Runs entirely in your browser
Everything happens on your device as you type. Your text is never uploaded or stored.
About this tool
Octal writes numbers in base 8, using only the digits 0 to 7. It shows up in file permission modes, in older character tables, and in string escapes like \110, where three octal digits stand for one byte. This converter makes that layer readable in both directions: type a word and watch each character become its octal code, or paste a run of octal values and read the original text back.
The Values setting decides what a single value represents. UTF-8 bytes writes one three-digit value per byte, padded with leading zeros so every value is the same width, which is what makes the no-separator form possible to split apart again. Code points writes one value per character instead, so an emoji is a single long value rather than four short ones. Plain English letters look identical either way; accented letters, symbols, and emoji are where the two views separate.
Decoding is deliberately forgiving. Spaces, line breaks, commas, colons, 0o prefixes, and backslashes are all removed before parsing, so most octal you find in the wild pastes in and just works. If a value contains an 8 or a 9, runs past the size of a byte, or leaves an unbroken run that is not a multiple of three digits, the tool names the exact problem rather than guessing. For the same bytes in other bases, see text to binary and text to hex, or convert whole numbers between bases with the number base converter.
Frequently asked questions
- What is octal, and why is it used for text?
- Octal is base 8, so it uses the digits 0 to 7 and nothing else. Three octal digits cover exactly the 0 to 255 range of one byte, which is why octal escapes in string literals and older character tables are written as three-digit groups.
- What is the difference between bytes and code points?
- A byte is one unit of storage, and a code point is one character. Basic English letters are one byte each, so the two views match. An accented letter is two bytes, most symbols are three, and an emoji is four, so byte mode produces several values where code point mode produces one.
- Why do the values have leading zeros?
- In byte mode every value is padded to three digits so they all line up and so a run written with no separator can be split back into bytes. Code point values vary in length, which is why they always need a separator between them.
- What octal formats can I paste to decode?
- Almost any. Values can be separated by spaces, line breaks, commas, colons, semicolons, or nothing at all, and 0o prefixes and backslashes are removed automatically. Anything containing an 8, a 9, or a letter is flagged as invalid instead of being silently dropped.
- Is my text uploaded anywhere?
- No. Everything runs in your browser as you type; nothing is sent to a server. Your text is never uploaded, stored, or logged.
Related tools
Text to Binary
Convert text to its binary, hex, or decimal byte representation and back, live.
Text to Hex Converter
Convert text to hexadecimal and hex back to text, with your choice of separator, live.
Number Base Converter
Convert a number between binary, octal, decimal, and hexadecimal, all four shown at once.
API Key Generator
Generate cryptographically random API keys and tokens in hex, base62, or base64url, with control over length, an optional prefix, and bulk output.
ASCII Table Reference
The full ASCII character set with decimal, hex, octal, binary, and HTML codes. Search by code, character, or name.
Atbash Cipher
Mirror the alphabet so A swaps with Z, B with Y, and so on. Atbash is its own inverse, so one field both encodes and decodes as you type.