Let's see how we can find and replace CR (Carriage Return) and LF (Line Feed) characters from a file using Notepad++ application on the Windows operating system.
First let's see what their characters are,Carriage Return (CR): Also know as Cartridge return,
It is a control character used to reset the position of the cursor to the beginning of the next line of a text file.
Symbol : ↵
Unicode : U+21B5
HTML Entity : ↵
ASCII : 13
Programming Languages: \r
Note: It is also known as Control+M character and may be seen as ^M
Line Feed (LF): Also known as Newline Character or End Of Line Character (EOF) or line break. It is a special character used to signify the end of a line of text and the start of a new line in a file.
Symbol : 
Unicode: U+000A
HTML Entity :
ASCII: 10
Programming Languages: \n
CRLF Relation:
Carriage return and Line feed are very much associated with each other and hence you would see both of them clubbed together as CR+LF or LF+CR, CRLF or LFCR
How to find CRLF characters using Notepad++You can use a regular expression to find CRLF character,
- Open file in Notepad++
- Goto Find,
- Make sure that in Search Mode, the Regular Expression option is selected.
- In "Find what" add regular expression [\r\n]+
- Now you should see CRLF characters highlighted.
You can use a regular expression to find CRLF character,
- Open file in Notepad++
- Goto Find & Replace,
- Make sure that in Search Mode, the Regular Expression option is selected.
- In "Find what" add regular expression [\r\n]+ and in Replace with : \n
- CRLF will be replaced with a newline character.
- Go to Edit -> EOL Conversion
- Select Windows Format
- How to hide toolbar on Notepad++
- Change the default Line Encoding Notepad++ (CR LF)
- Notepad++ is about to exit prompt message
- How to force quit or kill Notepad++ Process
- Add Blank Lines Between Each Lines in Notepad++
- Install Notepad++ silently using Windows Powershell
- Prettify JSON in Notepad++
- Notepad++ Convert text from lower to upper case
- Must have CSV Plugins for Notepad++
- How to lock Notepad++ tabs?
- Column Mode Editing in Notepad++
- How to change background color in Notepad++
- Notepad++ sort by name with example
- How to rename a tab in Notepad++
- [Solved] Notepad++ Menu Bar Missing
- Where are Notepad++ temp unsaved files stored?
- Notepad++: How to add Quotes to CSV File
- How to check about details of Notepad++ text editor
- How to close all tabs of Notepad++?
- How choose alternate Tab Bar icon in Notepad++
- How to copy file name and path to clipboard in Notepad++
- Change default language highlighting in Notepad++
- Add Line Number before each line in Notepad++ using Column Editor
- Go to Line Number option in Windows Notepad
- How to show End of Line Characters in File using Notepad++
- Android Development - How to switch between two Activities - Android
- Create simple struts2 project using maven commands - Java
- Increase or Decrease macOS Sonoma Sidebar Icon and Text Size - MacOS
- How to Measure Execution Time in Jupyter Notebook Cell - Python
- Python: Convert Minutes to Hours - Python
- Where are Plugins Installed in Notepad++ - NotepadPlusPlus
- [Android Studio] Error: Missing system image on device - Android-Studio
- How to hide toolbar on Notepad++ - NotepadPlusPlus