Online Unicode escape encode & decode

Convert text to \uXXXX escapes and back.

About online online Unicode escape encode and decode

hidevtool Unicode escape codec turns characters into JSON-style `\uXXXX` sequences and decodes them back—including surrogate pairs for emoji.

Useful when reading escaped JSON logs, generating test fixtures, or comparing escaped API payloads.

Online Unicode escape encode & decode capabilities

Encode to \u escapes

Non-ASCII code points become \uXXXX (with surrogate pairs for supplementary characters). ASCII stays literal.

Decode escapes

Decode walks \u sequences in the pasted text and replaces them with the corresponding Unicode characters.

Common use cases

How do I convert Chinese text to \u escapes?

Paste the text and click Encode. Each non-ASCII character becomes a \uXXXX sequence like JSON string literals.

How do I decode \uXXXX back to readable text?

Paste escaped text and click Decode. Surrogate pairs such as emoji decode correctly when sequences are valid.

Does encode wrap the result in JSON quotes?

No—output is the escape sequence string only. Add quotes yourself if you need a JSON string literal.

Frequently asked questions

How do I convert Chinese text to \u escapes?
Paste the text and click Encode. Each non-ASCII character becomes a \uXXXX sequence like JSON string literals.
How do I decode \uXXXX back to readable text?
Paste escaped text and click Decode. Surrogate pairs such as emoji decode correctly when sequences are valid.
Does encode wrap the result in JSON quotes?
No—output is the escape sequence string only. Add quotes yourself if you need a JSON string literal.