Unicode character inspector and code-point converter
Inspect Unicode code points or convert text to and from U+ hexadecimal tokens locally.
How it works
Inspect code points rather than visual characters, or convert between text and U+ hexadecimal notation. Combining marks and emoji sequences may contain several code points. Inspection displays the first 200 code points; conversion includes the entire valid input.
Copy Unicode code-point summary
Use Copy Unicode code-point summary in Inspect, Text to code points or Code points to text mode to copy the displayed count as tab-separated Metric and Value columns. For example, Aé😀 corresponds to U+0041 U+00E9 U+1F600 and counts as 3 code points in all three modes. Inspect counts the entire valid text, not just the preview. Encode counts the source text, not the generated token string. Decode counts the decoded text. Empty valid text has a count of zero. The summary does not include your text or tokens.
Code-point conversion examples
- Aé
U+0041 U+00E9- 😀
U+1F600- Decomposed é
U+0065 U+0301
Code-point positions and UTF-16 offsets
In Inspect mode, enable Show position details to display one-based code-point positions and zero-based UTF-16 starting offsets. For A😀é, the positions are 1, 2, 3 and offsets are 0, 1, 3 because the emoji occupies two UTF-16 units. For éB, the combining mark has its own position and offset even though it joins the preceding letter visually. These are not grapheme positions or UTF-8 byte offsets. The first 200 code points are shown; the total still includes the entire valid input. Positions refer to the text as represented in the browser field, which normalizes line endings.
Accepted input
Use U+ followed by four to six hexadecimal digits per token, separated by ASCII spaces, tabs or line breaks. Lowercase hex and u+ are accepted; the encoder emits uppercase hex padded to at least four digits. Commas, bare hex, byte sequences and surrogate halves are rejected. Unicode scalar values range from U+0000 to U+10FFFF excluding U+D800–U+DFFF. No normalization or byte encoding takes place.
Text is limited to 4,000 UTF-16 units; token input is limited to 36,000 units and decoded text to 4,000 units. Control characters, private-use values, noncharacters and unassigned scalar values are retained, but may not render or interchange reliably. In particular, noncharacters have no public character meaning. Text fields may normalize carriage returns; the copy button uses the exact conversion result, but clipboard support for CR and NUL depends on the browser. Use the token representation for lossless interchange of such sequences.
Related: Unicode normalization · UTF-8 byte converter · Base64 encoder and decoder · Unicode scalar values (Chapter 3) · Unicode noncharacters and private use.
Related: URL encoder and decoder.