Useful Hacks

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

  1. 1Choose a direction and a format.
  2. 2Paste text or escape sequences.
  3. 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

Related tools

All developer tools

Ready to use Unicode Converter?

Unicode Converter

Search tools

Search for any tool by name, category or keyword