Line Endings Converter
Convert between CRLF, LF and CR, and strip trailing whitespace.
Line endings differ by platform: Unix and macOS use LF, Windows uses CRLF, and classic Mac OS used a bare CR. Mixed endings in one file break diffs, shell scripts and some parsers. This converter normalises them all and can strip trailing whitespace at the same time.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why does my shell script fail with a strange error?
How to use the line endings converter
- 1Enter or paste your text.
- 2Choose the convert to.
- 3Choose the trailing whitespace.
- 4Turn "Ensure a final newline" on or off as needed.
- 5The result appears immediately — copy or download it.
Embed this tool
Put the working line endings converter on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Unified Diff & Patch GeneratorProduce a unified diff between two texts that git apply and patch can consume.Git Command BuilderBuild the exact git command for fifteen common tasks, with explanations and safety notes..gitignore GeneratorBuild a .gitignore file for your stack, with the entries people usually forget.Unix Timestamp ConverterConvert Unix timestamps to human dates and back, in seconds or milliseconds.7Z to ZIP ConverterConvert 7-Zip (.7z) archives into universal ZIP format.API Request BuilderBuild an HTTP request visually and get it as curl, fetch, axios, Python, Go or PHP code.
Last updated
More developer tools