Text to ASCII Converter

Convert Text to ASCII 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 ASCII.

Text input ASCII output
Hi 72 105
SG 83 71
tool 116 111 111 108

In-depth guide

text to ASCII values: 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
Decimal byte values, 0–255

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.

The legacy ASCII output lists decimal UTF-8 byte values from 0 to 255. Non-ASCII text can produce several values; these are not all standard ASCII codes.

Worked examples

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

Input Result Bytes
Hi 72 105 2
é 195 169 2
中 228 184 173 3
அ 224 174 133 3
🙂 240 159 153 130 4
é 101 204 129 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