ToolMochi

Unicode Converter

Convert non-ASCII characters such as Chinese and emoji to \u escapes, U+ code points or HTML entities, and back.

Mode
Format
01Input
0
02Output
0
This tool runs entirely in your browser. Your input is never uploaded.

How to use

  1. 1Paste the text to escape, or switch to Decode and paste escape sequences
  2. 2Choose JavaScript, U+ code point or HTML entity output
  3. 3Copy the result as soon as it appears

FAQ

Does it handle emoji?

Yes. Characters above FFFF are written as \u{1F600} in JavaScript format and as 😀 in HTML format.

How do the three formats differ?

JavaScript escapes fit inside string literals; U+ notation is common in documentation and specs; HTML numeric entities can be pasted directly into markup.

Are printable ASCII characters escaped?

No. Letters, digits and common symbols stay unchanged so the output remains readable. Only non-ASCII content such as CJK characters, emoji and control characters is escaped.

Related tools

JSON Formatter & Validator

Format, minify and validate JSON, compare two payloads path by path, and escape or unescape JSON strings.

Cron Expression Parser

Parse crontab expressions into a plain-language schedule and the next 5 run times.

Base64 Encoder & Decoder

Encode text to Base64 or decode it back to UTF-8, with an optional URL-safe alphabet. Everything runs locally.

URL Encoder & Decoder

Percent-encode or decode URLs and query values, with component, full-URL and form modes.