How to Fix Text and Page Alignment in Word

Fix off-centre text, shifted margins and misaligned pages in Word by checking paragraph settings, indents, hidden characters and page setup, step by step.

Text that sits off-centre, a heading that does not line up with the body, or a page that looks shifted to one side can make a Word document look broken. Usually it is not. A paragraph setting, a stray space or a page margin is pushing the text somewhere you did not choose, and once you know where to look, the cause is often quick to find.

This guide is for anyone who has clicked the alignment option and still sees the text in the wrong place. You will learn how to tell a paragraph problem from a page problem, then work through the fixes in order, from the smallest unit to the largest.

Start with the paragraph. If it looks right, check for hidden spaces and tabs, then the page setup. The steps below cover each level, and they work on any .docx file.

How to fix alignment in Word? The short answer

Check the paragraph first, then the hidden characters, then the page setup, because the problem usually sits at the smallest level that is still wrong.

Your situationWhat to doWhy
One paragraph is off-centre or leans to one sideClick in the paragraph, set the alignment again and check its indentsParagraph settings affect only that text
Text moves when you press the space bar or TabTurn on formatting marks and remove the extra spaces and tabsSpaces and tabs do not respond to alignment settings
Every page is shifted left or rightCheck the page margins and any gutter or mirror-margin settingMargins apply to the whole section
Only later pages are offLook for section breaks and compare each section's layoutA new section can carry its own margins
A table or text box sits in the wrong placeCheck the table's indent and the object's position settingsTables and floating objects follow their own rules

Figure out which problem you have

Match the symptom to the likely cause before you change anything. Changing the wrong setting can move text that was already correct.

SymptomLikely causeHow to confirm
Text in one paragraph is not centred or aligned as expectedParagraph alignment or an indent set by handClick in the paragraph and check its alignment and indent values
A gap appears before the first wordLeading spaces or tabsTurn on formatting marks; spaces show as dots and tabs as arrows
Justified text has wide gaps between wordsA long word or URL on a short lineSwitch the paragraph to left alignment for a moment; if the gaps close, this is the cause
The whole page looks shifted to one sideUneven margins or a gutter valueOpen the page setup options and compare left and right margin values
Text moves only after a certain pageA section break with different margins or columnsTurn on formatting marks and look for section break markers
A table or image is out of lineTable indent or floating object positionSelect the table or image and check its position and wrapping options

Fix it step by step

Work through these steps in order. Stop when the page looks right, then move on to the export check in step 7.

  1. Set the paragraph alignment again. Click inside the affected paragraph and choose the alignment you want. You do not need to select every word, because alignment applies to the whole paragraph.
  2. Reset the indents. Open the paragraph settings and check the left indent, right indent and first line indent. Set them to zero unless you want an indent on purpose. A negative indent can push text past the margin.
  3. Turn on formatting marks and clear hidden characters. Delete leading spaces and tabs at the start of the line. Replace gaps made with the space bar by adjusting the paragraph's spacing before or after, which keeps the layout stable when the text changes.
  4. Check the page margins. Open the page setup options and compare the left and right margins. Set them to match your template or the standard your document needs. If the pages will be bound, check the gutter value too.
  5. Check section breaks. If only some pages are off, turn on formatting marks and look at each section break. Make sure the margins and columns match the section before it. Remove only the breaks you do not need, because deleting a break changes the formatting of the text above it.
  6. Fix tables and floating objects. Select the table and check its indent and alignment with the page. For text boxes and pictures, check the wrapping and position settings so each object anchors to the paragraph or margin you intend.
  7. Check the result in a second view. Save a copy and export it to PDF, then review the pages. You can also open the .docx in the UniDoc web editor at app.unidoc.top, which supports Word-compatible editing, and compare the layout there. Screens, printers and fonts can all change how lines break, so review the pages before you consider the job done.

If your file came as a PDF

A PDF keeps its layout, so alignment problems in a PDF usually come from the original Word file. The PDF editor in the OmniDoc desktop client, available at download.omnidoc.top, can edit paragraph text in place, but it does not re-lay out pages. Fix the alignment in the source document, then export a new PDF. If the PDF is a scan, use the OCR option in the desktop client to make the text searchable, but expect the page layout to stay as scanned.

Prevent it next time

Alignment problems tend to return when the same document grows. A few habits keep the layout stable.

  • Set paragraph alignment and spacing in a style, then apply the style, rather than adjusting each paragraph by hand.
  • Set margins once in your template, and avoid changing them partway through unless you need a new section.
  • Position text with indents, spacing or a table, never with runs of spaces or tabs.
  • Keep formatting marks on while you edit, so odd characters appear as you type them.
  • When you paste from a web page, use a plain-text paste option, since pasted text can carry its own indents.
  • Review a PDF export before you send or print the file.

❓ FAQ

1. Why does my table of contents change after I fix the margins?

Margins affect where lines and page breaks fall, so headings can move to a different page. Update the table of contents and check the page numbers after any margin change.

2. Why does my document look different on another computer?

Missing fonts and different printer drivers can change line lengths and page breaks. Sending a PDF export keeps the layout you checked.

3. How do I line up a document for printing?

Compare your margins with the printable area your printer allows, then print one test page and check it against the screen. Adjust the margins if the edges are cut off.

4. Can I fix the alignment of a scanned page directly?

Not with paragraph settings, because a scan is an image of the page. Correct the page before you scan it again, or work from the original file if you have one.

5. Why does the text move when I add a picture?

A picture set to wrap around text pushes the surrounding lines. Change its wrapping option so it sits in a fixed position beside the text.

📝 Summary

Alignment problems in Word usually come from a paragraph setting, a hidden space or a page margin, so check them in that order. When you need to know how to fix alignment in Word, turn on formatting marks to see what is really there, then keep your settings in styles and templates so the layout holds as the document grows.

Open OmniDoc to edit and export your documents

Updated 2026-11-04