🔧 OnlineToolKit

Unicode Escape / Unescape Tool

Convert text to \uXXXX Unicode escapes and back. Free tool for developers working with JSON, JavaScript and Java source files.

Escape converts every non-ASCII character to its \uXXXX code point (or surrogate pair).

Frequently asked questions

What does escaping do?
It replaces every non-ASCII character with a \uXXXX sequence that any programming language can read, even in ASCII-only files.
How are emoji handled?
Characters outside the Basic Multilingual Plane become a surrogate pair, two \uXXXX sequences, which is how JSON and JavaScript represent them.
Can I unescape as well?
Yes, the Unescape button converts \uXXXX sequences back to readable text.
Does it work with other languages?
The \uXXXX format is shared by JavaScript, Java, JSON, CSS and Python string literals.

This tool runs entirely in your browser. No data is uploaded anywhere.