A reliable char code lookup reveals the exact Unicode scalar values in a string—including invisible controls, combining marks, and multi-code-point emoji—instead of treating every visible symbol as one character.

That distinction explains why copied text can look identical yet fail an exact comparison, and why one visible emoji may contain several code points. The Unicode Encoder / Decoder supports this inspection by converting text into Unicode code point labels and rebuilding text from validated labels. Its conversion runs locally in the browser.

char code lookup tips and common mistakes
Char Code Lookup: Tips and Common Mistakes

What a char code lookup is actually showing

A Unicode scalar value is the abstract identity assigned to a character. The lookup displays those values as uppercase hexadecimal labels with a U+ prefix and a minimum of four digits. For example, A becomes U+0041. A supplementary character such as 😀 remains one scalar value, U+1F600, rather than being split into two UTF-16 surrogate halves.

This scalar-level view is more revealing than counting visible symbols. Control characters and default-ignorable code points remain in the result. A newline is shown as U+000A, while a zero-width joiner appears as U+200D. Those values can explain trailing-line breaks, unexpected cursor movement, invisible differences, and failed text comparisons.

Convert exact text into code point labels

Use this workflow when you need to inspect the abstract characters contained in a string:

  1. Keep the original string unchanged. Copy it directly from the source instead of retyping it, because retyping can remove an invisible character or substitute a look-alike character.
  2. Choose text-to-code-points and paste the exact Unicode string. Include spaces, line breaks, controls, combining marks, and other invisible characters that are genuinely present.
  3. Convert and inspect the resulting U+ tokens. Basic values have at least four hexadecimal digits, while supplementary values retain their full value, such as U+1F600.
  4. Copy the sequence without changing its token boundaries. Keep the prefixes and separators so each code point remains independently identifiable.
  5. Use decode mode to reverse the process when needed. Enter the prefixed tokens rather than plain hexadecimal numbers, then validate the result before using it.

The input is limited to 100,000 code points to keep rendering and copying responsive. For a longer string, inspect it in separate chunks and retain clear notes about where each chunk begins and ends.

Read and decode U+ tokens correctly

The encoder emits a diagnostic sequence of U+ labels. Decode mode accepts tokens beginning with U+ or JavaScript-style backslash-u notation, including brace notation for supplementary values. Hexadecimal digits are case-insensitive, and tokens may be separated by spaces, commas, or line breaks.

Input Code point label What the example shows
A U+0041 Basic values receive at least four hexadecimal digits.
😀 U+1F600 A supplementary character remains one scalar value.
👩‍💻 U+1F469 U+200D U+1F4BB Three scalar values form one visible joined emoji.
Line feed U+000A An otherwise invisible control remains explicit.
  1. Switch to decoding mode and paste prefixed tokens. Examples include U+0041, \u0041, and \u{1F600}.
  2. Preserve token boundaries. Separate adjacent values with spaces, commas, or line breaks so U+0041 U+0062 cannot be mistaken for one longer hexadecimal number.
  3. Check every rejected token. Missing prefixes, non-hexadecimal characters, out-of-range numbers, and surrogate values are rejected instead of being silently replaced.
  4. Copy the output after validation. Text is constructed only after every token passes the Unicode scalar-value checks.

For a programming-side reference, ECMAScript’s String.fromCodePoint method also creates strings from code points. Its scalar-oriented behavior is distinct from counting UTF-16 code units.

Common lookup mistakes and corrections

Most incorrect char code results come from confusing a visible symbol, a Unicode scalar value, a UTF-16 code unit, and an encoded byte. These are different layers:

Common mistake What goes wrong Correct approach
Assuming one visible symbol equals one code point Joined emoji, flags, family sequences, and combining marks contain multiple values. Inspect the complete scalar sequence.
Splitting a supplementary character into surrogate halves Standalone surrogate values are not valid Unicode scalar values. Keep the full value, such as U+1F600.
Omitting the U+ or backslash-u prefix Plain hexadecimal is not an accepted decode token. Prefix every value with its required notation.
Removing separators between values Adjacent hexadecimal numbers can merge into one invalid token. Retain spaces, commas, or line breaks.
Reading U+ values as UTF-8 bytes Code points and encoded bytes use different numerical forms. Use a byte converter when the protocol requires bytes.
Assuming equivalent-looking strings are identical Normalization is intentionally not performed. Compare the exact code point sequences.

The fastest correction is to identify the representation you actually need. A U+ label describes an abstract character, while a byte sequence describes how that character is encoded for storage or transmission. Do not substitute one representation for the other.

One visible symbol may contain several code points

A code point is not necessarily a user-perceived character. The emoji 👩‍💻 contains U+1F469 for woman, U+200D for zero-width joiner, and U+1F4BB for laptop. The joiner combines the surrounding emoji into one visible presentation, but the scalar sequence still contains three values.

Many flags, family emoji, accented forms, and writing systems also use multi-code-point sequences. The lookup exposes those values but does not segment text into grapheme clusters and does not validate whether a sequence forms a recommended emoji or orthographic cluster.

Normalization creates another subtle difference. Precomposed é may be U+00E9, while an equivalent-looking decomposed form can be U+0065 U+0301. Both are valid and may render alike, but they remain different sequences in the diagnostic output. That exactness is useful when diagnosing search, identifier, filename, and string-comparison problems.

Keep code points, bytes, and language escapes separate

For example, U+00E9 identifies the character é. Its UTF-8 representation is the two bytes C3 A9, which are not the same values. If a protocol, file, or API requires byte-level output, use the UTF-8 Encoder / Decoder for byte-level work instead of interpreting the U+ output as bytes.

Likewise, HTML entities, JSON escapes, URL encoding, and UTF-8 bytes have different syntax and rules. The code point sequence is useful for character identity, but it is not a universal escaping format for every programming language or delivery system.

The lookup also has deliberate boundaries. It does not provide character names, scripts, confusable status, language meaning, or recommendations about emoji and orthographic clusters. Those are separate Unicode properties rather than reversible scalar conversion. Its purpose is to show exactly which scalar values are present so you can investigate the next layer with the appropriate tool.

A practical char code troubleshooting checklist

  • Preserve the raw source instead of retyping or visually cleaning it.
  • Check for invisible controls, line breaks, combining marks, and zero-width characters.
  • Compare complete U+ sequences rather than counting visible symbols.
  • Keep supplementary characters as full scalar values and never decode lone surrogate halves.
  • Retain prefixes and separators whenever code point labels are copied or decoded.
  • Determine whether the problem concerns character identity, grapheme presentation, normalization, or byte encoding before choosing a fix.

When two strings look the same, the code point sequence is usually more informative than the rendered appearance. It reveals whether the difference is a hidden control, a combining sequence, a joined emoji, or another scalar-level variation.

If you're weighing options, ASCII Code Converter: Tips and Common Mistakes covers this in detail.

If you're weighing options, Is Unicode Encoder / Decoder Safe to Use Online? covers this in detail.