🔤 String Escape/Unescape

Escape and unescape strings for JavaScript, HTML, JSON, and more.

Quick Reference

JavaScript Escapes: \n = newline
\t = tab
\\ = backslash
\" = quote
\' = single quote
HTML Entities: &lt; = <
&gt; = >
&amp; = &
&quot; = "
&#39; = '
JSON Escapes: \n \r \t \\ \"
\uXXXX (unicode)