IQ
PayloadIQ
PayloadIQ Utilities

JSON Escape / Unescape

Escape a string so it is safe to embed inside JSON, or unescape a JSON string literal.

Result appears here.

Runs in your browser. Your input is not uploaded to PayloadIQ.

Escape takes any string and produces the exact inner content of a JSON string literal: double quotes become \", backslashes become \\, and control characters such as newlines and tabs turn into \n and \t. Paste the result between two double quotes and it is valid JSON. Unescape does the reverse — it reads a JSON string literal (without the surrounding quotes) and gives you back the raw text it represents, including any \uXXXX unicode escapes.

Tip: do not paste the wrapping quotes yourself. Escape returns the inner content only, and Unescape adds the quotes for you, so a value like he said "hi" round-trips cleanly. If Unescape reports an error, your input usually contains an unescaped quote or a dangling backslash — fix that one character and try again.

Related utilities

JSON Formatter / ValidatorBase64 Encode / DecodeURL Encode / DecodeHTML Entity Encode / Decode
Open PayloadIQ Playground