Text to Unicode conversion maps every Unicode scalar value in a string to a U+ hexadecimal label, such as A becoming U+0041. It reveals the abstract characters in text rather than the bytes used to store them.
The Unicode Encoder / Decoder supports that task locally in your browser. Use it to inspect mixed-language text, expose invisible code points, debug a copied string, or rebuild text from documented scalar tokens. The result is a diagnostic representation, not a universal escape format for JSON, HTML, URLs, or programming languages.

What text-to-Unicode conversion identifies
A Unicode code point is the numeric identity assigned to an abstract character. The encoder writes that identity as U+ followed by uppercase hexadecimal, using at least four digits. Thus a basic character such as A is U+0041, while é is U+00E9. This notation identifies the character value itself; it does not describe the font, style, or screen shape used to display it.
The same visible letter can be represented in several technical formats, so choosing the right notation matters:
| Representation | Example | Correct use |
|---|---|---|
| Unicode code point | U+00E9 | Identifying é as an abstract character |
| UTF-8 byte sequence | C3 A9 | Storing or transmitting é in UTF-8 |
| HTML character reference | é | Embedding a character reference in HTML |
| JSON string escape | \u00E9 | Representing é inside a JSON string |
These forms can refer to the same character without being interchangeable. The encoder produces the first form as a code-point label. It does not convert the result into HTML entities, JSON escapes, URL encoding, or UTF-8 bytes.
Convert text to U+ code points
Use encode mode when the source is ordinary text and your goal is to inspect its scalar values:
- Choose text-to-code-points mode. Paste the exact Unicode string, including spaces, line breaks, zero-width characters, and any other invisible content you need to inspect.
- Convert the string. Review each U+ token. Every token represents one Unicode scalar value; a supplementary-plane character remains one token rather than two surrogate halves.
- Copy and preserve the sequence. Keep each token boundary intact when moving the values into a log, test, or comparison so adjacent values are not mistaken for one longer hexadecimal number.
For example, the short sample A é 😀 contains the labels U+0041, U+00E9, and U+1F600.
Read supplementary and invisible characters
Encoding iterates Unicode code points, not JavaScript UTF-16 code units. A supplementary-plane character therefore remains one scalar value. The emoji 😀 is labeled U+1F600, not exposed as two surrogate halves. This makes the output suitable for checking whether a string contains the intended character instead of a different supplementary symbol.
Invisible content is not silently omitted. Control characters and default-ignorable code points are included. A newline appears as U+000A, and a zero-width joiner appears as U+200D. Revealing these values can explain unexpected cursor movement, an apparent mismatch after pasting, or a failure in an exact string comparison.
Decode code points back into text
The reverse operation reconstructs text from validated scalar tokens. Its accepted notation is deliberately explicit:
- Switch to decoding. Enter the token sequence rather than raw UTF-8 bytes.
- Paste prefixed tokens. Use U+XXXX, JavaScript-style \uXXXX, or braced \u{...} notation. Separate tokens with spaces, commas, or line breaks.
- Check the result. The tool accepts valid scalar values from U+0000 through U+10FFFF, except the surrogate interval U+D800 through U+DFFF. Missing prefixes, non-hexadecimal values, out-of-range numbers, and surrogates are rejected rather than replaced silently. Output text is created only after every token passes validation.
| Token notation | Example | Purpose |
|---|---|---|
| U+XXXX | U+0041 | Prefixed Unicode code-point label |
| \uXXXX | \u0041 | JavaScript-style fixed-width notation |
| \u{...} | \u{1F600} | Braced notation, including supplementary values |
Hexadecimal digits are case-insensitive. Preserve the required prefix and token boundaries, especially when adjacent values could otherwise be read as one longer hexadecimal number. The Char Code Lookup Cheat Sheet: U+XXXX and \u{} Syntax offers a compact reference for these notation differences.
Why a visible symbol may contain several values
Unicode scalar values are not the same as user-perceived characters. A visible symbol can be assembled from multiple scalar values, and a joined emoji is a common example. The sequence 👩💻 contains U+1F469 (woman), U+200D (zero-width joiner), and U+1F4BB (laptop).
Many flags, family emoji, accented forms, and writing systems also use multi-code-point sequences. The tool exposes every scalar in such a sequence, but it does not segment grapheme clusters or decide where a user-perceived character begins and ends. As a result, do not treat the number of U+ labels as the number of visible symbols, and do not assume that every joined sequence is a recommended emoji or orthographic cluster.
Keep normalization differences visible
The encoder intentionally performs no normalization. A precomposed é may be U+00E9, while an equivalent-looking decomposed form may be U+0065 U+0301. Both sequences are valid and may render alike, yet they remain different here.
That distinction is useful when diagnosing search, identifier, filename, and comparison problems. It also prevents an inspection tool from hiding the exact form of the pasted text. If a downstream system defines canonical equivalence or requires a particular normalized form, apply that system’s rules in the appropriate layer; this code-point view preserves the distinction instead of silently changing it.
Code points are not UTF-8 bytes
U+00E9 identifies the abstract character é, while its UTF-8 representation is the two bytes C3 A9. A code-point list answers “which character values are present?” A byte list answers “which bytes represent the text?” Those are different questions and should not be substituted for one another.
If a protocol or file format requires byte-level encoding, use the UTF-8 Encoder / Decoder for that task. HTML entities, JSON escapes, URL encoding, and source-code escapes also have their own syntax and rules. The U+ output from this tool is a diagnostic representation, not encryption and not a substitute for the exact format required by a consuming system.
Limits and appropriate uses
The Unicode Encoder / Decoder accepts up to 100,000 code points per input to keep rendering and copying responsive. It is most useful for these tasks:
- identifying the scalar values in mixed-language text;
- finding control characters, zero-width characters, and other invisible differences;
- checking a documented U+ or \u{} token list against text; and
- comparing the exact scalar sequences of two strings.
It does not look up character names, scripts, confusable status, or language meaning. It also does not validate whether a sequence forms a recommended emoji or orthographic cluster. Decode errors are explicit, not silent substitutions, and normalization is not applied. Use the tool when the question is which abstract characters a string contains; use a byte converter when the consuming system needs encoded bytes.
Related reading: XOR Encryption Online on iPhone: Send and Recover Text.