Whenever JSON has to be embedded inside another JSON document, a URL, a database column or source code, the quotes and backslashes inside it must be escaped first — or the result is invalid. Escape JSON String does that conversion for you: paste plain text and get back a complete, valid JSON string literal with every special character properly escaped.
It is the mirror image of the Unescape JSON String tool. Build a value once, escape it, and drop it into a payload or a config without worrying about broken quotes or raw newlines. Everything runs locally in your browser.