Unicode Converter
Convert text to and from Unicode escapes — JavaScript, Python, CSS, HTML entities, UTF-8/16.
Processed locally in your browser. Nothing you enter is uploaded or stored.
- Shows every character's code point, so you can identify an invisible or look-alike character.
- Six output formats covering the escape syntax each language/context actually uses — not just one.
- Converts both ways — text to escapes, escapes to text — for whichever format you pick.
- Runs in your browser.
Why this is private
- Processed locally in your browser. Nothing you enter is uploaded or stored.
- Open your browser's DevTools → Network tab while using this tool — you won't see a request carrying your input, because it never leaves your device.
- Nothing you enter is uploaded to a server or shared with us — the processing happens entirely on your device.
Overview
Converts text to a Unicode escape representation — JavaScript (\u{XXXX}), Python (\UXXXXXXXX), CSS (\XXXX), HTML numeric entities (&#xXXXX;), raw UTF-8 bytes, or UTF-16 code units — or decodes any of those back into text, with each character's code point shown.
How to use it
- 1Choose a direction and a format.
- 2Paste text or escape sequences.
- 3The conversion happens instantly, with each character's code point listed below (encode mode).
Frequently asked questions
What people use it for
Track down a mystery characterPaste a string that won't match and see if there's a zero-width space or non-breaking space in it.
Escape non-ASCII for a specific language or formatConvert accented letters or emoji to the exact escape syntax Python, CSS or HTML actually expects — not a generic one that needs manual adjusting.
Decode HTML numeric entities from an email or CMS exportTurn `😀`-style entities back into the real characters to read them.
Inspect a character's raw UTF-8 bytesSee exactly how many bytes a character takes and what they are, for protocol or encoding debugging.
Check a homoglyphConfirm whether a letter is Latin or a look-alike from another script by its code point.
Related guides
- How to read JSON with a tree viewerA tree viewer turns a wall of brackets into a structure you can expand, search and copy paths from. Here's how to use one effectively.
- JSON parse errors explained: 'Unexpected token', 'Expected comma or brace', and the restWhat each common JSON error message actually means, the usual cause, and how to find the spot fast using line and column.
- How to format JSON (and actually understand the errors)JSON looks like a JavaScript object but follows stricter rules. Here's what those rules are and how to read the errors when they're broken.
Related tools
All developer toolsBase64 EncoderEncode text to standard or URL-safe Base64.URL EncoderPercent-encode text for safe use in URLs, with a component vs. full-URL mode.HTML Entity EncoderEscape special characters into HTML entities — XML-safe, extended named, decimal or hex.JSON Viewer & FormatterView, format, validate, edit and beautify JSON with an interactive tree view, plus a shareable link.
Ready to use Unicode Converter?
Unicode Converter