Remove Line Breaks in Notepad

Notepad can show a long sentence on several screen lines without storing any line breaks there. Widen the window or turn off word wrap first; if the same breaks remain, they're real line endings and need editing.

For a few breaks, use Delete or Backspace in Windows Notepad. For a whole pasted document, Notepad++ has a Join Lines command and a replacement tool for choosing which breaks to remove. Its menus differ from Windows Notepad's.

Check whether the breaks are just word wrap

Open the text and widen Notepad's window. If words move onto fewer visible lines, those particular breaks came from wrapping to the window width. They weren't extra Enter characters in your file.

In current Windows 11 Notepad, check View > Word wrap. Classic Notepad uses Format > Word Wrap. Turn wrapping off when you want each stored line to remain one screen line, with horizontal scrolling as needed.

Drawing of classic Windows Notepad Format menu with Word Wrap selected

Changing word wrap doesn't rewrite the document. It changes how the app displays a long line. When you save and reopen the file, check the text itself. A narrow window can still make a paragraph look tall.

If the breaks stay in the same places as you resize the window, work on the actual line endings. Decide which paragraph breaks you want to keep before changing many lines at once.

The Notepad font guide explains another display-only change. Font size and wrapping can change how many lines you see without changing the file's words.

Remove a few real breaks in Windows Notepad

Keep the unedited file and do this cleanup in a differently named copy. That gives you a clean original if you later discover that addresses, lists, or paragraph boundaries should have stayed separate.

On the first line, place the text cursor just before the break at its end. Press Delete once to bring the next line up. Alternatively, put the cursor before the next line's opening character and press Backspace.

Check the join immediately. When neither side contains a space, the last word of the first line and first word of the next line will touch. Insert one space so the sentence remains readable.

Repeat only at breaks that belong inside the same paragraph. Keep the break when it separates a heading, a new topic, or a list item.

This is a practical route for a short note. It gets slow and error-prone across hundreds of pasted lines. For that amount of text, use a command designed to join a selection rather than pressing Delete over and over.

Microsoft says that Ctrl + Z undoes an action in its keyboard shortcut reference. Use it immediately after removing the wrong break.

The Notepad undo guide explains how to reverse a change in your current editing session.

Join a selected paragraph in Notepad++

Open the copy in Notepad++, which is a separate Windows editor. Select the lines that should become one paragraph, then choose Edit > Line Operations > Join Lines.

Select text across at least two lines. The command joins the selected lines by replacing their line endings with spaces, so words on either side of a break don't run together.

Drawing of Notepad++ Line Operations menu with Join Lines selected

Start with a single paragraph and check the result. Expand the selection only after that join looks right. A blank line inside your selection can disappear too, along with the other line endings.

Join Lines needs an active selection, as the editing instructions explain. If the command seems unavailable, check your selection before changing application settings.

Use Ctrl + Z if the result combines headings or separate paragraphs. Then select a smaller region. I'd use this selected-paragraph approach before a document-wide replacement when the pasted text mixes prose and lists.

A single very long screen line can be the correct result. Enable word wrap in Notepad++ if you want that stored paragraph to fit the window without putting hard breaks back into the file.

Replace line endings with spaces in Notepad++

If you want all the text in your copy on one continuous line, press Ctrl + H to open Replace. Set Search Mode to Regular expression, and put \R in Find what.

Put one ordinary space in Replace with. The \R expression matches newline sequences, including common Windows and Unix line endings. It belongs in Notepad++'s regular-expression search, not a literal search in Windows Notepad.

Try Find Next and one Replace first. Check the joined words, then use Replace All only when you want to remove every break in the text you're editing. For a selected region only, enable In selection before Replace All.

Leaving Replace with empty removes the separator entirely. That can be useful for deliberately joining fragments, but normal sentences usually need the space. Check the first joined pair before replacing every match.

The search manual lists \R as a newline-sequence match. It matches line endings without knowing which paragraph breaks you wanted to keep.

Several breaks together can turn into several spaces. Check paragraph boundaries after replacement rather than assuming every gap should shrink. Leave lists and files with a set format out of a cleanup meant for ordinary paragraphs.

Save the result for the program that needs it

Save the edited copy with a filename you'll recognize. Reopen that saved file and inspect the joins. Keep the original until you've pasted or loaded the new text into its destination and confirmed that the layout is right.

Don't use a whole-file join on a script, CSV file, configuration file, or other structured text unless its format calls for it. Those files can rely on line endings to work, even when their contents look like ordinary words.

If you only wanted fewer empty lines, use a blank-line removal operation rather than joining every line. Notepad++ separates Remove Empty Lines from Join Lines because they solve different problems.

For missing or changed Windows Notepad controls, open Microsoft's Notepad help. For a Notepad++ replacement that behaves unexpectedly, record the search mode, expression, and a short sample for its community support.

The Short Version

Check word wrap before deleting anything. Use Delete for a few hard breaks, Notepad++ Join Lines for a selected paragraph, or regular-expression replacement to change many breaks at once. Replace breaks with spaces to keep words separate.

Checked December 5, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment