Octal Text Converter

Convert text to octal byte values — like \033 in shell scripts

Ad placeholder (leaderboard)

Octal byte values show up wherever bytes are written in base 8 — shell escape sequences, C and Python string literals, and classic Unix tools. This converter turns text into octal byte values and back.

How it works

For encoding, the text is converted to UTF-8 bytes. Each byte from 0 to 255 is written in base 8, which needs at most three octal digits:

byte 65  (A)  -> 101
byte 27  (ESC)-> 033
byte 255      -> 377

For decoding, the input is split on whitespace, each token is parsed as a base-8 number, and the resulting bytes are decoded as UTF-8 into text. Any token that is not valid octal, or exceeds 377 (255 decimal), is rejected.

Example and notes

The word Hi is bytes 72 and 105, giving octal 110 151. The escape character used in terminal colour codes is byte 27, written 033 — the same form you see in shell prompts. When decoding, separate each byte with a space; the tool does not assume a fixed three-digit width, so 101 33 110 is read as three distinct bytes.

Ad placeholder (rectangle)