Turn raw text into a valid JSON string literal with native JSON.stringify(), including the surrounding quotes and required escapes.
Last updated: August 2026 | By Workshelve Team
The JSON string literal will appear here...
Input chars
0
Output chars
0
Escapes added
0
The output includes enclosing double quotes because that is what a JSON string value actually looks like on the wire.
Use it when you need to safely drop user text into a JSON body, fixture, or config snippet without hand-escaping 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.