Char to ASCII

Look up the ASCII, Unicode, and UTF-8 code of every character.

Characters

0

ASCII

0

codes 0–127

Non-ASCII

0

need 2–4 UTF-8 bytes

Unique

0

distinct characters

Char to ASCII – Look Up the Code of Every Character

Paste any text and this tool lists each character on its own row with its ASCII or Unicode number in every common notation: decimal, hexadecimal, octal, binary, HTML entity, U+ code point, and the actual UTF-8 bytes. It is the quickest way to answer "what is the ASCII value of this character?" for a whole string at once.

Reading the table

Take the sample Hello, Wörld! €. The row for H shows decimal 72, hex 0x48, octal 0110, binary 01001000, HTML H, Unicode U+0048, and UTF-8 48 – one byte, because it is plain ASCII. The ö row shows code 246 (U+00F6) but two UTF-8 bytes, C3 B6, and the € row shows 8364 with three bytes, E2 82 AC. The cards above the table summarise how many characters are pure ASCII and how many are not.

Why the character count and byte count differ

A character is not always one byte. ASCII characters (codes 0–127) take one byte in UTF-8, letters from European and Middle Eastern alphabets take two, most other scripts and symbols such as the euro take three, and emoji take four. Databases with byte-length limits, SMS encoders, and fixed-width file formats all care about this difference, so the per-character UTF-8 column helps you see exactly where the extra bytes come from.

Typical uses

  • Debugging – find a stray tab, a Windows CR, a non-breaking space, or a zero-width character that breaks a string comparison or a CSV import.
  • Programming – copy the exact hex or decimal value for a char constant, a regex escape, or a byte array.
  • HTML – get the numeric entity for a symbol that is hard to type.
  • Learning – see how letters map to numbers and bits, which is the foundation of every text encoding.

To convert whole strings in one go rather than inspecting them, use Text to ASCII or look at the raw bytes with the UTF-8 Converter.

Frequently Asked Questions

The euro sign is not part of ASCII, so it has no ASCII code. The table shows its Unicode code point instead – U+20AC, which is 8364 in decimal – and the three UTF-8 bytes (E2 82 AC) it takes up in a file. In the old Windows-1252 code page it was byte 128, which is why you sometimes see '128' quoted as the euro's 'ASCII' value.

Paste the text and scan the Char column. Spaces, tabs, line feeds, and carriage returns are labelled (␠, ⇥, ↵, CR), other control characters appear as '(control N)', and look-alikes such as a non-breaking space (U+00A0) or a zero-width space (U+200B) stand out because their code differs from a normal space (32).

Yes. Use Download CSV above the table to save every row – index, character, decimal, hex, octal, binary, HTML entity, Unicode code point, and UTF-8 bytes – for a spreadsheet or a bug report. The table on screen shows the first 100 rows; the CSV contains all of them.