Writer
All toolsLine Ending Converter
Convert line endings between LF, CRLF, and CR, plus tabs to spaces.
Input
Detected: LF (Unix)
Output
Line one Line two Line three
Frequently asked questions
- What is the difference between LF, CRLF, and CR line endings?
- LF (\n) is used on Linux and macOS, CRLF (\r\n) is the Windows convention, and bare CR (\r) was used on classic Mac OS through version 9. Mixed endings in one file commonly cause version control and diff noise.
- When should I convert tabs to spaces?
- Many style guides for languages like Python, JavaScript, and YAML require spaces, while others like Go require tabs. Convert to whichever your project's linter expects to avoid indentation errors.
- Will converting line endings affect my git history?
- Changing line endings rewrites every line, which can produce a massive diff if the rest of the team uses the original ending. Configure git's autocrlf or a .gitattributes file alongside the conversion to keep diffs clean.