Remove Line Breaks
Text copied from a PDF, an email or a subtitle file often has a break at the end of every line. Paste it here to join it back into clean paragraphs.
The option to remove empty lines only matters when you keep paragraph breaks. Without it, every empty line is removed anyway.
Runs in your browser. Nothing you type or open here is uploaded.
How to remove line breaks from text
- 1
Paste the text
Copy the text from your PDF, email or document and paste it in the top box.
- 2
Choose the options
Join with a space for normal text. Turn on Keep paragraph breaks if the text has real paragraphs you want to keep.
- 3
Copy the result
The cleaned text appears below with before and after counts. Copy it or save it as a .txt file.
Why text has line breaks in the wrong places
When you copy from a PDF, a scanned book or an email, every visual line often ends with a hard break. The text looks fine on the page, but when you paste it into a caption, a description or a form, the lines break in odd spots. Removing those breaks puts the words back into one flowing block.
What each option does
- Join lines with. A space is right for normal writing. Choose "nothing" when each line is a piece of a longer string, such as a long code or a wrapped web address. Choose "comma and space" to turn a list, one item per line, into a single line of items.
- Keep paragraph breaks. A paragraph is a block of lines separated by an empty line. With this on, lines inside a paragraph are joined, and the paragraphs stay apart.
- Remove extra spaces. Two or more spaces in a row become one. This fixes the gaps that PDF copies often leave.
- Trim each line. Spaces and tabs at the start and end of every line are removed before joining.
- Remove empty lines between paragraphs. With Keep paragraph breaks on, paragraphs are separated by a single line break instead of an empty line.
Before and after counts
The cards above the result show how many lines, words and characters you started with and what is left. If the word count changes, something other than line breaks was affected, so check the output. Normally the word count stays the same and only the line count and character count fall. To measure the finished text more closely, open it in the word counter.
Subtitles and scripts
Subtitle files and transcripts are full of short lines. If you want a plain paragraph for a blog post or a description, paste the text here and join with a space. If the result needs capital letters fixed afterwards, use the case converter.
Words split by a hyphen
This tool does not guess whether a hyphen at the end of a line was added only for line wrapping. A word such as "informa-" followed by "tion" will be joined as "informa- tion". Search for those cases and fix them by hand.
Privacy
All work happens in your browser. The text is never uploaded.
Now make the video itself.
UsTube Studio turns one sentence into a finished video: script, scenes, voice-over, music and captions, ready for Shorts, Reels and TikTok.