How to fix Word page numbers that are messed up and in the wrong position

We will sit down according to the symptoms and explain the common reasons why Word page numbers disappear after saving, are positioned too far down, have horizontal lines under the page numbers, and page numbers are repeated or garbled, as well as the inspection and repair steps for each situation.

Key points of this article

  • The page number disappears after saving. Most likely the page number is written in the text, or the file is in compatibility mode. First confirm that the page number is indeed located in the footer area.
  • If the position is too high or too low, give priority to adjusting the footer margin and cleaning up the empty paragraphs in the footer. Do not rely on increasing the page margin to solve the problem.
  • The horizontal line under the page number is usually a paragraph border. You can remove it by setting the lower border of the footer paragraph to None.
  • The page numbers of multi-section documents are repeated or the format is inconsistent. It is necessary to break the link between sections and set the page number format and starting page number in sections.
  • Garbled characters or failure to update are mostly caused by field code problems. Select the page number to update the field; save a copy before repairing to avoid damaging the original file.

If your Word page numbers are incorrect, there are generally four common situations: after setting the page number, save, close, and reopen it, it disappears; Page numbers are too close to the edge of the paper or hanging in midair; A random line appeared below the page number; Duplicate page numbers in multiple sections of documents, or inconsistent formatting between front and back. These issues may seem different on the surface, but the reasons are concentrated in several areas: the location of the page number, the format of the footer paragraph, links between sections, and the domain code of the page number itself.

This article is written for those who have already encountered problems and want to quickly get back on the account. It's not a tutorial to insert page numbers from scratch, but rather troubleshooting based on the symptoms you see. Each symptom is given what to confirm first and what to correct. After reading, you should be able to find the one that corresponds to you.

How to adjust the wrong page number in Word? One sentence conclusion

Direct answer: Don't repeat trial and error. First confirm whether the page number is in the footer area and whether it is generated by the domain, and then deal with the symptoms. In most cases, you only need to change one or two settings, and there is no need to redo the entire document.

your situationRecommended recipeThe reason
After saving or reopening the page, the page number will disappearMake sure the page number is in the footer, save it as a .docx copy before testingThe numbers in the main text are not page numbers; compatibility modes or rewriting by other software can easily cause page number fields to be lost
Page numbers are positioned above or belowAdjust the footer spacing boundary and remove any extra empty paragraphs in the footerPosition is determined by the footer spacing and paragraph spacing; margins will crowd the main text
There is a line below the page numberClear the bottom border of the footer paragraphHorizontal lines are mostly paragraph borders, not the page itself
Duplicate page numbers or inconsistent formatting across multiple sectionsBreak the links between sections and set page numbers for each sectionBy default, the new section uses the header and footer from the previous section and will not be automatically distinguished

First, determine which type of problem it is

SymptomsCommon causesHow to confirm
Page numbers disappear after saving and reopeningPage numbers are written in the main text or text box; The file is in compatibility mode; It has been rewritten by other softwareDouble-click the bottom of the page to see if the cursor moves to the footer; Check if the title bar shows compatibility modes
Page numbers are too far or too close to the edge of the paperInappropriate footer distance boundary values; There are blank lines before and after the page footer paragraphOpen Page Settings to view footer spacing boundaries; Enable paragraph marker display and count the blank lines at the footer
There is a line below the page numberFooter paragraphs with borders; The lower border of the header-style is brought into the footerSelect the Footer Paragraph and check if there is a bottom border line in the border settings
Duplicate page numbers, gaps, or inconsistent formattingMulti-section document, each section still linked to each other; Start page numbers or number formatting are not set by sectionEnable paragraph marker display, find the section break, and check section by section whether the footer is linked to the previous section
Page numbers display garbled text, and field names or numbers do not updateThe domain code is displayed; Update failure; Font missingSelect the page number to check if it has a gray background; Check whether curly braces and field names are displayed

Inspect and fix each item one by one

Sort in the order of easy to difficult. You don't have to follow all the steps for the same problem; just identify the cause and address the corresponding section.

Page numbers disappear after being saved

  1. Double-click the bottom of the page and confirm that the cursor is in the footer area. If the cursor stops in the main text, it means the page number is just ordinary text; delete it and reinsert it at the footer.
  2. Check the title bar or file information. If the file is an old version .doc or in compatibility mode, save it as .docx before editing. Some page numbers are easily lost in compatibility mode.
  3. If the file is processed by online conversion tools or other software, the page number field may have been converted into static text. In this case, you should go back to the original file and reset; do not patch the conversion results. When you only have a web page on hand, you can open a copy in the UniDoc web editor (app.unidoc.top) to check if the footer content is still there.
  4. Save and close it, then reopen the check. If it still disappears, then eliminate them one by one by comparing the previous three criteria.

Page numbers are placed too low or too high

  1. Open Page Settings and find the value of the footer distance boundary. If the page number is below the threshold, the value will be reduced accordingly, and the page number will be moved up.
  2. Double-click the footer to enter editing mode, enable paragraph marker display, and delete any extra empty paragraphs above or below the page number. They push page numbers away from their original positions.
  3. Check the spacing before and after the footer paragraph, which is generally set to 0.
  4. If the page number is still off, make sure it is not placed in the text box. Text boxes should be positioned individually, regardless of footer distance boundaries.

There is a horizontal line below the page number

  1. Double-click the footer to enter edit mode, then select the paragraph containing the page number.
  2. Open the paragraph border settings and set the bottom border to none.
  3. If the horizontal line is between the header and the main text, also check the border of the header paragraph and remove any excess underframe.
  4. If the border is hard to find, you can select the entire paragraph, clear the format, and reset the alignment and size settings. Note that this will clear the original font settings in the page number and need to be adjusted accordingly.

Multiple sections of documents have duplicate page numbers or inconsistent formatting

  1. Enable paragraph marker display, find the section break, which marks the boundary of the section.
  2. Enter the foot of the following section and disconnect it from the previous section, so that this section can be set independently.
  3. Set the page format and starting page number in sections that need to be renumbered, for example, start the main text from 1 and use Roman numerals for the introduction.
  4. Check the footer section by section to ensure no old page numbers remain.

Page numbers display garbled text or numbers do not update

  1. Select the page number and refresh it as per the update domain. A common method is to select and press F9.
  2. If curly braces or field names are still displayed, it means the domain code has been displayed. Just disable the option to display domain code.
  3. If boxes or garbled characters appear, it is usually a missing font. Change the page number font to the commonly used Chinese or English font, then update the domain.
  4. If the page numbers are copied from another document, a reliable method is to go to the header and footer, select and delete all original content and empty paragraphs, then reinsert the page number. Word-by-word revisions often leave hidden risks.

How to Prevent It from Happening Next Time

  • Page numbers are all inserted via headers and footers; do not manually type numbers at the end of the main text.
  • Set page numbers only after formatting and finalizing the draft to avoid misaligned numbering caused by later additions or deletions.
  • When documents have covers, table of contents, or appendices, plan sections in advance, using one section per section to facilitate separate page formatting.
  • Before handing it over to someone else or uploading it to an online tool, keep a copy of the original .docx and convert it to a saved copy; if there are issues, you can revert it.
  • After modifying the page number, open the print preview or scroll to the last page, confirm the page numbers are continuous and in the same position, then save the final draft.

❓ Frequently Asked Questions (FAQ)

1. Why is the page number set up and then closed and then reopened, and then disappear?

In most cases, the page numbers are actually written in the main text or text box, or the file is in compatibility mode. First, double-click the footer to confirm the cursor position, then save the file as a .docx copy and reset it.

2. If page numbers overlap across multiple sections, how do you number them from the beginning?

For the section to be renumbered, first disconnect the footer from the previous section, then set the starting page number to 1 in that section's page numbering format. This only affects the current section; the previous section will not be changed.

3. Is there a tool that can automatically fix page numbers?

Word itself does not have a one-click page repair function; the common approach is to check symptom by item. Online conversion websites may rewrite file structures; you should keep the original before use and carefully check the page numbers after modification.

4. What should I do if the page number is garbled or the numbers remain unchanged, and pressing F9 doesn't work?

First, make sure the selected page number field is not ordinary text. If still ineffective, check for missing fonts, or simply delete page numbers in the footer and reinsert them; this is usually more reliable than word-by-word editing.

📝 Summary

If a Word page number is incorrect, you can usually find the reason by looking at the page number's position, the format of the footer paragraph, the section links, and the domain code. First, identify your symptoms, then follow the corresponding steps. Usually, it can be fixed within a few minutes. Keep the original before revisions and verify page by page after revision to avoid rework.

Open OmniDoc to edit and export documents online

Updated 2026-11-12