Unicode Escape
FAQ
What does this Unicode, HTML, and CSS escape tool do?
This tool converts text between multiple encoding and escape formats and lets you decode them back to readable text. It supports five commonly used formats:
- Unicode escape sequences
- HTML hexadecimal entities
- HTML decimal entities
- HTML named entities
- CSS escape sequences
It is useful for web development, debugging, text processing, and understanding how characters are represented in different contexts.
What is a Unicode escape sequence?
A Unicode escape sequence represents a character using its Unicode code point. Examples:
- \u0041 → A
- \u4E2D → 中
- \u{1F600} → 😀
Unicode escapes are commonly used in JavaScript, JSON, source code, and other programming environments.
What are HTML hexadecimal entities?
HTML hexadecimal entities represent characters using hexadecimal numbers. Examples:
- A → A
- 中 → 中
They are often used in HTML documents to safely display characters and avoid conflicts with markup syntax.
What are HTML decimal entities?
HTML decimal entities represent characters using decimal numbers. Examples:
- A → A
- 中 → 中
Like hexadecimal entities, they allow characters to be displayed safely in HTML and are commonly used in web development.
What are HTML named entities?
HTML named entities use predefined names instead of numeric values. Examples:
- < → <
- > → >
- & → &
- → non-breaking space
Named entities are easier to read and are widely used when writing HTML content.
What are CSS escape sequences?
CSS escape sequences allow special characters to be represented safely inside CSS selectors and styles. Examples:
- \41 → A
- \4F60 → 你
CSS escapes are useful when working with special characters, Unicode text, or identifiers that would otherwise require escaping.
How are these formats related?
All supported formats ultimately represent the same underlying Unicode characters. The conversion process works by mapping characters to their Unicode code points and then expressing those code points in different formats such as HTML entities or CSS escapes. Although the representations look different, they all encode the same text.
How do I use this tool?
Enter your text, choose a format, and click Escape or Unescape. For example, the same character can be represented in multiple ways:
- A → \u0041 → A → A → \41
- 中 → \u4E2D → 中 → 中 → \4E2D
The tool can convert between these formats and decode them back to plain text.
Is my data uploaded to a server?
No. All conversions are performed locally in your browser. Your input is not uploaded, stored, or processed on a server, making the tool safe for development work and sensitive text.