Input
Paste text, pick a conversion mode.
Output
Result appears here.
Escape and unescape text for JavaScript strings, HTML entities and URLs. Paste code or text, pick a mode, and convert instantly.
Paste text, pick a conversion mode.
Result appears here.
Special characters break out of their context: a quote ends a JavaScript string, < starts an HTML tag, and a space is illegal in a URL. Escaping rewrites those characters into safe sequences, like \n, < or %20, so the text survives the trip intact. Unescaping reverses the process.
Use JavaScript escaping when embedding text inside code strings, HTML encoding when injecting user content into a page (it prevents broken markup and XSS), and URL encoding for query parameters and path segments. Picking the wrong one is a classic bug, so the mode selector keeps them clearly separated.