GetFixMyFile

Remove Line Breaks

Clean pasted text by joining line breaks, collapsing repeated spaces, or normalizing all whitespace to single spaces.

Clean whitespace

Remove line breaks, collapse extra spaces, or normalize all whitespace to single spaces.

Output

Three whitespace modes, and what they refuse to do

Join line breaks replaces every run of \n or \r\n with a single space, collapses repeated spaces and tabs, and trims the ends. "Line one.\n\nLine two." becomes "Line one. Line two." A hyphen at the end of a PDF line is not rejoined: "state-\nof" becomes "state- of", with a space, not "state-of". The page does not guess which hyphens were line-break hyphens.

Trim extra spaces works line by line. Spaces and tabs inside a line collapse to one space, the end of each line is trimmed, three or more newlines become two, and the whole text is trimmed. Blank lines that separate paragraphs can survive. All whitespace replaces every whitespace run, including newlines, with one space and trims the ends, so the result is a single line.

The output updates as you type. The sample "Line one." / blank / "Line two." / "Extra spaces." shows the join mode. Use join when a PDF or a web page inserted a break in the middle of a sentence you need to paste into one form field. Use trim extra spaces when the paragraph breaks should stay. Use all whitespace when the field wants one line. The text is not uploaded.

How to use it

  1. Paste the broken paragraph.
  2. Choose Join line breaks, Trim extra spaces, or All whitespace and read the output.
  3. Check hyphenated words. Fix "state- of" by hand if the hyphen was only a line wrap.
  4. Copy the output into the form or into the word counter if you still need a character count.

The text stays in this browser tab. GetFixMyFile does not upload it, store it, or include it in analytics.

Questions

Will it stitch a word that was split with a hyphen?
No. The hyphen stays, and a space is inserted where the line break was. You have to delete that space yourself when the hyphen was only for wrapping.
Which mode keeps paragraphs?
Trim extra spaces keeps single blank lines. Join line breaks and All whitespace both turn the text into one block separated by spaces.
Is the pasted draft uploaded?
No. Cleaning runs in the browser. The output exists only in the tab.

Frequently Asked Questions