Loading…
Normalize line breaks to LF (Unix/Mac) or CRLF (Windows), or remove them entirely.
Line Break Converter is loading — interactive editor will appear here. Use examples below to try instantly once loaded.
Press ? for keyboard shortcuts
Normalizes line breaks to LF (Unix/macOS), CRLF (Windows), or removes them entirely. Accepts any mixture of LF, CRLF, and lone CR in one input.
Line-ending mismatches corrupt diffs, break shell scripts, and bloat patches. The fix is always the same — normalize then convert — and this tool does it in one pass.
This tool is part of the DevStackIO platform — a collection of free online developer tools from DevStackIO. Browse more free developer resources on DevStackIO.
Developers copying between Windows and Unix tooling, Git users fixing autocrlf checkouts, and anyone dealing with legacy RTF/Word exports.
Choose LF, CRLF, or Remove
Paste the text (mixed endings are fine)
Copy the converted output
'a\r\nb\nc' → LF → 'a\nb\nc''a\n\n' → CRLF → 'a\r\n\r\n''\nline\n' → Remove → all breaks collapseQ: What's the difference between LF and CRLF?
A: LF is one byte (0x0A), used by Unix and macOS; CRLF is two bytes (0x0D 0x0A), native to Windows.
Q: What about old Mac OS?
A: Lone CR (0x0D) is also normalized.
Q: Will it change my text? A: No
only the invisible line-ending bytes.
Authoritative specifications, standards, and in-depth reading for Line Break Converter.
Converted to LF (Unix/Mac)
CRLF appears in Windows and Git checkouts on Windows; LF in Unix/Mac. Both normalize before conversion so mixed files work.
Remove duplicate lines from text while keeping first-seen order. Case and trim options.
Sort lines alphabetically and remove duplicates. Use when cleaning lists; for comparing two texts use text-diff-visual. Input: text lines ≤10MB. Returns sorted unique lines. 100% client-side.
Count words, characters, and sentences. Get reading time and Flesch score as you type.
Preview rendered Markdown without editing. Use for quick read-only preview; for editing use markdown-editor, for HTML output copy use markdown-to-html. Input: Markdown ≤10MB. Returns rendered HTML preview. 100% client-side.
Generate URL slugs from titles with lowercase rules. Use as default slug tool; slugify-string is a noindex alias. Input: text ≤10MB. Returns slug string. 100% client-side.
Visual side-by-side diff for two texts with char-level highlights. Use as default diff tool; for similarity score use string-comparison, for JSON use json-diff. Input: two texts ≤10MB. Returns visual diff. 100% client-side.
Obfuscate strings with masking and reversible transforms. Use when hiding PII in demos; for hashing use hash-generator. Input: text ≤10MB. Returns obfuscated text. 100% client-side.
Search and copy emoji with keywords. Use when inserting emoji; for ASCII art use ascii-art. Input: search text. Returns emoji to copy. 100% client-side.