CaseWren

JSON Stringify / Unstringify

Escape and unescape JSON string literals instantly.

0 Characters · 0 Words · 0 Lines

About the JSON Stringify / Unstringify

Every developer eventually needs to bury text inside a JSON string: a value in appsettings.json, a secret in an .env file, a payload nested inside another payload. Stringify escapes quotes, backslashes, tabs and newlines and wraps the result in double quotes — exactly what JSON.stringify produces, without opening a console.

Unstringify runs the other way: paste a quoted, escaped JSON string and get the original plain text back. It is the fastest way to read a stack trace, log line or JWT claim that got JSON-escaped somewhere along the pipeline.

How to use it

  1. 1Paste plain text to get the escaped JSON string literal.
  2. 2Or paste a JSON string (with surrounding quotes) to unescape it.
  3. 3Copy the side you need.

Frequently asked questions

Related tools

Search CaseWren tools

Search all 147 tools…