If you want to know how to create an index in Word, you only need to mark a few entries, insert the index field, and let Word generate the rest automatically. This is exactly the same logic behind a table of contents in Word, just keyword-driven instead of heading-driven. It’s the cleanest way to make a long document genuinely searchable.

In this guide, you’ll learn how to mark index entries, insert and format the index, update it after edits, build subentries, and fix the most common indexing problems.



What Is an Index in Word?

An index is an alphabetised list of keywords and the page numbers where each one appears, usually placed at the very end of a long document. It’s the reader’s shortcut — instead of skimming chapters or running Ctrl+F, they jump straight to the topic they need.

Use one when your document is:

Unlike a table of contents in Word, which is generated automatically from your heading styles, an index is built manually — you tell Word which words to track, and it does the page-number bookkeeping for you.



How to Create an Index in Word: Step-by-Step

There are three core stages — mark the entries you want, insert the index, then keep it updated as the document grows. Follow them in order and Word handles the page numbering automatically.


Method 1: How to Create an Index in Word by Marking Entries

Word can’t guess which words you want indexed. Every entry has to be flagged first so it knows what to track.

Steps to Mark an Entry

  1. Highlight the word or phrase you want to index.
  2. Go to the References tab.
  3. Click Mark Entry, or press Alt + Shift + X.
Microsoft Word References tab Mark Entry button highlighted to create an index in Word
  1. In the Mark Index Entry dialog, confirm the term appears under Main Entry.
  2. Click Mark to index that one instance, or Mark All to index every occurrence in the document.
  3. Click Close when you’re done.
Mark Index Entry dialog box in Word showing Mark and Mark All buttons for indexing a keyword

? Word inserts a hidden field code that looks like { XE “your term” } next to the word. That’s the marker the index pulls from later — it doesn’t print and it doesn’t affect your layout.


Why You See XE Codes After Marking Entries

The moment you mark your first entry, Word switches formatting marks on automatically. That’s where the XE codes come from — they’re not damage, they’re the index doing its job.

To toggle them off (or back on) any time:

  1. Go to the Home tab.
  2. Click the Show/Hide (¶) button — or press Ctrl + Shift + 8.

? Keep them visible while indexing — it’s far easier to spot duplicates and missed terms when you can see what’s already tagged. If they’re getting in your way for unrelated reasons, see the full guide on how to remove formatting marks in Word.


Method 2: How to Create an Index in Word by Inserting the Index Field

Once your entries are marked, you can build the index itself. This is where Word turns all those hidden XE codes into a clean, alphabetised list.

Steps to Insert an Index

  1. Place your cursor where the index should appear — usually a new page at the very end of the document.
  2. Go to the References tab.
  3. Click Insert Index.
References tab Insert Index button in Word for creating an index page in a long document
  1. Choose your formatting options — number of columns, style (Indented or Run-in), and whether page numbers align right.
  2. Use the Print Preview panel to check how it will look.
  3. Click OK.
Index dialog box in Word showing column count set to one for formatting an index layout

? Word builds the index instantly — alphabetised, with every marked term and its page number. Two columns reads better in books and manuals; one column works fine for short reports.


Method 3: How to Create an Index in Word That Updates Automatically

The index doesn’t refresh itself. If you add entries, delete a paragraph, or your pagination shifts — and it will, especially if you’ve inserted page numbers in Word — you need to tell Word to rebuild it.

Steps to Update the Index

  1. Click anywhere inside the index to select it.
  2. Right-click and choose Update Field, or press F9.
Word document showing XE field codes and using F9 key to update and remove index entries

? To add a new entry later, highlight the term, press Alt + Shift + X, click Mark All, then hit F9 to pull it into the index. To remove an entry, find its { XE “…” } code, select the whole code including the braces, press Delete, and update with F9.


Which Method Should You Use?

MethodBest ForSpeed
Mark EntriesSelecting which keywords appear in the indexSlowest — manual
Insert Index FieldGenerating the alphabetised list of termsInstant
Update with F9Refreshing page numbers after editsInstant

? All three are part of the same workflow — mark, insert, update. Skip any one of them and the index won’t reflect what’s actually in the document.


Create Subentries in an Index

Subentries group related terms under a single parent — useful when you’ve got a topic with multiple facets. For example, a main entry of Formatting with subentries for Font Size, Line Spacing, and Margins.

  1. Highlight the related phrase in your document.
  2. Press Alt + Shift + X to open the Mark Index Entry dialog.
  3. Type the parent topic into the Main Entry field.
  4. Type the child term into the Subentry field.
  5. Click Mark, then close the dialog.
  6. Press F9 inside the index to refresh.

? The index now shows the parent term in bold with the subentries listed and indented underneath — much easier to scan than a flat alphabetical list.


Common Problems When Creating an Index in Word

Entries Not Appearing in the Index

The entry was never marked, or the index wasn’t refreshed after marking. Check the term has a visible { XE “…” } code next to it, click inside the index, and press F9.

Strange Codes Showing Throughout the Document

Those are XE field codes — completely normal. They’re visible because formatting marks are on. Press Ctrl + Shift + 8 to hide them. They won’t print or export either way.

Page Numbers Are Out of Date

The index doesn’t auto-refresh. Click inside it and press F9 after any edit that changes pagination — adding sections, inserting images, changing margins.

An Entry Won’t Go Away

You’ve deleted the visible word but the XE code is still there. With formatting marks on, find the { XE “…” } code, select it including both braces, press Delete, then update the index with F9.


Pro Tips for a Cleaner Index


FAQs

How do I create an index in Word?

To create an index in Word, highlight each term you want to include, press Alt + Shift + X to mark it, then go to References ? Insert Index to generate the list. Press F9 inside the index any time you need to refresh it.

What’s the difference between an index and a table of contents?

A table of contents lists headings in the order they appear and is generated from heading styles. An index lists keywords alphabetically and is built from terms you mark manually. Most long documents use both.

Do XE index entries print in Word?

No. XE field codes are hidden text — they’re visible only when formatting marks are turned on. They never appear in printed copies, PDFs, or exported documents.

Can I add subentries to an index in Word?

Yes. In the Mark Index Entry dialog, put the parent term in the Main Entry field and the child term in the Subentry field. The index will list subentries indented under their parent.

How do I update an index in Word after editing?

Click anywhere inside the index, then press F9. Word rebuilds the whole index with the current page numbers and any newly marked entries.

How do I remove an index entry in Word?

Turn on formatting marks with Ctrl + Shift + 8, find the { XE “term” } code next to the word, select the entire code including both braces, and press Delete. Update the index with F9.

When should I create an index?

Create it once the document is structurally finished. Marking entries before final edits means refreshing the index repeatedly as pagination shifts.


Conclusion

Learning to create an index in Word turns a long, hard-to-navigate document into something readers can actually use. The workflow is short — mark the terms that matter, drop in the index field, refresh with F9 whenever the document changes.

Get the index right and the rest of your document organisation falls into place — pair it with a proper table of contents in Word and your readers have both top-down navigation and keyword-level search built straight into the document.



Blue banner image with Microsoft Word logo and text that says "Word Tutorials"

Recent Microsoft Word Tutorials


Looking for more Microsoft Word tutorials and formatting guides on Word Made Easy

Looking for more help with Microsoft Word? Browse all step-by-step Word tutorials covering formatting, layout, pages, and document setup.

? View all Microsoft Word tutorials: https://wordmadeeasy.halmanweb.com/microsoft-word/

? Need more support – check out the official guidance: https://support.microsoft.com/en-au


Watch the video version of this Microsoft Word tutorial on YouTube

Prefer watching instead of reading? Many Word tutorials are also available as short, step-by-step videos on the Word Made Easy YouTube channel.

Leave a Reply

Your email address will not be published. Required fields are marked *