JSON String Escape / Unescape
Turn text into a safe JSON string (\n, \", \\) or turn an escaped string back into normal text.
Tool inputs stay in your browser · optional AI search sends your query
Good to know: Escaping adds a backslash before quotes and turns line breaks into \n, so text can sit inside a JSON value.
How to use it (step by step)
- 1Type or paste your text into the “Text” box. There is already an example in it so you can see how it works; press Clear to start with your own.
- 2Choose your settings: “Direction”, “Wrap in quotes”.
- 3The answer appears right away in the “Result” box. No button needed.
- 4Press Copy and paste the result wherever you need it.
Words to know
- JSON
- A common text format apps use to store and send data, made of names and values in { } brackets.
- Escape / unescape
- Adding a backslash or code before special characters (like quotes) so they do not break your code. Unescape turns them back.
More in Developer
IPv4 Subnet & CIDR Netmask CalculatorCalculate network address, broadcast, and usable host count from CIDR.SQL String Escape & Sanitize FormatterEscape single quotes and special characters for SQL insert and update statements.CSS Glassmorphism Code GeneratorGenerate modern frosted glass CSS with backdrop-filter properties.CSV to Markdown Table GeneratorConvert comma-separated data into GitHub Flavored Markdown table format.GraphQL Query Formatter & PrettifierFormat and indent nested GraphQL queries, mutations, and fragments.CORS Response Header GeneratorGenerate Access-Control headers for Express, Nginx, and Apache.