Line Ending Converter
Detect and convert line endings between CRLF (Windows), LF (Unix/Mac), and CR (old Mac).
Convert to:
Detected:
CRLFLine endings: 3Characters: 61What are line endings?
Different operating systems use different characters to mark the end of a line. Windows uses CRLF (Carriage Return + Line Feed, \r\n), Unix/Linux/macOS use LF (\n), and classic Mac OS (pre-OS X) used CR (\r). Mismatched line endings can cause issues with text editors, version control (git), shell scripts, and configuration files. This tool detects the current format and converts to your chosen target.
Private & free — this tool runs entirely in your browser.
Related Text Tools tools
Case Converter
Convert between Sentence, Title, camelCase, snake_case, and more.
Word Counter
Count words, characters, and analyze keyword density.
Text to Binary
Convert text into its 8-bit binary representation.
Binary to Text
Decode 8-bit binary back into readable text.
Text Reverser
Reverse text by characters, words, or lines.
Remove Duplicate Lines
Delete repeated lines and keep your list unique.
Remove Empty Lines
Strip blank and whitespace-only lines from text.
Sort Lines Alphabetically
Sort lines A–Z or Z–A, case-sensitive or not.