文字与文档工具

文本转Unicode

提供文本转Unicode的交互处理。

优先本地处理无需注册隐私说明 ↗

Text mode accepts up to 100,000 UTF-16 characters. Decode mode accepts U+ values separated by spaces, commas, or semicolons.

使用步骤

如何使用

  1. Choose Text to code points or Code points to text and enter up to 100,000 characters.
  2. Select uppercase or lowercase hexadecimal output, then convert the input locally.
  3. Review the exact sequence, copy it, or download a text file.

Code points are different from UTF-16 units

Encoding iterates Unicode code points and emits U+ followed by at least four hexadecimal digits. Supplementary characters such as emoji stay together as one code point. Combining marks and joined emoji remain separate code points because this page does not guess at displayed grapheme clusters.

Strict, readable decoding

Decoding accepts U+XXXX through U+10FFFF tokens separated by whitespace, commas, or semicolons. Values in the surrogate range, noncharacters, and values above U+10FFFF are rejected instead of creating invalid text. Conversion, copying, and downloads happen locally in your browser.

常见问题

你可能还想知道

Why is an emoji one code point here?

Unicode code point mode reads the scalar value represented by the emoji, such as U+1F44B. This differs from JavaScript UTF-16 escape mode, where the same character uses two surrogate units.

Can I use lowercase hex digits?

Yes. Choose lowercase output to produce values such as U+1f44b; the U+ prefix remains uppercase for easy recognition.

What separators can decoding use?

Use spaces, commas, or semicolons between U+ values. Every token must be a complete hexadecimal code point, and malformed or out-of-range values are reported.