String Escape & Unescape

Choose escape to create a JSON string literal, or unescape to decode one quoted JSON string. Repeat only when you intentionally need another layer.

How to use

Choose escape to create a JSON string literal, or unescape to decode one quoted JSON string. Repeat only when you intentionally need another layer.

Example

"Hello\nworld!"

Notes & limits

Escape wraps text as a JSON string. Unescape removes one layer at a time; actual line breaks and escaped \n are different. Maximum input: 500,000 characters. Syntax highlighting is disabled above 100,000 characters.

All processing takes place in your browser. No account or file uploads are needed.

Explore tools

Languages

Select a timezone

Search by city, country, or standard timezone name.