Escape and Unescape a String (JSON, JS, HTML)
Escape a string for JSON, JavaScript, shell or HTML without quote errors.
🔒 100% client-side — no data sent
Escape or unescape a string for JSON, JavaScript, shell or HTML in an instant. Avoid quote, newline and reserved-character errors in your code. Everything runs in your browser, so no data leaves your machine.
What is it for?
- ▸ Paste multiline text into a valid JSON string
- ▸ Escape quotes for a shell command
- ▸ Convert reserved characters into HTML entities
- ▸ Unescape a JSON value to read it clearly
FAQ
Which escape formats are supported?
JSON, JavaScript, shell and HTML, each with its own special-character rules.
What is the difference between escaping for JSON and for HTML?
JSON escapes quotes and newlines with backslashes, while HTML replaces characters with entities like < or &.
Does the tool work offline?
Yes, all processing is local and requires no data upload.
Related tools
HTML → JSX Convert HTML into React JSX (class → className, camelCase attributes, style object, comments). JSON · format / validate Format, indent, minify and validate JSON. 100% client-side. JSON · minify Minify JSON (strip whitespace and line breaks) to reduce its size. JSON → JSDoc Generate JSDoc typedefs (@typedef) from JSON, to document and type your JS code. JSON → TypeScript Generate a TypeScript interface from a JSON object, including nested types. JSON · validator Check whether your JSON is valid and pinpoint the first error precisely.