Skip to content
TabKiwiTabKiwi

Text to Octal Converter

Show every UTF-8 byte of your text as a three-digit octal number, and decode octal back.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Octal escapes still turn up in C strings, shell printf commands and old file formats. This converter writes each UTF-8 byte as a three-digit base-8 value from 000 to 377, and reads octal lists separated by spaces, commas or new lines. Everything happens on your device.

How to use Text to Octal Converter

  1. Choose a direction.
  2. Enter text or octal numbers.
  3. Pick a separator.
  4. Copy the result.

Frequently asked questions

What is the largest valid value?

377, which is 255 in decimal, the largest value that fits in one byte.

Can I use this for chmod permissions?

No. Those octal digits describe permission bits, not characters. Use the chmod calculator instead.

More Developer tools

View all 91 →