String Escape/Unescape
Free online tool to escape and unescape strings for 7 languages: JavaScript, Python, Java, Go, PHP, SQL, and HTML. Convert special characters into \n, \t and similar, or restore them.
Embed
What is String Escape/Unescape?
Free online tool to escape and unescape strings for 7 languages: JavaScript, Python, Java, Go, PHP, SQL, and HTML. Convert special characters into \n, \t and similar, or restore them.
How to Use
- 1Select language and direction— Choose the language and direction (escape/unescape).
- 2Enter string— Enter the string to convert.
- 3Copy result— Copy the converted result.
Related Tools
Frequently Asked Questions
Seven languages: JavaScript, Python, Java, Go, PHP, SQL, and HTML.
Escape converts special characters to safe representations (\n, \t, etc.), while unescape restores them to the original characters.
Yes, using JavaScript mode provides JSON-compatible escaping.
Use it for reference only. For actual security, use Prepared Statements.
No.