Line-ending converter
Convert newline characters to LF, CRLF or CR and download exact bytes.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Paste text with any mixture of line endings.
- Choose Unix LF, Windows CRLF or classic Mac CR.
- Download the file to preserve exact newline bytes.
Things to know
- Clipboard and textareas can normalise newlines. Use the download for byte-exact output.
- Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
- Line-based modes accept up to 100,000 lines, including a trailing empty line.
You might also need
More in text & listsWord finder
Find words by known letter positions, length, starting letters, ending letters and excluded letters.
Word and character counter
Count words, Unicode characters, graphemes, lines and UTF-8 bytes.
Delimiter converter
Turn lines or separated values into SQL lists, arrays and custom delimited text.
Invisible character generator
Copy blank spaces or zero-width characters with their exact Unicode code point and character count.
Remove duplicate lines
Remove repeated lines while retaining their original order.
Line filter
Keep or remove lines containing text, matching a pattern or meeting a length.
Remove extra spaces
Trim lines, collapse repeated spaces and remove blank lines.
Unicode inspector and normalisation
Reveal code points, invisible characters and Unicode normalisation differences.
Text diff
Compare two texts and produce a readable unified line diff.