Text to Octal
Convert text to octal numbers. Each UTF-8 byte is written as a three-digit base 8 value, like 110 for H. A free text to octal converter for students and coders.
Runs in your browser. Nothing is uploaded.
About Text to Octal
Text to Octal encodes each character as UTF-8 bytes and writes every byte in base 8, padded to three digits. H is 110, e is 145 and a space is 040.
Octal still shows up in Unix file permissions, C and Python escape sequences (\110) and computer science courses, which is where this converter is most useful.
How to use Text to Octal
- Type or paste your text into the input box. Press Sample to see an example.
- The result appears instantly as you type.
- Copy the result, or press Use as input to chain another transformation.
Frequently asked questions
Why three digits?
A byte goes up to 255, which is 377 in octal, so three digits always fit.
How do I use the result in a C string?
Put a backslash before each value, for example \110\145 for He.
Is Text to Octal free and private?
Yes. Text to Octal is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.