How to Escape & Unescape Strings
Escape and unescape strings for JSON, HTML, URLs, SQL, regex, and more. Free online tool that handles special characters, Unicode, and encoding conversions.
Open String Escape Tool →Step-by-Step Guide
Paste your string
Enter the text you need to escape or unescape into the input area. The tool handles strings of any length, including multi-line text, code snippets with special characters, and Unicode content from any language.
Choose the escape type
Select the appropriate escape format for your use case — JSON (backslash escaping), HTML (entity encoding), URL (percent encoding), SQL (quote escaping), or regex (metacharacter escaping). Each type follows the official specification for that format.
Click Escape or Unescape
Click Escape to convert special characters into their safe representations, or Unescape to convert escaped sequences back to readable text. The tool processes the entire string instantly and highlights which characters were transformed.
Copy the result
Copy the escaped or unescaped string to your clipboard with one click. The output is ready to paste directly into your code, configuration file, database query, or API request without additional modifications.
Try It Now — Free
No signup, no download. Runs entirely in your browser.
Open String Escape Tool