HomeToolboxUnicode Converter

Unicode Converter

Convert text to Unicode escape sequences (\uXXXX) and HTML character entities, and vice versa.

Easily convert plain text into Unicode escape characters and back. Supports multiple formats such as \uXXXX (standard JS/Java/CSS strings), &#xXXXX; (HTML Hex Entities), and &#XXXX; (HTML Dec Entities) with bidirectional live updates.

How to use

  1. 1Enter normal text or Unicode code snippets in the input box
  2. 2Choose escape formats: Unicode (\u), HTML Hex (&#x), or HTML Dec (&#)
  3. 3Click 'Encode' or 'Decode' to run the operation
  4. 4Copy the converted text sequence to your clipboard
正在载入 Unicode 编解码引擎...

FAQ

Are \uXXXX and \u{XXXXXX} both supported?
Yes. Convert BMP \uXXXX escapes and braced ES6 form for supplementary characters such as some emoji, in both directions.
HTML entities vs Unicode escapes?
Entities like & or 中 belong in markup; \u escapes appear in JS/JSON source. This tool converts between text, \u, and entities.
Is output safe to paste into JSON strings?
Remember JSON requires backslashes to be escaped again. Match the escape level to your target format (JSON, JS, HTML).