Unicode Toolbox

Unicode escape, HTML entity conversion, normalization, and diacritic removal.

Usage

Escape Formats

\uXXXX: the Unicode escape format used by JavaScript/Java/C++; %uXXXX: legacy non-standard URI encoding (e.g. the escape function), no longer recommended; &#xHH;: HTML hexadecimal entity; &#NNN;: HTML decimal entity; HTML Entities: HTML named entities such as <, &, handled by the he library.

Normalization Forms

The same Unicode character may have multiple representations (e.g. é can be U+00E9 or U+0065 U+0301). Normalization unifies them. NFC: canonical composition, typically used for storage and display; NFD: canonical decomposition, splits composite characters into base and combining marks; NFKC/NFKD: compatibility composition/decomposition, merges similar characters (e.g. ⁵ becomes 5, ① becomes 1).

Steps

Escape conversion: 1. Switch to the "Escape" tab at the top; 2. Enter content in the "Raw Text" box to auto-generate five escape formats; 3. You can also enter content in any escape box to decode it back; 4. Click "Copy" to copy the result, or "Clear" to reset. Normalization: 1. Switch to the "Normalization" tab; 2. Enter text in the input box; 3. The four normalization forms are shown automatically along with character length and code points; 4. Click "Remove Diacritics" to strip diacritical marks.

Notes

This tool only handles BMP characters (U+0000 to U+FFFF); characters outside this range (such as some emoji) may render incorrectly. HTML Hex/Dec only escapes non-ASCII characters (code points > 127) and keeps ASCII characters. HTML Entities escapes all special characters (<, >, &, etc.). Normalization results are read-only; modify the original input box to update. Diacritic removal is implemented by NFD normalization followed by filtering the U+0300-U+036f range.