★

JSON Escape / Stringify

Escape text so it can be placed safely inside a JSON string (quotes, backslashes, new lines and tabs).

Updated · Free · No sign-up

Send on WhatsApp

How to use the JSON Escape / Stringify

Type or paste your text into the first box. The result appears immediately in the second box, ready to copy or download. Replace the sample text with your own.

Worked example

Input:

He said "hello"
Path: C:\files\new

Output:

"He said \"hello\"\nPath: C:\\files\\new"

Frequently asked questions

What does the JSON Escape / Stringify do?

Escape text so it can be placed safely inside a JSON string (quotes, backslashes, new lines and tabs).

Is the JSON Escape / Stringify free to use?

Yes. It is free, needs no sign-up and works on phones, tablets and computers. Everything is calculated in your browser, so what you enter is not sent to or stored on a server.

Related online tools