Escape and Unescape Strings for Code
Escape strings for JSON, HTML, URLs, JavaScript, or other contexts — or reverse the process to get the original text back. Handles quotes, backslashes, angle brackets, and special characters.
A time saver when you're building queries, embedding user input safely, or debugging escaped text that's become unreadable. Paste the messy string and get the clean version.
Frequently Asked Questions — String Escape / Unescape
HTML, JSON, URL, XML, JavaScript, and CSV. Each has its own escaping rules.
Yes. Both directions — escape and unescape. Paste escaped text to get the original back.
When embedding user input in HTML, building JSON strings manually, or debugging URL-encoded values.
More Text Tools
Notepad
Simple scratchpad with tabs, auto-save, and word count.
Markdown Editor
Write Markdown with a live HTML preview, toolbar shortcuts, and export options.
Find & Replace
Find and replace text with regex support, case sensitivity, and whole word matching.
Text Case Converter
Convert text between UPPER, lower, Title, camelCase, snake_case, and more.
Word & Character Counter
Count words, characters, sentences, paragraphs, and estimate reading time.
Text Diff
Compare two texts side by side. Highlight differences instantly.
Compare Two Lists
Find common, unique, and missing items between two lists.
Remove Duplicate Lines
Remove duplicate lines, sort, trim whitespace, and clean up text.