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.