Unicode escape converter: Encode and Decode Unicode Text
This Unicode escape converter turns Unicode text into escape notation and can also unescape encoded text back into readable characters. It supports \uXXXX, \u{...}, U+XXXX, and &#x...; forms. In classic \uXXXX notation, characters above U+FFFF are represented by two escapes called a surrogate pair; \u{...} represents the same character with one code point.
The Unicode escape converter helps you escape Unicode text or turn escape sequences back into readable characters. Use it when you need a literal representation of text for source code, or when an escaped string is difficult to inspect. It supports \uXXXX, \u{...}, U+XXXX, and &#x...; notation.
The classic \uXXXX form represents a character with four hexadecimal digits. Characters above U+FFFF need two \uXXXX escapes, known as a surrogate pair. The modern \u{...} form represents any character with a single code point. Paste or drop your text, choose Escape or Unescape, and copy the result when it is ready.
Unicode text can include characters from across writing systems and symbols, while escape notation represents characters using a textual sequence. Converting between them can help when a destination needs a literal escape sequence or when you want to read the actual characters in encoded text. The tool also supports U+XXXX and &#x...; forms.
Unicode Escape runs entirely in your browser: your input is processed on your device and is not uploaded, stored, or sent to a server. Once the page has loaded, it works offline without a server connection. It is useful for developers and DevOps engineers preparing string literals, reviewing encoded text, or working with Unicode representations.
Step 1: Paste or drop your Unicode text into the tool. You can start with ordinary characters or text that already contains escape sequences.
Step 2: Choose whether to escape or unescape the text. Escaping converts characters to escape notation, while unescaping turns supported notation back into characters.
Step 3: Review the result. Characters above U+FFFF use two escapes in the classic \uXXXX form, while the modern \u{...} form uses one code point.
Step 4: Copy the converted text for use in your source code or another document.
Use case: Prepare a Unicode string for pasting into source code. Escaping can make characters explicit in contexts where you need a literal representation.
Use case: Decode a densely escaped string to make its text easier to read. Unescaping converts the notation back into real characters.
Use case: Represent characters above U+FFFF using classic \uXXXX notation. The converter handles these characters as surrogate pairs.
Use case: Use the modern \u{...} form to represent a character above U+FFFF with a single code point.
Use case: Convert text to U+XXXX or &#x...; notation when you need those Unicode representations in a document or workflow.
Use case: Inspect escaped text while debugging code or reviewing a string copied from another source. Converting it back to characters can make its contents easier to understand.