String Escape/Unescape (JS)

Escape strings to JavaScript-safe form (quotes, newlines, control chars) and unescape them back.

How to use

Escape special characters to \n, \", \\ etc., or unescape them back.

Data is processed entirely in your browser; nothing is uploaded to our servers.