↵

Line Ending Converter

Detect and normalize CRLF/LF/CR line endings with live counts and three targets.
Newline 📂 Text 👤 ToolWorld 🏷️ v1.1.12
Loading...
Detected endings: CRLF × 0 LF × 0 CR × 0
Target ending
Original text
Normalized result

How to Use

📖 Tool Introduction


Line Ending Converter is a practical tool for the everyday pain of incompatible end-of-line styles across operating systems. Windows, Linux and macOS, together with legacy Mac systems, use three different newline characters: Windows writes a carriage-return plus line-feed pair known as CRLF, Unix-family systems use a bare line-feed called LF, and the now-rare old Mac classic used a carriage return alone, CR. When you paste a draft that was edited on Windows into a Linux shell script, a config file or a version control system, you routinely run into cryptic errors, stray ^M symbols, or git warnings that line endings are about to be rewritten automatically. The moment you paste text in, this tool counts exactly how many CRLF, LF and CR endings are present, so you can see the true state of the file at a glance; then you simply pick one of the three target styles, LF, CRLF or CR, and the whole document is normalized to a single consistent ending. The conversion uses a two-step strategy: every CRLF and every isolated CR is first reduced to a plain LF, and only then mapped onto the chosen target, which avoids the half-broken endings that naive one-pass replacements can produce. The result can be copied immediately or downloaded as a clean text file, and every calculation happens locally in the browser. For programmers, ops engineers and anyone who moves text between platforms, this is a lightweight, always-handy companion that removes a whole class of silent line-ending bugs before they ever reach a build or a diff. Because the detection badges refresh live as you type, you can confirm the mix before committing to a conversion, and the output preserves the body text and indentation exactly while only the trailing control characters change. Because no data leaves your machine, you can safely normalize configuration files, CSV exports and commit messages without any privacy concern at all.

✨ Key Features


  • Auto-detect: counts CRLF, LF and CR the moment you paste text
  • Three targets: unify everything to LF, CRLF or CR in one click
  • Two-step normalization: reduce to LF first, then map, avoiding broken endings
  • Live badges: detection counts refresh as you type
  • Private by design: runs in the browser with zero uploads
  • Zero setup: no sign-up or install, on desktop and mobile

📝 How to Use


  1. Paste text from a cross-platform source into the input area
  2. Read the top badges to see how many of each ending exist
  3. Pick the target style you want: LF, CRLF or CR
  4. Click Convert and inspect the unified text in the output
  5. Copy the result or download it as a .txt file

⚠️ Notes


  • Counting rule: CRLF counts as one pair; lone CR and LF are counted separately without overlap
  • Target choice: use LF for the web and modern cross-platform projects, CRLF for Windows-only scripts
  • CR is rare: pure CR endings are a legacy of old Macs and rarely needed today
  • Content kept: only the trailing characters change; the words and indentation stay intact
  • Source safe: output never touches the input, so you can reconvert freely

Related

Translate
🌐
Online Translator
Translate between languages online with automatic source detection, one-click copy and local history
Word Count
📊
Word Counter
Word Counter is a completely free, instant-use online text statistics tool that helps writers, editors, translators and content operators quickly grasp key quantitative metrics of any text. Simply paste your text into the input box and click Count, and the tool instantly delivers a full set of statistics: total characters (both with and without spaces), Chinese character count, English word count, total lines, paragraph count, punctuation count, and an estimated reading time based on a common reading speed — so you can see the size of your text at a glance. Whether you are writing a WeChat article that must fit a word limit, preparing a speech that needs to match a time slot, or checking word counts for a translation, it provides accurate and reliable references. The tool also features a real-time counting mode in which results refresh automatically as you type, saving repeated clicks; the clear and one-click copy buttons make workflows even smoother. All counting happens locally in your browser — your text is never uploaded to any server, so your privacy is fully protected. The interface is clean and simple, available in Simplified Chinese, Traditional Chinese and English, automatically follows the website language, theme color and corner-radius style, and is fully responsive on desktop and mobile. No registration, no installation — just open and use. Word Counter is an essential everyday companion for editors, authors, students and social media operators.
Truncate
✂️
Text Truncator
Trim long text by characters, words or lines, with an ellipsis or custom ending.
Tab
⇥
Tab to Spaces
Convert tabs to spaces or back, width 2/4/8, collapsing leading indent with counts.
Sort
↕️
Text Sorter
Text Sorter is a completely free, instant-use online text arrangement tool that sorts multi-line text by multiple rules in a flash. It is an efficient helper for list organization, data cleaning and file normalization. Simply paste the multi-line text you need to sort into the input box, then choose the sorting mode: ascending or descending, letter or numeric comparison, ignore case, sort by string length, or natural sorting (numbers inside the text are compared by numeric value) — the tool instantly outputs a clean, ordered result. It also supports detail options such as sorting after deduplication and keeping blank lines, satisfying precise needs across scenarios. Whether you are tidying a jumbled list of names and IDs, normalizing a shuffled keyword list, arranging file directories by name or length, or merging several lists and sorting them consistently with deduplication, it handles the job with ease. The sorted result can be copied or downloaded in one click for direct use in spreadsheets, documents or code files. All processing happens locally in your browser — your data is never uploaded to any server, so your privacy is protected. The interface is clean and simple, available in Simplified Chinese, Traditional Chinese and English, automatically follows the website language, theme color and corner-radius style, and works on both desktop and mobile. No registration, no installation — just open and use. Text Sorter is a common productivity tool for office workers, data analysts, programmers and students.
Simplify
㊯
Chinese Simplified-Traditional Converter
Bidirectional Simplified <-> Traditional Chinese converter with ~350 common characters.
Shuffle
🔀
Line Shuffler
Randomly shuffle the order of text lines, with reproducible seeds, keep-first and blank-line options.
Reverse
🔁
Text Reverser
Text Reverser is a completely free, instant-use online text transformation tool that rearranges any text in multiple directions with a single click. It is a handy companion for coding practice, creative writing, fun sharing and everyday text processing. The tool offers four reversal modes: character reversal, which flips the order of every character in the text; word reversal, which keeps the letters inside each word intact and reverses only the word order; per-line reversal, which applies character reversal independently to every line of multi-line text; and whole-block reversal, which turns the line order of a multi-line block upside down. You can switch between modes freely, preview the output in real time, and copy or download the result with one click. Whether you are constructing reversal test cases while debugging an algorithm, creating palindrome-style or acrostic playful copy, or reordering items while organizing meeting notes, this tool handles it quickly. All processing happens locally in your browser — your text is never uploaded to any server, so your privacy is protected. The interface is clean and simple, available in Simplified Chinese, Traditional Chinese and English, automatically follows the website language, theme color and corner-radius style, and works on both desktop and mobile. No registration, no installation — just open and use. Text Reverser is a practical utility for programmers, copy editors and students.
⏫︎