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
- Notepad++ Editor alternatives for macOS
- How to add or remove bookmark on a line in Notepad++
- Notepad++ do not show CRLF characters
- Reduce the size of Tabs on Notepad++
- Delete blank lines in a file using Notepad++
- Fix: Notepad++ bottom status bar not visible
- Notepad++ Hex Editor
- How to show End of Line Characters in File using Notepad++
- [Tutorial] Write And Run Python Code In Notepad++ Editor
- How to install XML Tools Plugin Notepad++
- Customizing Notepad++ New Document Line Encoding: CR/LF/CR LF
- How to remove blank lines from a file using Notepad++
- Column Mode Editing in Notepad++
- Convert text to random case using Notepad++
- How to recover unsaved notepad file Windows 10
- How to delete all text after a character or string in Notepad++
- Setting up Cloud feature with Notepad++
- Install Notepad++ silently using Windows Powershell
- Using Document Map in Notepad++
- Enabling Notepad++ Dark Theme
- [Fix] Notepad++ tab not visible (hidden)
- Where are Notepad++ macros stored?
- Multiple line editing in Notepad++
- Alternatives for Notepad++ on Mac in 2021
- [Nopepad++] How to add text at end of each line
- [fix] RabbitMQ: AuthenticationFailureException ACCESS_REFUSED Login refused authentication mechanism PLAIN - 2022
- Convert Javascript object to JSON String example - JavaScript
- 26: How to set Environment Variables using Python - Python
- Program 10: Modulo of Two Numbers - 1000+ Python Programs - Python-Programs
- Java: Create Temporary Directory and File and Delete when application terminates - Java
- Create RabbitMQ Exchange using Java Spring Boot Example - Java
- MySQL : Error :1000 SQLSTATE: HY000 (ER_HASHCHK) Message: hashchk Server Error - MySQL
- How to reset an Apple Watch without an iPhone - Apple