Newline Tests
Free text files with LF (Unix), CRLF (Windows), CR (classic Mac) and mixed line endings, for testing conversion and cross-platform compatibility.
A text file using LF (Unix)
lf.txt / 704 B
A text file using CRLF (Windows)
crlf.txt / 714 B
A text file using CR (classic Mac)
cr.txt / 704 B
A text file using Mixed newline conventions
mixed.txt / 708 B
Why line-ending tests matter
Line endings differ across OSes: Unix/Linux/macOS use LF (n), Windows uses CRLF (rn), and Classic Mac OS used CR (r).
Use these to verify line-ending handling in version control (Git), text-processing tools, and programming languages.