Skip to content
empinet.dev
JSON

JSON Escape

Escape quotes, backslashes, line breaks, tabs, and control characters for safe use inside a JSON string. Everything runs locally in your browser.

Escape workspace

Escape a JSON document or other text for placement between JSON string quotes.

JSON or text
Escaped string
Input characters
98
Output characters
114

Your text stays on this device.

What JSON escaping changes

JSON strings use backslash sequences for characters that would otherwise break the string syntax. This tool converts quotes, backslashes, newlines, tabs, carriage returns, and other control characters into valid escaped content.

Ready to place between quotes

The result intentionally omits the surrounding quotation marks. Paste it between a JSON string's opening and closing quotes, or use JSON Unescape to restore the original text.

JSON Escape FAQ

Does this escape Unicode characters?

Readable Unicode text such as accented letters and emoji remains unchanged because JSON supports it directly. Characters required by JSON syntax are escaped.

Is this the same as URL encoding?

No. JSON escaping protects string syntax with backslashes. URL encoding represents characters for use in URLs with percent-encoded bytes.