A manual, a thesis or a cookbook gets much easier to use when readers can flip to the back and find every page that mentions a term, and Word can build that index for you. Select a term, go to References > Mark Entry (or press Alt+Shift+X), and choose Mark. After you mark your terms, click where the index should go and choose References > Insert Index > OK. These steps apply to Word for Microsoft 365, Word 2024, 2021, 2019 and 2016 on Windows.
How a Word Index Works
Building an index in Word is a two-phase job. First you mark entries: each time you mark a word or phrase, Word inserts a small hidden code called an XE (Index Entry) field at that spot. Second, you insert the index itself, and Word collects every XE field in the document, sorts the entries alphabetically and lists the page number where each code sits. Microsoft’s page on how to create and update an index also notes that Word removes duplicate references from the same page, so a term mentioned three times on page 12 shows “12” once.
That design has two consequences worth knowing up front. The index is only as complete as your marking, because Word never guesses which terms matter. And the index does not refresh itself while you type; you update it when you are ready.
An index is different from a table of contents. A table of contents sits at the front, lists your headings in document order and builds itself from heading styles. An index sits at the back, lists individual terms in alphabetical order and builds itself from the entries you mark. Long documents often need both; if you also want the front list, see how to insert a table of contents in Word.
One more prerequisite: an index points to page numbers, so finish most of your editing and layout first. You can index a draft and update it later, but pages that move around a lot mean more updating. Showing page numbers in Word on the pages themselves also helps readers use the index.
Mark Your First Index Entry
Say you are indexing a small-engine repair manual and want “spark plug” to appear in the index. Here is how to mark it.
- Select the words “spark plug” in the text. If you want an entry that isn’t worded exactly like the text, you can instead click where the entry should point without selecting anything.
- Go to the References tab and choose Mark Entry in the Index group, or press Alt+Shift+X. The Mark Index Entry dialog opens.

- Check the Main entry box. Word fills it with your selection. Edit the wording if you want the index to say something different, such as “Spark plugs” or “Ignition”.
- Under Page number format, check Bold or Italic if you want this page number styled, for example bold for the page that defines the term.
- Choose Mark to mark this one spot, or Mark All to mark every place the same text appears in the document.
- Leave the dialog open. You can click back into the document, select the next term and the Main entry box updates. Choose Close when you are done.
Before you use Mark All, think about how often the word appears. Mark All marks every match, so a common word such as “oil” in a repair manual could produce an entry with dozens of page numbers, most of them passing mentions that won’t help a reader. Marking the meaningful mentions one at a time gives a more useful index. To find each mention quickly, you can use Find in Word and mark as you go.
After you mark an entry, you may suddenly see text such as { XE "spark plug" } in your document, along with paragraph marks and dots between words. Word usually turns on Show/Hide at this point so you can see the field. The codes don’t print, and you can hide them again with Home > Show/Hide (¶) or Ctrl+Shift+8.

Add Subentries, Cross-References and Page Ranges
The Mark Index Entry dialog has a few more options that make an index easier to scan.
Subentries. Type a word in the Subentry box to group related terms under one heading. In the repair manual, you might mark “Carburetor” as the main entry with “cleaning” and “adjusting” as subentries, so the index shows Carburetor followed by two indented lines. For a third level, type the subentry, a colon, then the third-level text, for example cleaning:float bowl.
Cross-references. Under Options, choose Cross-reference and type the text after “See”, such as “See Ignition”. Readers who look up “Spark plug” are then sent to the entry where you cover the topic in full, instead of seeing a page number.
Current page or page range. Current page is the default: the entry lists the page where the XE field sits. Page range lists a span such as 14 to 19 for a topic covered across several pages. It needs a bookmark that covers that text, so select the whole passage and add a bookmark first (Insert > Bookmark on most versions), then mark the entry, choose Page range and pick the bookmark name from the list.
Insert the Index
With your entries marked, put the index where readers expect it, usually on its own page at the end.
- Click where the index should start. If you want it on a fresh page, add a page break first (Insert > Page Break or Ctrl+Enter) and type a heading such as “Index”.
- Hide the field codes with Home > Show/Hide (¶). Visible XE codes take up space on the screen and can throw off the page numbers Word calculates.
- Go to References > Insert Index. The Index dialog opens with a preview.
- Choose your options. On most versions you’ll see a Formats list with several designs, a Columns setting, Right align page numbers with a Tab leader choice, and a Type choice of Indented (each subentry on its own line) or Run-in (subentries on the same line as the main entry, which saves space).

- Check the preview and choose OK. Word builds the index at your cursor.
As a rule of thumb, two columns with Indented entries suit most reports and manuals. Run-in is handy for a dense book index with many subentries. Right-aligned page numbers with a dotted leader look tidy in a single-column index but can feel cramped in narrow columns.
Update the Index After You Edit
Add a chapter, delete a section or mark new entries, and the index stays as it was until you update it. To refresh it, click anywhere in the index and press F9, or choose References > Update Index. Word rebuilds the list from the current XE fields and recalculates the page numbers.

Make updating the index part of your final check before you print, share or save a PDF. Hide the field codes first, since visible codes may shift text onto different pages.
Edit or Delete an Index Entry
It is tempting to type corrections straight into the finished index. Don’t: the index is generated from the XE fields, so changes typed into the index text are lost the next time it updates. Fix the entry at its source instead.
- Turn on Home > Show/Hide (¶) so the XE fields are visible.
- Find the field for the entry. Find in Word can help: search for the entry text while the codes are showing.
- To edit it, change the text inside the quotation marks. For example, change
{ XE "Carberator" }to{ XE "Carburetor" }. - To delete it, select the entire field, including both braces { }, and press Delete.
- Click in the index and press F9 to update it.
If you used Mark All, the same term has a field at every match, so a misspelled entry needs fixing in each spot. Replace All in Find and Replace can handle that when the codes are showing, but check one replacement first.
Mark Many Entries at Once With AutoMark
For a long document with a known list of terms, Word has an AutoMark feature that marks entries from a separate list, often called a concordance file. The concordance is a Word document with a two-column table: the text to find in the left column and the index entry to use in the right. You then open References > Insert Index, look for the AutoMark button, choose the concordance file, and Word marks every match. AutoMark marks every occurrence, much like Mark All, so it suits technical terms better than everyday words. Review the result and update the index afterward.
Index in Word for Mac and Word for the Web
Word for Mac. Word for Mac also builds indexes from marked entries, and the commands are usually on the References tab with the same names (Mark Entry, Insert Index, Update Index). The dialog layout can differ a little from Windows, and Alt+Shift+X is a Windows shortcut, so use the ribbon on a Mac.
Word for the web. Mark Entry and Insert Index may not appear in Word for the web. If you only see the document in a browser, look for an option to open it in the desktop app (or download the file), build the index in desktop Word, and save. Check your own version, since features in Word for the web change over time.
When the Index Looks Wrong
| What you see | Likely cause | Fix |
|---|---|---|
| A term you marked is missing | The index hasn’t been updated since you marked it, or the mark went in somewhere else | Click the index and press F9; check that the XE field exists with Show/Hide on |
| Page numbers are off by a page or two | The text moved after the index was built, or field codes were showing during the update | Hide codes with Show/Hide, then update the index |
| { XE … } text appears all over the document | Show/Hide is on | Turn off Home > Show/Hide (¶) or press Ctrl+Shift+8 |
| The index area shows a message saying no index entries were found | No XE fields were marked yet | Mark entries, then update the index |
| A deleted entry keeps coming back | The XE field is still in the text, or there is another copy from Mark All | Delete every matching field including braces, then update |
| The same term appears twice with different spelling or capitals | The entries were typed differently | Edit the quoted text so every field matches exactly |
Index Questions That Come Up
Does an index entry change how the page prints?
No, as long as Word’s Print hidden text option (File > Options > Display) is turned off, which it usually is. They only affect the screen while Show/Hide is on, and they can push text around on the screen at that point, which is why it is best to hide them before updating.
Can I see the whole index field instead of the list?
Yes. Click the index and press Shift+F9 to toggle its field code, or Alt+F9 to toggle all field codes in the document. Press the same keys again to return to the normal view.
Can one term point to both a page and another entry?
Yes. Mark the term once with Current page for the page reference, then mark it again with a Cross-reference, and the index shows both.
How do I remove the whole index?
Select the entire index and press Delete. This removes the list but leaves your XE fields in the text, so you can insert the index again later without remarking anything.
Once the index is in place, update it and the table of contents right before you share the finished file, and give any footnotes in Word a last read at the same time.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.