HomeString Escape/Unescape

String Escape/Unescape

Multi-rule string escape and unescape tool supporting JSON, JavaScript, Java, HTML, XML, CSV, XSI and custom mappings

JSON rule: escapes backslashes, quotes, slashes, newlines, carriage returns and control characters.


Documentation

About String Escape/Unescape

This tool escapes and unescapes text by selectable rules, including JSON/URL/HTML/SQL and custom mapping modes.

Key Features

  • Rule Selection: Multiple built-in escaping rules.
  • Custom Mapping: CUSTOM_MAP for user-defined mappings.
  • Two-way Processing: Escape and unescape operations.
  • Utility Actions: Copy, swap, sample, and clear.
  • Rule Description: Shows active rule behavior context.

Steps

  1. Choose target rule.
  2. Enter input text.
  3. Run escape or unescape.
  4. Copy output or continue with swap flow.

Use Cases

  • Cross-format text conversion.
  • Safe string handling in code generation.
  • Cleaning logs/config/template text.

FAQ

How should custom map format be written?

Follow the tool prompt mapping format and validate with small samples first.

Why is unescape output unexpected?

Input may mix different escaping rules; ensure consistent rule context before processing.