PDF to Word formatting messed up? How to fix it

A PDF stores letters at fixed spots on a page, not paragraphs, so a converted Word file can come out with broken lines, floating boxes and strange gaps. Here is what causes each problem and the quickest fix in Word, plus how to convert so there is less to fix.

A messy converted Word page with broken lines next to the same page tidied

When a PDF turns into a messy Word file, the fix is usually one of three things: convert it again with better settings (one flowing document, OCR for scans), clear the leftover formatting (Ctrl+Space and Ctrl+Q), or use Find and Replace on the hidden marks (a break at the end of every line). Turn on Show/Hide ¶ first, so you can see what you are fixing. The table below matches each symptom to its fix.

Why PDF to Word formatting breaks

A Word file is made of paragraphs that flow from page to page. A PDF is closer to a printed sheet: each line of letters is placed at an exact position, and nothing in the file says "this is a paragraph" or "this is a table". A converter has to guess, from the positions alone, which lines belong together, where the columns are and what is a heading. Guesses go wrong most often on designed pages (brochures, forms, CVs made in design apps), scans, and documents that were themselves converted several times.

So the aim isn't a perfect copy. It is a Word file you can edit, and that takes a few minutes of tidying at most.

First, see what you're fixing

Press Ctrl+Shift+8 (on a Mac, Cmd+8), or click the ¶ button on the Home tab. Word now shows the hidden marks:

MarkWhat it isFind and Replace code
End of a paragraph^p
↵Line break inside a paragraph (Shift+Enter)^l (small L)
→Tab^t
Page BreakA forced new page^m
Section BreakA change of layout, such as columns or margins^b

Symptoms and fixes

What you seeWhyFix
Every line ends with ¶ or ↵, so editing one word ruins the shapeThe converter kept the PDF's line endsJoin the lines with Find and Replace (steps below), or convert again with a tool that rebuilds paragraphs
Text sits in boxes you can't select acrossEach block was placed as a separate text box to copy the lookConvert again in "flowing" mode, or cut the text out of the box, paste it with Keep Text Only (steps below), then delete the empty box
A page break after every page, big blank spacesEach PDF page was kept as one Word pageReplace ^m with nothing; with our converter, untick Start each PDF page on a new Word page
Fonts changed, lines wrap differentlyYour computer doesn't have the PDF's font, so Word swaps in anotherCtrl+A, then pick one font and size for the body text
Odd spacing, indents and sizes everywhereEach line carries its own exact spacing to match the PDFSelect the text, then Ctrl+Space (clear character formatting) and Ctrl+Q (clear paragraph formatting); apply Normal and Heading styles
Text runs in two columns where it shouldn't, or sections jumpSection breaks with column settingsClick in the section, Layout → Columns → One; delete stray section breaks (^b)
One table split into many, or numbers drifting out of columnsGaps between rows looked like the end of a tableDelete the empty paragraph between two tables to join them; then Table Layout → AutoFit → AutoFit Window
The old page numbers and headers appear in the middle of the textThe PDF's printed headers became normal textDelete them, then add Word's own (Insert → Page Number). Our converter can leave them out for you
Whole page is a picture, nothing to editThe PDF is a scanConvert again with OCR ticked; see scanned PDFs
Strange letters or boxes instead of wordsThe PDF's font has no readable text map (common in old or exported files)Treat it like a scan: convert with OCR so the words are read from the picture

Fix a line break at the end of every line

This is the most common complaint, and Find and Replace fixes a whole document in four passes. Open it with Ctrl+H (on a Mac: Edit → Find → Replace):

  1. Protect the real paragraph ends. Find ^p^p, replace with ###. (Real paragraphs are usually separated by an empty line.)
  2. Join the broken lines. Find ^p, replace with a single space. Do the same for ^l if you see ↵ marks.
  3. Put the paragraphs back. Find ###, replace with ^p.
  4. Tidy double spaces. Find two spaces, replace with one, and press Replace All until Word finds none.

Then set the gap between paragraphs once, for all of them: Layout → Spacing After, for example 8 pt. If your document has no empty lines between paragraphs, step 1 can't tell them apart; in that case it is faster to convert again with a converter that joins lines itself.

Get text out of text boxes

Click the edge of the box so the whole box is selected, then click inside it and press Ctrl+A (this selects only the box's text), Ctrl+X to cut, click where the text should go and use Paste Special → Keep Text Only (Home → Paste arrow). Delete the empty box. On many boxes this gets slow, which is a sign the file was converted in "exact layout" mode: converting again in flowing mode is quicker.

Convert so there is less to fix

  • Choose flowing text over exact layout when you want to edit. In our PDF to Word converter that means leaving Start each PDF page on a new Word page unticked; it already joins lines into paragraphs and rejoins words split with a hyphen.
  • Leave out repeated headers and page numbers (the option is ticked by default), so they don't land in the middle of your text.
  • Use OCR for scans and for files that come out as gibberish. Pick the right language: English, Arabic or Urdu.
  • Crop away decoration first. Big coloured margins and side bars confuse column detection; Crop PDF removes them before converting.
  • Only need a small change? Don't convert at all: change the words in the PDF with Edit PDF, or fill a form with Fill PDF forms.

Word can also open a PDF itself (File → Open). Microsoft notes that this works best for files that are mostly text, and lists elements that often don't convert well, including tables with cell spacing, page colours and borders, footnotes that span pages, and effects like glow or shadow (Microsoft Support, Opening PDFs in Word). If Word's copy is messy, try a different converter before spending time on fixes: they guess in different ways. The main steps are in how to convert a PDF to Word and how to open a PDF in Word.

Frequently asked questions

Can any converter keep the formatting exactly?

Not in a form that is easy to edit. A converter can copy the look exactly by placing every line in a fixed box, but then the text doesn't flow when you type. Flowing paragraphs are easier to edit and move a little. Pick the one that fits the job.

Why did my CV lose its layout?

CVs made in design apps use columns, shapes and text boxes, the hardest layout to rebuild. Convert it, copy the text into a clean Word template, and rebuild the design there; the free Word resume template is a quick start.

How do I remove all formatting in Word at once?

Select everything with Ctrl+A, then press Ctrl+Space and Ctrl+Q, or click Clear All Formatting on the Home tab (the A with an eraser). On a Mac, use the Clear All Formatting button. Then apply Heading styles to the titles.