Blog
Image Tools
Crop Image
Resize Image
Rotate & Flip
Compress Image
Photo Filters
Meme Generator
GIF Maker
Collage Maker
Watermark Image
Blur Image
Convert
JPG to PNG
PNG to JPG
HEIC to JPG
DNG to JPG
Image Converter
PDF to JPG
JPG to PDF
Merge PDF
Compress PDF
MP4 to MP3
Video to GIF
MOV to MP4
MP3 Converter
Video & Audio
Trim Video
Crop Video
Remove Audio
Text to Speech
Audio Cutter
MP3 Compressor
Design & Editor
Resume Builder
Design Editor
Add Text to Photo
Social Media Resizer
QR Code Generator
Signature Generator
More Tools
Word Counter
Password Generator
Random Picker
Dice Roller
Spinner Wheel
Favicon Generator
Barcode Generator
Browse All Tools

Text to Octal Converter

Turn text into octal, the base-8 numbers used in file permissions, old systems and escape codes. Each byte becomes a number made of the digits 0 to 7, with options for three-digit padding and backslash escapes ready for code.

100% Free
No Sign-up
Padding
Escape Codes
Private · Nothing Saved Online
Text to Octal
Your Text
Input Characters—
Output Characters—
Lines In → Out—
Input Words—
Type or paste in the input box, or open a file. The result updates as you type.
Octal to text
TextType, paste or drop a file
Octal
Input—
Result—
Status—
Settings forYour input
Separator
Format
Encoding
File Name

How to Convert Text to Octal

Quick answer: type your text; each byte appears as an octal number below.

  1. 1

    Type your text

    Or paste it, or open a file.

  2. 2

    Choose the format

    Padding and backslashes.

  3. 3

    Choose a separator

    Space, comma, new line or none.

  4. 4

    Copy or download

    Use the octal anywhere.

What You Get

Instant
As you type
Formats
Padding and escapes
UTF-8
Accents and emoji
Separators
Four styles
Private
Nothing is uploaded
Any Device
Phone or computer

What Is Octal?

Octal is a base-8 number system that uses only the digits 0 to 7. Each octal digit stands for exactly three bits, which made it popular on early computers and keeps it in use today for file permissions, some escape codes and certain data formats. The letter A, number 65 in decimal, is 101 in octal; a space is 040.

Formatting Options

Pad to three digits writes every byte as three digits, such as 012 instead of 12, which is the standard way to show bytes in octal because the largest byte, 255, is 377. Add a backslash turns each number into an escape like \101, the form used for octal escapes in shells, C and many older languages. Choose a separator to match your destination.

UTF-8 Bytes or Code Points

With UTF-8 bytes, the default, accented letters and emoji become several octal numbers, exactly as they are stored in files: é becomes 303 251. With code points, each character becomes one octal number, so é becomes 351. Plain English text gives the same result either way.

Example

"Hi!" becomes 110 151 041. With backslashes and no separator, it becomes \110\151\041, which prints "Hi!" when used in a shell or C string. Use Octal to Text to decode octal back into words.

Who Uses Octal?

System administrators working with file permissions and shell scripts, programmers writing escape codes in strings, students learning number systems alongside binary and hex, people reading data from older equipment and formats, and puzzle makers looking for a less familiar code than binary.

Step by Step

Type or paste your text. Keep three-digit padding on unless your destination says otherwise. Tick backslashes if the octal will go inside a string in code. Pick a separator, then copy the result or download it as a .txt file. Spaces and line breaks are converted too: a space is 040 and a new line is 012.

Good to Know

Octal numbers never contain the digits 8 or 9; if you see them, the numbers are decimal. File permissions such as 755 use octal too, but they describe permission bits rather than characters. For the same bytes in other bases, see Text to Binary, Text to ASCII and Text to Hex.

More Examples

More values for reference: the digits 0 to 9 are 060 to 071 in octal, the capital letters A to Z run from 101 to 132 and the small letters a to z from 141 to 172. A tab is 011, a carriage return 015 and the escape character 033, which you will often see at the start of colour codes in terminal output, written as \033. The largest single byte, 255, is 377 in octal. Writing your name in octal gives a list of three-digit numbers that look nothing like the original, which makes octal a fun alternative to binary for puzzles and classroom exercises.

Private, Free and Instant

The converter is free and handles text up to 5 MB. There is no sign-up, no limit and nothing to install. The conversion runs inside your browser, so your text and data are never uploaded, logged or stored. The result updates as you type or paste, and you can open a text file from your device and download the result as a new .txt file. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android, in any modern browser.

Writing Text as Octal Codes

Octal writes numbers using the digits 0 to 7. Text can be represented as octal codes for each character, as in escape sequences in C strings and old Unix tools.

Example

The word Hi is 110 151 in octal because H is decimal 72, which is 110 in octal, and i is 105, which is 151. A space is 40.

Notes

  • ASCII characters take up to three octal digits.
  • Non-English characters use several bytes in UTF-8.

To decode, use octal to text.

Octal in Practice

Octal escapes are still used in shell scripts and permissions such as 755.

Octal escapes such as \101 appear in shell scripts, C string literals and file permission settings like 755, where each digit stands for read, write and execute rights for the owner, group and others. Converting text to octal helps you see how a string is stored and prepare escape sequences for code. For plain letters and digits, each character needs up to three octal digits; accented characters need several bytes in UTF-8.

Frequently Asked Questions

Questions about text to octal

How do I convert text to octal?

Type or paste your text. Each byte appears as an octal number.

What is A in octal?

101. A space is 040 and a new line is 012.

What does padding do?

It writes every number with three digits, such as 012.

Can I make octal escapes?

Yes. Tick Add a backslash to get codes like \101.

Can I convert octal back?

Yes, with the Octal to Text converter.

Is anything uploaded?

No. The conversion happens in your browser on your own device. Nothing is sent or stored.