TXT · Text & Data tools

CRLF to LF Converter

Input
Output
1filters active1output lines0output chars
Go to full Text Cleaner

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Convert CRLF to LF

Paste text copied from a Windows file and copy the LF-normalized result. The conversion replaces each \r\n pair with \n and also converts lone \r characters.

Line content stays intact

Only newline characters are rewritten. Indentation, blank lines, punctuation, and the text between line breaks are preserved.

This is useful before committing shell scripts, configuration files, or source files to a repository that expects Unix line endings.

Mixed line endings

A document can contain CRLF, LF, and lone CR characters at the same time, especially after text is assembled from several systems. The output uses LF consistently throughout the document.

Frequently Asked Questions

Every CRLF pair and lone carriage return becomes an LF line feed. Existing LF line endings remain unchanged.

No. Only the line-ending characters change; spaces, punctuation, and visible text stay in place.

Windows commonly writes CRLF line endings, while Unix-style systems use LF. Mixed endings can create noisy diffs or fail strict text-processing checks.

Focused text cleanup tools

Full Text Cleaner tool

Explore Our Tools

Browse all tools