Unicode Encode / Decode
Convert text to and from Unicode escape sequences.
Use on any page (bookmarklet)
Want Unicode Encode / Decode without leaving the page you're on? Drag the button below to your bookmarks bar, then click it on any website to open Unicode Encode / Decode right there — it runs entirely in your browser.
Use responsibly: a bookmarklet runs on whatever page you click it on. Avoid sensitive sites such as online banking, payment, or healthcare pages — you run it at your own risk. Everything is processed locally and no data is sent anywhere. See our Terms.
- Show your bookmarks bar if it's hidden — Ctrl+Shift+B (⌘+Shift+B on Mac).
- Drag the button above onto the bookmarks bar.
- Open any website and click the bookmark — the Unicode Encode / Decode panel appears in the top-right corner. Use ✛ to move it between corners, or ›/‹ to tuck it against the edge and pull it back out.
- Click the bookmark again (or the ✕) to close it.
Note: a few sites with strict security policies may block bookmarklets.
Examples
Encode to \u escapes
Input
Hi 世界
Output
\u0048\u0069\u0020\u4e16\u754c
Decode code points
Input
U+1F44B U+0041
Output
👋 A
About this tool
This free online Unicode converter turns text into escape sequences and back. Pick JavaScript \uXXXX, code-point U+XXXX, or HTML &#xXXXX; output when encoding, and decode any of those formats — including \u{...} and decimal entities — back to plain text. Emoji and other astral characters are handled correctly. Everything runs in your browser with no upload.
How to use
- Choose Encode or Decode.
- When encoding, pick the output format.
- Type or paste your text (or click Sample to try it).
- Copy the result, or use Swap to convert it back.
Common uses
Embedding non-Latin text in source code, debugging encoding problems, inspecting invisible or look-alike characters, and preparing strings for JSON, CSS content, or HTML.
Frequently asked questions
What does this Unicode converter do?
It converts text into Unicode escape sequences and back. Encode 'A' to \u0041, U+0041, or A, and decode any of those forms back to readable text.
Is it free?
Yes — it's a completely free online Unicode encoder and decoder with no sign-up and no limits.
Which formats are supported?
Encoding offers JavaScript \uXXXX, code-point U+XXXX, and HTML &#xXXXX; output. Decoding accepts all of those plus \u{...} and decimal &#NNN; entities.
Does it handle emoji and astral characters?
Yes. Characters above U+FFFF, like emoji, are encoded using \u{...} in JavaScript mode and a full code point in U+ mode, and decode back correctly.
Is my text uploaded anywhere?
No. Conversion runs entirely in your browser with no upload, so your text never leaves your device.
Why are escape sequences useful?
They let you embed any character in source code, JSON, or HTML using only ASCII — handy for non-Latin text, invisible characters, and avoiding encoding issues.
Learn more
Related tools