String Escape / Unescape
Escape or unescape JSON strings, HTML entities, and backslash sequences, plus a dedicated mode that turns a whole block of code into one safely escaped JSON string for API payloads.
Why the payload mode exists: the most common way to break an API request is pasting raw code (with its quotes, backslashes, and newlines) straight into a JSON body. "Code to JSON payload" runs your text through a real JSON serializer so every quote, newline, tab, and Unicode character is escaped correctly - perfect for stuffing source code or long prompts into an LLM API request body without hand-fixing quotes. Everything runs locally in your browser.