DEVELOPER · AmpCub developer helper
Escape / Unescape
Escape special characters into safe forms, or unescape back.
Escape or unescape JSON string content and HTML entities. URL encode/decode stays in the dedicated URL tool so the workflows do not overlap.
Local only · text result onlyWork area
Safety and format notes
- HTML unescape never inserts the result into innerHTML and never executes scripts or event handlers.
- JSON unescape expects escaped JSON string content, not a whole JSON document.
- Unknown HTML named entities are left unchanged instead of guessed.
Frequently asked questions
Why does JSON unescape fail?
Usually the outer quotes were included, or an unsupported escape like \x was used.
Are single quotes escaped?
In HTML mode ' becomes '; JSON mode leaves it because JSON uses double quotes.