JSON escaping adds backslash characters before special characters (quotes, newlines, tabs) so the string can be safely embedded in JSON or code. Unescaping reverses this β removing the backslashes to restore the original string.
Use Escape to prepare a string for embedding in JSON. Use Unescape to recover the original text from an escaped JSON string. All processing is browser-based β your data stays private.
When you need to embed a JSON string inside another JSON string, or when storing JSON in environments that require string escaping (HTML attributes, JavaScript template literals, etc.).
Double quotes ("), backslashes (\), newlines, tabs, and other control characters. The escaped output is safe to use as a JSON string value.