Text to Octal
Turn text into octal. Each character is shown as its base-8 byte value.
About the Text to Octal converter
This tool converts text into octal, the base-8 number system that uses only the digits 0 through 7. Each character is encoded to its byte value and printed in octal, so the capital A (byte 65) becomes 101. Octal turns up in Unix file permissions, in older systems programming, and in escape sequences inside string literals.
How to use it
- Type or paste your text into the input.
- The octal codes appear immediately, one space-separated value per character.
- Copy the output for use in a script, document, or learning exercise.
A common use is illustrating how characters map to base-8 codes when teaching number systems. Keep in mind that plain ASCII characters fit in one byte, while accented letters and emoji use several UTF-8 bytes and so produce multiple octal codes. The conversion runs locally in your browser, so the text you enter is never uploaded or stored.
Frequently asked questions
Which digits does octal use?
Octal is base-8, so it uses only the digits 0 through 7. There are no digits 8 or 9 and no letters, unlike hexadecimal.
What does an octal code like 101 represent?
It is the byte value of a character written in base-8. Octal 101 equals decimal 65, which is the capital letter A.
How are multi-byte characters converted?
Accented letters and emoji are encoded as several UTF-8 bytes, and each byte is shown as its own octal code, so one such character can produce multiple values.
Is my text sent to a server?
No. The conversion is performed in your browser, so nothing you type is uploaded.