ASCII / Unicode

Use this calculator

ASCII defines a 7-bit character set for basic Latin letters, numerals and control codes. Unicode assigns code points to characters across writing systems and symbols. Encoding formats such as UTF-8 and UTF-16 represent those code points as bytes or code units.

Essential relationship

\mathrm{U+0041}=65_{10}=41_{16}
The subset sign โŠ‚ describes how the common ASCII repertoire is included in Unicode; U+hhhh is hexadecimal code-point notation. UTF-8 is a byte encoding, whereas UTF-16 comprises 16-bit code units.

Essential relationship

Supply the text to inspect

Character or text [text] One or more Unicode scalar values; the calculator limits each inspection to 256 code points.

Examine code points and encodings

Enter a character or short string in Inspect and calculate. For A, the code point is U+0041, decimal 65, UTF-8 byte 41 and UTF-16 code unit 0041. For longer text, the primary answer gives the number of code points.

Interpret the detail table

Single-character results also show Decimal and Binary. For every input, the details show full-text UTF-8 bytes and UTF-16 code units. A Full-string Unicode inspection table lists #, Character, Code point, Decimal, UTF-8 hex and UTF-16 hex for each rune.

Unicode scalar versus stored units

๐Ÿ˜€ is U+1F600 and uses four UTF-8 bytes (F0 9F 98 80) or two UTF-16 code units (D83D DE00). The character illustration uses these exact encodings.

Characters and Unicode scalar values. Text may contain ASCII, accented letters and supplementary characters.

๐Ÿ˜€ is U+1F600 and uses four UTF-8 bytes (F0 9F 98 80) or two UTF-16 code units (D83D DE00). The character illustration uses these exact encodings.

A combining mark example

A visible accented letter may be one composed code point or a base letter plus a combining mark. The app counts code points, which may differ from visible grapheme clusters.

One ASCII-compatible example. The letter A uses one UTF-8 byte and one UTF-16 code unit.

A visible accented letter may be one composed code point or a base letter plus a combining mark. The app counts code points, which may differ from visible grapheme clusters.

Practical debugging uses

Inspecting code points and UTF bytes can help explain copy/paste anomalies, byte-order assumptions and inconsistent text processing. Preserve the actual Unicode content when diagnosing displayed text differences.

UTF-8 and UTF-16 differ for emoji. One Unicode scalar value can require several encoding units.

Inspecting code points and UTF bytes can help explain copy/paste anomalies, byte-order assumptions and inconsistent text processing. Preserve the actual Unicode content when diagnosing displayed text differences.

Quick answers

How many code points can I inspect at once?

Up to 256; split longer strings explicitly.

Is ASCII separate from Unicode?

ASCII is included in Unicode and shares its basic U+0000โ€“U+007F values.

Why can one visible emoji have more than one code point?

Emoji sequences can combine base symbols, modifiers and joiners; the app reports code points individually.