Newline Converter
Convert escape sequences like \n and \r\n to actual line breaks, or convert real line breaks back to escape sequences. Perfect for working with JSON strings, code, or converting between line ending formats.
0 characters 0 words 0 lines
Escape Sequences
Line Endings
HTML
About Newline Conversion
Different systems use different characters to represent line breaks. This tool helps you convert between these formats and handle escape sequences commonly found in programming and data files.
Line Ending Types
- Unix/Linux/macOS: Uses LF (\n) - Line Feed character
- Windows: Uses CRLF (\r\n) - Carriage Return + Line Feed
- Old Mac (pre-OS X): Uses CR (\r) - Carriage Return only
- HTML: Uses <br> tags for line breaks in web content