Text to Octal Converter

Convert Text to Octal instantly in your browser.

0 characters

0 characters

Everything is converted in your browser. Nothing you paste is uploaded or stored.

Worked example

Each row shows a short sample written as Text, and the same value converted to Octal.

Text input Octal output
Hi 110 151
SG 123 107
tool 164 157 157 154

In-depth guide

text to octal: a byte conversion guide

Understand this converter's byte representation, UTF-8 handling and input boundaries.

Last verified: Plain-text version of this guide

Key figures at a glance

Input interpretation
UTF-8 text
Output interpretation
Octal byte values, 000–377

What the labels mean

Paste actual text into the input box. The browser encodes it as UTF-8 bytes and writes each byte in the selected number base. The output updates as you type; Copy result copies that representation. This is a byte encoding, not a list of Unicode code-point numbers.

How the conversion works

ASCII characters use the same byte values in UTF-8, but accented letters, Chinese, Tamil and emoji can require multiple bytes. One visible symbol can contain several Unicode scalar values. The tool does not normalize visually similar spellings: composed é and e followed by a combining accent have different bytes.

Output uses three octal digits per byte, separated by spaces.

Worked examples

The table uses the actual browser conversion engine and is checked against the PHP example generator.

Input Result Bytes
Hi 110 151 2
é 303 251 2
中 344 270 255 3
அ 340 256 205 3
🙂 360 237 231 202 4
é 145 314 201 3

Input limits and round-trip checks

An input consisting only of JavaScript whitespace produces empty output. With other text present, spaces and line breaks are encoded too. A typed backslash escape is literal text, not an instruction to insert a control character. A leading UTF-8 BOM is consumed when decoding back to text, so byte-for-byte round trips are not guaranteed for that prefix.

Check values with the reverse converter. For another byte representation use hex to decimal.

Frequently asked questions

Is my data sent anywhere?

No. The conversion runs entirely in your browser using JavaScript. Nothing you paste leaves your device, is logged, or is stored.

How should I separate values?

Spaces work, and so do commas, colons and semicolons. For binary, hex and octal you can also paste a single unbroken run of digits — it is split into bytes automatically.

Does it handle emoji and non-English text?

Yes. Text is treated as UTF-8, so accented characters, Chinese, Tamil and emoji all convert correctly. They simply take more than one byte each.

Why did I get an error?

The input contained a character that is not valid for the source format, a value above 255, or a run of digits that does not divide evenly into bytes. The message names the specific token so you can find it.

Sources

  1. WHATWG — Encoding Standard: TextEncoder and TextDecoder
  2. Unicode — UTF Encoding and BOM FAQ
  3. RFC 20 — ASCII Format for Network Interchange
  4. RFC 3629 — UTF-8

This guide explains published rules in plain language. It is not financial, legal or official advice — rules change, so confirm with the agency linked above before you commit.

Related converters