Unicode Escape Converter

Escape non-ASCII characters into a portable \uXXXX form, or unescape sequences back into readable text. Handy when embedding unicode in config files, JSON, or code.

Formula
character → \uXXXX (4 hex digits) · code points above U+FFFF use a surrogate pair

FAQ

Which escape form is produced?
Each character becomes \u followed by its 4-digit hex code; characters beyond the BMP are split into a high/low surrogate pair.

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. About MateCalc.

Related Calculators