Unicode Converter

Convert text to Unicode escapes

About Unicode Converter

Unicode Converter converts text to and from JavaScript-style \uXXXX escape sequences, entirely in your browser — nothing is uploaded to a server. There's no format selector: it supports exactly one format (4-hex-digit \uXXXX escapes), not UTF-8, UTF-16, UTF-32, HTML entities, or other encodings. Emoji and other characters outside the Basic Multilingual Plane still convert correctly, since they're represented as a pair of \uXXXX surrogate escapes, matching how JavaScript itself stores them.

How to use Unicode Converter

  1. 1Paste text into the input box.
  2. 2Click 'To Unicode' to convert each character to a \uXXXX escape sequence.
  3. 3Or paste \uXXXX escape sequences and click 'From Unicode' to convert them back to text.
  4. 4Click 'Copy' to copy the result.

Frequently Asked Questions

What Unicode formats does this tool support?

Only one: 4-hex-digit \uXXXX escape sequences, the format JavaScript uses in string literals. It doesn't support UTF-8 byte sequences, UTF-32, or HTML entities.

Is it free to use?

Yes, it's completely free with no registration required.

Can I convert emoji?

Yes — emoji and other characters outside the Basic Multilingual Plane convert correctly as a pair of \uXXXX surrogate escapes.

Is my text uploaded to a server?

No, all conversion happens locally in your browser.

Tips & Tricks

  • The \uXXXX format is exactly what you'd paste into a JavaScript string literal to represent that character.
  • When converting from Unicode, make sure each escape uses exactly 4 hex digits (\u0041), since that's the only pattern recognized.
  • For byte-level encodings like UTF-8, use a dedicated encoding tool instead — this converts characters, not bytes.
  • Emoji round-trip correctly, but each will show up as two \uXXXX escapes (a surrogate pair), not one.