Skip to content
UniKit

Unicode/ASCII converter

Unicode/ASCII converter with local processing and strict input validation.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Text

Result

The result was generated locally.

Enter text to process

What this tool does

  • Decode mode turns escapes such as \u4f60\u597d, \u{1f600} and \U0001f600 back into real characters: \u4f60\u597d\u{1f600} becomes 你好😀.
  • Encode mode does the reverse: BMP characters such as Chinese become a 4-digit \uXXXX escape, while astral characters such as emoji become a single code-point escape \u{1f600}.
  • The encoded result pastes straight back into decode mode (the two are exact inverses), and a surrogate pair written as two \uXXXX escapes such as \ud83d\ude00 also decodes to 😀.

Example

Input

\u4f60\u597d\u{1f600}

Output

你好😀

The example uses the default decode mode: 4-digit escapes and \u{...} code-point escapes can be mixed, and the emoji becomes one character.

Frequently asked questions

Is empty input supported?

Yes, it returns an empty result.

How is invalid input handled?

It returns an explicit invalid-input error; a truncated escape such as \u12 is never guessed at.

What is the difference between encode and decode?

Decode restores characters from \uXXXX, \u{...} and \UXXXXXXXX escapes (surrogate pairs are recombined), while encode writes every character as an escape; the two are exact inverses, emoji included.

Keywords:Unicode/ASCII converteru2atext encodinglocal tool

Related tools