Text to ASCII and Unicode Codes

List the decimal, hexadecimal and UTF-8 byte values behind every character in your text, including emoji and accented letters, in a clear table.

Ready

Your text is processed locally in your browser and is not uploaded to our servers.

0 characters
Off by default. When on, the text is stored in your browser's local storage only — never sent anywhere.

Options

Includes spaces, tabs and line breaks in the table.

Character codes

Every character and its codes
Char Decimal Hex Binary UTF-8 bytes Description

What this tool does

Every character has a number behind it — its code point — and this tool lays those numbers out for any text you paste. For each character it shows the decimal value, the hexadecimal value, the binary, the UTF-8 bytes, and a short description of what kind of character it is. It works for plain ASCII, accented letters, and full emoji.

"ASCII" is in the name because ASCII is where character codes began, but the tool is fully Unicode-aware and handles characters far beyond the original 128.

How to use it

  1. Type or paste your text.
  2. Read the table: one row per character, with its codes in several formats.
  3. Turn off Show spaces and control characters if you only want visible characters.
  4. Copy the table or download it as a CSV for use in a spreadsheet.

How the codes are worked out

The text is split into characters using grapheme-aware iteration, so a character built from a base letter plus an accent, or an emoji made of joined symbols, is handled as a unit where possible. For each character the tool reads its Unicode code point and presents it four ways:

  • Decimal — the code point as an ordinary number. A is 65, a is 97, space is 32.
  • Hexadecimal — the same value in base 16, the form used in Unicode references (U+0041 for A).
  • Binary — the value as bits.
  • UTF-8 bytes — how the character is actually stored on disk and sent over the network, which is one to four bytes.

The description column classifies each character — uppercase letter, digit, punctuation, space, control character, emoji — which is helpful when you are hunting for an unexpected character in a string. The tool also flags whether each character is within the original 7-bit ASCII range. Everything is computed in your browser.

Examples

A few characters and their codes
CharDecimalHexUTF-8
A654141
a976161
é233E9C3 A9
44032AC00EA B0 80

The jump from one UTF-8 byte for A to three for the Korean is exactly why byte counts and character counts differ for non-English text.

Common use cases

  • Finding a hidden character that is breaking a string comparison or a URL.
  • Looking up code points for characters you need in HTML or code.
  • Learning how ASCII, Unicode and UTF-8 relate.
  • Debugging encoding by seeing the exact bytes of each character.
  • Building escape sequences from the hex values.

Privacy and security

Character analysis runs in your browser. Nothing is uploaded. Your options are saved locally. See the privacy policy.

Frequently asked questions

What is the difference between a code point and a UTF-8 byte?

A code point is the number Unicode assigns to a character. UTF-8 is how that number is stored, using one to four bytes. For characters up to 127 they are the same; above that, one code point takes several bytes. The table shows both.

Why does one character show several UTF-8 bytes?

Because characters outside the basic ASCII range are stored as multiple bytes in UTF-8. Accented letters use two, most CJK characters use three, and emoji use four. That is normal and correct.

Can it show me the code for a space or tab?

Yes. With Show spaces and control characters on, spaces (32), tabs (9) and line breaks (10 and 13) appear in the table with a description, which is useful for spotting invisible characters.

Does it handle emoji?

Yes. Emoji are shown with their code points and UTF-8 bytes. Emoji built from several joined code points may appear as more than one row, since each component has its own code.

How do I export the results?

Use Copy table for a plain-text version or Download CSV for a spreadsheet file containing the character and all its code values.

Tools that pair well with the Text to ASCII.