Escaping runs entirely in your browser — nothing is uploaded.
Escape and unescape strings for JSON, JS, CSV, SQL and HTML, free. Escaping replaces characters that have special meaning in a format (quotes, backslashes, newlines, angle brackets) with safe sequences so a string can be embedded without breaking the surrounding syntax. This tool escapes and unescapes text for JSON, JavaScript, CSV, SQL and HTML — entirely in your browser.
It converts raw text into a safely escaped literal (or reverses it) for whichever target syntax you pick, so embedded quotes and newlines don't break your code or data. 100% free, no registration, and complete privacy — everything runs locally in your browser, so your data never touches a server.
Go both ways — turn raw text into an escaped literal, or decode an escaped string back to plain text.
Pick the right rules for JSON, JavaScript, CSV, SQL or HTML so the output is valid in that context.
Escaping runs locally in your browser; nothing you paste is uploaded or stored.
Unlimited use with no account, on desktop and mobile.
It replaces characters that would break the surrounding syntax — like quotes, backslashes, and newlines — with safe escape sequences (e.g. \" or \n) so the text can be embedded as a literal without errors.
Pick the format the string will live in: JSON/JavaScript for code literals, CSV for spreadsheet fields, SQL for query values, and HTML to convert characters like < and & into entities.
Escaping helps, but it is not a substitute for parameterized queries (SQL) or proper output encoding/sanitization (HTML). Use this tool for one-off escaping, and use safe APIs in production code.
No. All escaping and unescaping happens in your browser; nothing you paste leaves your device.
Yes. The tool unescapes too — paste an escaped string and choose unescape to recover the original raw text.