How to replace lf with crlf in Notepad++

Option 1:

  1. Step 1: Open your file in Notepad++
  2. Step 2: Go to the "Edit" menu and select "EO Conversions"
  3. Step 3:In the "Convert Line Endings" dialog box, select "Windows (CRLF)" from the "Convert to" dropdown menu.
  4. Step 4:Click the "Convert" button
EOL Conversion


Option 2:

Note: You can also use the "Replace" function in Notepad++ to replace LF with CRLF.

  1. Open your file in Notepad++.
  2. Go to the "Edit" menu and select "Replace".
  3. In the "Replace" dialog box, enter \r\n in the "Find what" field and leave the "Replace with" field blank.
  4. Click the "Replace All" button.
  5. Notepad++ will replace all LF characters with CRLF characters.
Note: The \r\n pattern matches the LF character, which is represented by the \n character in Notepad++.

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!