Loading…
Escape and unescape strings for code and JSON.
Escape a string so it's safe to paste inside JSON or JavaScript source — quotes, backslashes, tabs, and newlines — or unescape it back to plain text.
Runs entirely in your browser — nothing is uploaded.
Double quotes, backslashes, tabs, and newlines are escaped using JSON string rules.
No — this is for code and JSON strings. For HTML, use the HTML entity encoder.