JSON String Converter

Convert strings to JSON-safe format by escaping special characters, or decode escaped strings back to their original form

When do you need this?

When embedding multi-line text, code snippets, or text with special characters into JSON files or API requests, you need to escape characters like newlines, tabs, quotes, and backslashes. This tool handles all JSON string escaping rules automatically.

0 chars
0 chars

JSON Preview

{
  "text": ""
}

JSON Escape Reference

Newline
\n
Tab
\t
Carriage Return
\r
Backslash
\ \\
Double Quote
" \"
Form Feed
\f
Backspace
\b

Conversion Stats

0
Newlines
0
Tabs
0
Quotes
0
Backslashes

All processing happens locally in your browser