Turn raw text into a valid JSON string literal, including the surrounding quotes and required escapes.
The JSON string literal will appear here...
Input chars
0
Output chars
0
Escapes added
0
Even text that looks like a number or boolean stays a string: entering 42 produces "42", and entering true produces "true".
Quotation marks within your text are escaped so they remain part of the string rather than ending it.
This tool encodes raw text into a JSON string value. For full objects and arrays, use the parser or formatter tools instead.
Related Tools
Build and preview Valorant crosshair settings.
Search common Vim commands.
Turn JSON rows into bar, line, or pie charts.
Convert WebP files and Base64 data in both directions.
Convert GIF files into Base64 text or data URLs.
Convert the first GIF frame into a JPG image.