Unicode & HTML entity converter
Convert text to and from HTML entities, CSS escapes, JS \u literals, and UTF-8 hex bytes.
Enable JavaScript to use the interactive tool.
Bulk encoding and decoding without sending data to a server
When preparing localization files, debugging garbled UTF-8 responses, or escaping strings for legacy HTML emails and CSS pseudo-elements, converting characters one by one is slow and error-prone. This converter transforms entire phrases instantaneously inside your browser—both encoding plain text into 7 developer formats and decoding mixed HTML entities, JavaScript \uXXXX escapes, URL percent-encoding, and U+XXXX code-point lists back into readable text.
Supported conversion formats
| Format | Example Output (for ∞) | Primary Use |
|---|---|---|
| HTML Hex / Decimal | ∞ / ∞ | HTML templates, email clients, XML |
| JavaScript / JSON | \u221E (or \u{1F680}) | ASCII-safe JS/TS source strings and JSON fixtures |
| CSS Escape | \221E | CSS ::before / ::after content properties |
| UTF-8 Hex Bytes | 0xE2 0x88 0x9E | Debugging binary payloads, databases, and wire protocols |
| URL Percent-Encoded | %E2%88%9E | Query strings, API parameters, and HTTP paths |
Frequently asked questions
Can I decode mixed strings containing both HTML entities and \uXXXX escapes?
Yes! Switch the Mode selector to Decode and paste any combination of HTML entities, \uXXXX / \u{XXXXX} escapes, or percent-encoded UTF-8.