Unicorn

Unicode Escape Converter

Paste text to get escaped forms in the flavor you need — JavaScript/JSON string escapes, CSS escapes, or HTML character references — and decode any of them back into readable characters.

How to use

Turn characters into \u escapes for JS, JSON, CSS or HTML and back. Your data is processed only inside this browser tab.

FAQ

When do I need this?

When non-ASCII has to survive a place that mangles encodings: source strings, CSS content, config files, JSON payloads.

Does it handle emoji?

Yes. Characters outside the basic plane appear as a surrogate pair, which is what JavaScript string literals expect.

Related tools