Escape/Unescape
Escape or unescape strings for different contexts. All in your browser.
What is this tool?
How do I escape a string for JSON? Escape or unescape strings for JSON, HTML, URL, or regex. Prevents injection and ensures correct encoding. Handy when building queries or APIs.