Skip to content
Input
Text
Unicode
17.0
Runtime
Browser

Escape Unicode scalar values with explicit brace syntax

Produce Tool Swim's explicit \u{HEX} scalar syntax without JSON, URL, HTML, or Java ambiguity.

Local processingNo sign-upNo fetch or upload

Input

Choose whether to escape every scalar or preserve printable ASCII.

Local

Unicode brace escapes

Submit the example or replace it with your own text. The result appears here without a network request.

What this tool proves

Explicit Unicode interpretation

Unicode escape syntaxes differ across languages. This route owns only brace-delimited scalar escapes and always escapes a literal backslash.

One narrow escape grammar avoids language-specific guessing

Unicode escape syntaxes differ across languages. This route owns only brace-delimited scalar escapes and always escapes a literal backslash.

Escape-all mode emits one token per scalar. Non-ASCII mode preserves printable ASCII while escaping controls, backslashes, and every non-ASCII scalar.

Unicode text stays scalar, private, and bounded

Every operation rejects lone UTF-16 surrogates before processing. Inputs are capped at 256 KiB, report operations at 20,000 code points, and output at 1 MiB.

The work starts only after submission and stays in the current browser tab. Tool Swim does not upload text, call the developer API, retain results, or save presets.

Primary references

Questions and answers

Related Unicode tools