JSON String Escape
Add \n, \", \\ correctly so a multi-line piece of text can be placed inside a JSON string.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Use this when you need to put a multi-line paragraph, message template, prompt or HTML snippet into a JSON string value, API body or environment variable without breaking the syntax.
The result has no surrounding quotes; it is just the inner part to paste between "...". Vietnamese letters stay as they are because JSON accepts UTF-8; only double quotes, backslashes, line breaks and tabs are escaped.
How to use
- Paste text.
- The escaped string appears instantly.
- Click Copy or Download.
Frequently asked questions
Is the data I paste sent to a server?
No. The tool runs in JavaScript right in your browser, and Takikit has no server that receives data. You can turn off your internet after opening the page and the tool will still work.
Related tools
More Developer tools
Morse Code TranslatorConvert text to Morse dots and dashes and translate Morse back to text. Accented letters have their diacritics removed first.Base64 EncoderConvert text, including Vietnamese with diacritics, to standard or URL-safe Base64.ROT13 Encoder and DecoderShift every letter by 13 places. Do it again to get the original text, often used to hide answers and spoilers.Base64 DecodeConvert a Base64 string back to the original text. It also handles URL-safe Base64, missing = padding and data URIs.Base32 Encoder and DecoderConvert text to and from standard RFC 4648 Base32, a code often seen in two-factor authentication keys.File to Base64Turn an image, font or any file into a Base64 string, data URI, CSS snippet or HTML tag that you can embed straight into code.
See all developer tools