Back to home

String Escape / Unescape

Escape and unescape JSON, JavaScript, HTML and URL strings

Format
Direction
Input
Escaped
The result shows up here

JSON and JavaScript share the same backslash rules; JavaScript also escapes single quotes so the result drops into '…'. HTML only touches & < > " '. URL uses percent-encoding, where a space becomes %20.