Unicodeエスケープ変換

非ASCII文字を移植性の高い\uXXXX形式に変換したり、シーケンスを読みやすいテキストに戻したりできます。設定ファイル、JSON、コードにUnicodeを埋め込むときに便利です。

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

よくある質問

どのエスケープ形式が生成されますか?
各文字は\uと4桁の16進コードに変換され、BMPを超える文字はハイ/ローサロゲートペアに分割されます。

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. 概要 MateCalc.

関連する計算機