Remove Line Breaks in Notepad

Step-by-step instructions for removing line breaks in Windows Notepad, including finding manual line breaks and checking the result.

Before you start

Notepad can remove line breaks locally on your Windows computer, without an online service. On Windows 11 and Windows 10, the basic Notepad app does not have a one-click command for joining all lines, so you usually handle line breaks with find-and-replace. Save a copy of the file first if you may need the original formatting later.

Step-by-step instructions

Open the file in Notepad. On Windows, right-click the file, choose Open with, and select Notepad. With Word Wrap off, each hard line break appears as a separate line.

Remove manual line breaks

Notepad usually stores line breaks as CR LF. To replace them, hold Ctrl and press H to open Replace. In Find what, type the carriage-return and line-feed symbols: Ctrl+J may not work in the classic app, while the redesigned Notepad on Windows 11 can accept a newline character. If there is no prompt for special characters, continue using the method below.

Use an available replacement option

In current Windows Notepad versions, you can copy a line break from the document and paste it into Find what. Select an empty space at the end of one line, copy it, then paste it into the Find field. Leave Replace with empty, select Replace All, and Notepad will join the affected lines on the remaining text.

If that removes all breaks but a space is needed, press Ctrl+Z to undo. Open Replace again, paste the same line break in Find what, enter a single space in Replace with, and choose Replace All.

Write the result to another file

To keep the original, choose File, then Save As and save the edited text under a new name. If you do not need a copy, you can save over the original file.

Check the output

Scroll through the result to confirm that the lines you wanted joined are on a single line. If the text now runs together without spaces, use the replacement method with a space in Replace with. Notepad handles plain text only, so fonts, tables, images, and other rich formatting will not be checked or preserved.

Common problems and next steps

If lines are still broken, Word Wrap may be on. Select Format or View, depending on your Notepad version, and turn off Word Wrap so the display matches the actual line breaks.

When copied text includes many spaces, repeated replacements can leave long whitespace gaps. After joining lines, open Replace and search for two or more spaces, then replace them with one space. Doing this repeatedly can tidy the text, but avoid replacing spaces inside meaningful content.

For thousands of lines or mixed line endings, manual find-and-replace may be slow. In those cases, copying the text into a lightweight editor with extended replace controls can make the task easier, while Notepad remains suitable for small plain-text fixes.