Toolbox

Literal Newlines to Real Lines

换行符转义还原\n文本处理

Restore literal \n and \r\n escape sequences into real line breaks — perfect for log analysis, JSON string preview and escaped text recovery, with instant copy, fully local.

All processing is done locally in your browser. No data is uploaded.

How to Use

  • Paste any valid JSON, supports nesting, arrays and escapes
  • Click Beautify to auto indent and format
  • Click Minify to remove whitespace into one line
  • All operations run locally for privacy

Related Tools

FAQ

What are literal newlines?

They are two ordinary characters backslash-n (common in JSON and logs) rather than real breaks; this tool restores them for readability.

Is \r\n supported?

Yes, all three escapes \r\n, \n and \r are restored to their real line breaks.

Will my data be uploaded?

No, all processing runs locally in your browser.