Escape converts raw text into a valid JSON string body: quotes become \", backslashes are doubled, and newlines and tabs become \n and \t. Turn on Wrap in double quotes to get a complete JSON string literal, or Escape non-ASCII to output \uXXXX sequences for systems that only accept ASCII.
Unescape goes the other way. It accepts either a quoted JSON string ("line1\nline2") or just the escaped body, and decodes every standard JSON escape, including \u sequences and surrogate pairs.
This is handy for embedding a SQL query, a PEM key or a multi-line template in a JSON config, or for reading a log line that was escaped twice. Processing happens in your browser.