encoding_decoding_unicode
Escape text into Unicode escape sequences or decode them back to characters, supporting JSON, Python, Java, CSS, HTML, XML, and URL formats. Runs locally without external services.
Instructions
Unicode Escaper and Unescaper. Escape text into Unicode escape sequences, or unescape them back to characters, in JSON/JavaScript, Python, Java, CSS, HTML, XML, or URL format. Set operation to escape or unescape and format to the target syntax. Encodes non-ASCII and control characters as backslash-uXXXX (json/java), backslash-uXXXX or backslash-UXXXXXXXX (python), backslash-XXXXXX (css), hex numeric HTML entities, decimal numeric XML entities, or percent-XX UTF-8 bytes (url), handling surrogate pairs and astral code points. Unescape auto-detects and decodes every one of these sequence styles at once, so format only affects escape. Use encoding_decoding_html_entities for named HTML entities, encoding_decoding_punycode for IDN domain names, conversion_emoji to look emoji up by name/codepoint, and encoding_decoding_string_escape for SQL/CSV/JavaScript string quoting. Runs locally on the input you provide: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/minute for anonym
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input to convert: plaintext when escaping, or a string containing Unicode escape sequences when unescaping. Must not be blank. | |
| operation | Yes | Direction: escape converts characters to escape sequences; unescape decodes escape sequences back to characters. | |
| format | No | Target escape syntax used when escaping (unescape auto-detects all styles): json/java use backslash-uXXXX, python adds backslash-UXXXXXXXX for astral, css uses backslash-XXXXXX space-terminated, html uses hex numeric entities, xml uses decimal numeric entities, url uses percent-XX UTF-8 bytes. Defaults to json. | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether the conversion succeeded. | |
| input | No | The submitted text, echoed back. | |
| operation | No | The operation performed (escape or unescape). | |
| format | No | The effective format after defaulting (json when omitted). | |
| result | No | The escaped string (escape) or decoded text (unescape). | |
| format_info | No | Metadata describing the chosen format. | |
| analysis | No | Character and code-point statistics for the input text. |