Escape JSON text for embedding or unescape it for reading.
ReadyRuns in your browser
INPUT & CONTROLS
Prepare your input
Local processing
Runs locally in your browser. Input is not sent to DevEngineerLab.
Escape produces a complete JSON string literal, including its surrounding double quotes. Unescape accepts one complete JSON string literal and decodes it exactly once; JSON surrounding whitespace is allowed. Objects, arrays, numbers, booleans and null are rejected. Empty raw text → ""; "" → empty raw text. JavaScript escape syntax and code are never evaluated. Unicode, emoji and escaped lone UTF-16 surrogates roundtrip. Limits: 262,144 input and 2,097,152 output UTF-16 code units.
Result
Your result starts here
Review the input and selected options, then use the primary action. Output and any validation messages will appear here.
METHOD & CONTEXT
Understand the result before using it.
How it works
Escapes raw text as a complete JSON string literal, or decodes one complete JSON string literal exactly once.
Interpretation
Read the result summary first, then inspect the detailed output and any errors or warnings. The result describes the supplied input and selected options. Changing input requires another run.
Assumptions & warnings
Unescape requires a JSON string literal, including its double quotes. JavaScript code and escape syntax are never evaluated.
Inputs are processed in your browser. Follow the input format and size limits shown next to the controls.
Try an example
Select Load example in the input panel, review the selected mode, then use its displayed primary action. Inspect the result before replacing the sample with your own input.