How to Delete Page Numbers in Word: Single, All, and Batch Deletion
Explain where Word page numbers are stored and the scope of their deletion. Give separate methods for deleting the page number on a single page, deleting all page numbers, and batch-deleting page numbers across multiple documents. Also explain why deleting one page number makes all of them disappear, and how to handle that.
Key Points of This Article
- Word page numbers are usually stored in the header or footer, and all pages within the same section share the same footer, so you must determine the scope before deleting.
- To delete the page number for only one page, first use section breaks to isolate that page as its own section, then unlink it from the previous section.
- When deleting all page numbers, check the headers and footers section by section to avoid missing any sections added later.
- For batch deletion across multiple files, you can use macros or scripts; be sure to back up the original files before starting and spot-check the results.
Many people only notice that page numbers are wrong after a thesis, contract, or report has been finalized: there are extra page numbers, or the cover page and table of contents show numbers when they shouldn't. When they try to delete them, double-clicking the number on the page does nothing, or after deleting one number, the page numbers on other pages disappear as well. The root cause of these problems usually lies in where the page numbers are stored and in the section settings.
This article is for readers who need to handle Word page numbers. It covers three situations: removing the page number from a single page, removing page numbers from an entire document, and removing them in batch from multiple files. The article also explains why deleting one page number can make all of them disappear. After reading it, you will be able to first identify which situation applies to you, and then choose the corresponding method.
How to delete page numbers in Word: the key is first determining the scope of deletion. The content below is organized in the order of "assess first, then act, finally verify."
How to Delete Page Numbers in Word? A One-Sentence Answer
In most cases, Word page numbers are automatic numbers inserted into the header or footer, and they can only be deleted while the header or footer is in edit mode. The actual scope of deletion depends on whether the document is divided into sections and whether each section is linked to the previous one.
| Your situation | Recommended Practices | Cause |
|---|---|---|
| I only want to remove the page number from a certain page. | Insert a section break to make this page its own section, then unlink it from the previous section's footer and delete the page number in that section's footer. | Footers for page numbers within the same section are shared, so deleting them directly would affect the entire section. |
| The entire document should have no page numbers. | Go through each section to enter the header and footer, and clear the page numbers in all sections. | The document may have multiple sections, so deleting just one section would leave remnants behind. |
| No page number on the first page; keep it on the other pages. | Select "Different First Page," then clear the footer on the first page. | Homepage settings take effect separately and do not affect other pages. |
| Remove the page numbers from multiple documents. | Batch-clearing footers by traversing a folder with a macro or script, backing up first | Opening them one by one manually is inefficient and prone to missing some changes. |
| The page numbers are already the PDF page content. | Edit paragraph text in a desktop PDF editor to delete it | Page numbers have become part of the page content, no longer the Word footer. |
Before You Begin: Confirm These Points First
Spend two minutes confirming the following items before you start; this can prevent hours of work that has to be redone.
- Whether the page number is an auto-generated field. Double-click the page number. If it has a gray shading, it is usually an automatically generated page number field. Ordinary typed digits do not have this shading and can simply be selected and deleted.
- How many sections the document has. With formatting marks displayed, if the words "Section Break" appear on the page, the document is divided into sections. The more sections there are, the more work it takes to check each one.
- Whether "Different First Page" or "Different Odd and Even Pages" is enabled. These two options let different pages use different headers and footers. If you do not check them first, you may delete one page number while another may still remain there.
- Whether to keep the original file. Deleting page numbers modifies the file content directly, so make a copy of the original file before you start, to serve as a fallback.
- Whether the file format supports macros. A regular .docx file cannot save macros. If you need to process files in batches, put the macro in a template or a .docm file and run it there, and make sure the macro security settings on this computer allow macros to run.
Steps to Remove the Page Number from a Single Page in Word
The key to this situation is to make the target page its own section; otherwise, what gets deleted will be the page numbers for the entire section.
- Place the cursor at the end of the page before the one whose page number you want to delete, then insert a "Next Page" type section break. The target page will start a new section from this point.
- Double-click the footer area of the target page to enter footer editing mode. If the notice "Same as Previous" appears at the top right of the footer, it means the footer is still linked to the previous section.
- Unlink that section from the previous one so it has its own footer. Modifying it will then not affect the page numbers on the earlier pages.
- Select the page number digits in the target page's footer and press the Delete key to remove them.
- Double-click the body area to exit footer editing, then flip through several pages before and after to confirm that the other pages still show their page numbers and only the target page has none.
If the target page is not a middle page but the last page or the cover page, the same approach can be used: split it into its own section and process it separately.
Steps to Remove All Page Numbers in Word
The key to removing all page numbers is "checking section by section," because many documents have sections added later, and page numbers that were removed from earlier sections can reappear in the new sections.
- Double-click the footer of any page to enter footer editing mode.
- Place the cursor in the footer, press Ctrl+A to select all the footer content of the current section, then press Delete to clear it.
- Check whether the header also contains page numbers; if so, enter header editing mode and clear it in the same way.
- Use the "Previous Section" and "Next Section" navigation in header/footer editing mode to go through each section and confirm that the headers and footers have all been cleared.
- Exit editing mode, page through the entire document from beginning to end, and confirm that no page numbers remain.
- Save the document as a new file, keeping the original file as a backup.
Why does deleting one page number make the page numbers on other pages disappear too?
This is a common source of confusion, and the root cause lies in how footers are shared. All pages within the same section share a single footer, and the page number is a field within that footer. If you delete it on any one page, you are actually deleting that field from the section's footer as a whole, so the page numbers disappear for the entire section.
If you want to delete only one particular page, first use section breaks to separate that page into its own section, then unlink it from the previous section, so that the deletion affects only that section. Conversely, if you notice that the page numbers on other pages have suddenly disappeared, you have most likely accidentally deleted the shared footer. Undo the action, then re-create the sections following the steps above.
Batch deleting page numbers and spaces from multiple files
Word itself does not have a built-in feature for batch-removing page numbers across multiple files, so you need to use a macro or script, or use Find and Replace to handle the spaces.
- Batch-delete page numbers with a macro. In a template or .docm file, write a macro that loops through all .docx files in a specified folder, opens each one, clears the header and footer of every section, and then saves it. Always back up your files before running it, and do not run a macro from an unknown source.
- Batch-process with a script. If you are familiar with programming, you can also use a document-processing library in a scripting language to achieve the same result. The logic is the same as the macro: iterate over the files, clear the footer of each section, and save the results.
- Clean up spaces with Find and Replace. Open the Find and Replace dialog, enter two spaces in "Find what," enter one space in "Replace with," click "Replace All," and repeat until no extra spaces remain. Be sure to distinguish between full-width and half-width spaces first, so you don't accidentally change other content.
- Spot-check a single file. If you only want to check the result for one file, you can open the Word file in the UniDoc web editor (app.unidoc.top), review the pages, make any changes, and then download it. This makes it easy to check files one at a time.
After batch processing is complete, do not deliver the results directly. Randomly sample at least several files and check them against the checklist in the next section.
Verify each item after completion
After deletion is complete, check each item one by one; this helps catch omissions early.
| Inspection items | How do you see it? | What should I do if I have a problem? |
|---|---|---|
| The target page has no page number. | Go to the target page and check the footer and header. | Check whether this section is still linked to the previous section; after unlinking, delete it again. |
| Keep the page numbers of the other pages. | Flip through from beginning to end and check whether the page numbers are consecutive. | Undo the operation, re-split the sections, then delete. |
| No residual page numbers. | Go through the headers and footers section by section | Find the remaining section, and clear its header and footer. |
| Table of contents and page number references are working normally. | Check whether the page numbers in the table of contents still correspond to the correct pages | Select the table of contents, then update the field so the page numbers are recalculated. |
| Original file has been backed up | Check whether the original file is still in its original location | If there is no backup, check whether it can be restored from another version. |
❓ Frequently Asked Questions (FAQ)
1. After I deleted the page number, it appeared again. What's going on?
A common cause is that page numbers appear in both the header and the footer, or that a section is still linked to the previous one. Check the headers and footers section by section, and clear any leftover page-number fields.
2. If I delete page numbers, will the page numbers in the table of contents change?
The page numbers in the table of contents are generated by fields, so deleting a page number in the body text will not directly change the content of the table of contents. If page positions change, select the table of contents and update the field, and the page numbers will be recalculated.
3. Can page numbers on a scanned PDF be removed using Word?
No. The page numbers on a scanned PDF are part of the page image, so Word cannot remove them directly. You can first use OCR to recognize the text, then edit the paragraph content with a PDF editor, or go back to the original Word file and make the changes there. The OCR results need to be checked and confirmed as accurate before you use them.
4. How can I avoid accidental changes before batch-deleting page numbers?
First, make a full copy of the entire folder as a backup. Then do a trial run of the macro or script on one of the copies. Only after confirming the results are correct should you run it on the original folder. After running it, randomly spot-check several files to verify that the headers, footers, and body text are all intact.
5. Will deleting page numbers affect the body content?
Clearing only the page numbers in the header or footer will not change the body text. However, if you accidentally select body text along with them and delete it, content will be lost, so before doing this you should confirm that the cursor is in the footer editing state.
📝 Summary
How to delete page numbers in Word: the key is first determining which section the page numbers are in and the scope of deletion. For a single page, you need to split sections first; for all pages, you need to clear each section one by one; for multiple files, you need to use a macro or script and back up first. Following the checklist in this article to verify the results will help you avoid missing or accidentally deleting page numbers.


