Input
Output
About JSON MultiLine String

Handle multiline strings in JSON by converting between escaped and unescaped formats. JSON doesn't support literal newlines, so they must be escaped as \n.

Conversion Modes:
  • Escape Newlines: Convert multi-line text to JSON-compatible string with \n escape sequences
  • Unescape Newlines: Convert JSON string with \n back to readable multi-line text
Common Use Cases:
  • Preparing multi-line text for JSON APIs
  • Converting JSON strings to readable format
  • Handling code snippets in JSON
  • Processing configuration files with multi-line values