Unicode Escape Encoder

Convert non-ASCII chars to \uXXXX escapes.

Tool Text Codecs Updated Apr 20, 2026
How to Use
  1. Type or paste your input on the left.
  2. The result appears live on the right - no buttons needed.
  3. Copy the output with one click.

About this codec

Convert non-ASCII chars to \uXXXX escapes.

About Unicode escape

Unicode escape is characters expressed as \uXXXX escape sequences. This tool lets you encode text into Unicode escape instantly and entirely in your browser. It is commonly used for embedding non-ASCII text safely in source code and JSON.

💡Worked example: éé

Note that an encoding is a reversible representation, not encryption: there is no secret key, and anyone can decode it. Its job is safe, lossless transport of data — not privacy.

How to use it

Type or paste your text into the box and it turns into Unicode escape live as you type — everything runs locally in your browser. Learn more in the Knowledge Base.

Frequently Asked Questions

Does this leave my browser?

No - the conversion runs entirely in JavaScript on this page.

What does Unicode escape look like?

é becomes é. Unicode escape is typically used for embedding non-ASCII text safely in source code and JSON.

Does my text leave my browser?

No. The Unicode escape conversion runs entirely in JavaScript on this page — nothing is uploaded, and it works offline.

Is Unicode escape reversible?

Yes. Unicode escape is a lossless representation, so you can convert back and forth without losing any data.

Common Use Cases

Embedding non-ASCII text safely in source code and JSON

Unicode escape is commonly used for embedding non-ASCII text safely in source code and JSON — produce it here in one step.

Learning & puzzles

See how text maps to Unicode escape — handy for coursework, CTF challenges, and puzzle hunts.

Private by design

Everything runs locally in your browser, so you can paste sensitive text without it leaving your device.

Last updated: