Write text as octal (base-8) byte values and turn octal back into text. Octal still shows up in C string escapes, shell printf, PostgreSQL bytea escapes and older systems, and this converter gives you three-digit values ready to use. Every language works, because each character is first turned into its UTF-8 bytes.
Hindi letters and ₹ take 3 bytes each.
5 characters, 5 bytes in UTF-8.
Processing runs in your browser. What you type never leaves this device.
Three-digit octal for each UTF-8 byte
Octal back to text, with or without separators
Space, comma, new-line or no separator
Code points instead of bytes if you need them
Runs in your browser
printf "\110\151" prints Hi. Add a backslash before each value from this tool.
Older bytea output writes non-printable bytes as \ooo; decode them here.
Compare the same text in [binary](/tools/text-to-binary), octal, [decimal](/tools/text-to-ascii) and [hex](/tools/text-to-hex).
Octal uses the digits 0 to 7. One byte (0 to 255) needs up to three octal digits, 000 to 377, so the converter pads every byte to three digits. That is also why a run without separators can be split back into bytes.
The 755 in chmod 755 is octal: each digit is three permission bits. It is a different use of the same number base.
Text to Hex
Text to UTF-8 hex bytes with any separator or 0x / \x prefix
Text to Binary
Text to 8-bit binary and binary back to text
Text to ASCII Codes
Characters to decimal ASCII codes and back
ASCII Table
All 128 ASCII codes in decimal, hex, octal and binary, with names and escapes
JSON Formatter
Format and validate JSON
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.