What an index is and when you need one
An index in Word is an alphabetical list of terms and page numbers that appears at the end of a document. It lets readers find specific topics without scrolling through the whole thing. Word pulls entries from marked text in your document and arranges them automatically.
You need an index when your document is long enough that readers might search for particular subjects — typically 20 pages or more. Textbooks, manuals, research papers, and policy documents all use indexes. Short reports or letters do not.
The process has two parts: you mark the words you want in the index as you write or edit, then you tell Word to generate the index at the end. Word does the alphabetizing and page numbering for you.
Key Takeaways
- Mark index entries by selecting a word, opening the References tab, and clicking Mark Entry — each marked word creates one index entry.
- You can mark the same word multiple times across your document, and Word will list all the pages where it appears.
- Generate the index by placing your cursor at the end of the document, going to References > Index, and choosing a style.
- If you add or delete marked entries after creating the index, right-click the index and select Update Field to refresh the page numbers.
- Word stores index markers as hidden codes — turn on formatting marks to see them and edit or delete entries.
Marking entries before you create the index
Before Word can build an index, you have to tell it which words matter. Open your document and find the first word you want indexed. Select it by clicking and dragging or double-clicking if it is a single word.
Go to the References tab at the top of Word. Click Mark Entry (or press Alt+Shift+X). A dialog box opens showing the word you selected in the "Main entry" field. You can edit it here if you want the index to show a different version — for example, you might select "COVID-19" but type "Coronavirus disease 2019" in the Main entry field so readers see the full term.
Click Mark to add this entry, or Mark All if the same word appears throughout the document and you want every instance indexed. Word inserts a hidden code next to the word. Click Close when you are done with that entry.
Repeat this for every term you want in the index. You do not have to mark every occurrence of a word — marking it once and clicking Mark All is faster if the word appears many times. If a word appears in different contexts and you want to separate them in the index, you can mark some instances with different subentries (see the dialog box for the Subentry field).
Organizing entries with main entries and subentries
A main entry is the primary term that appears in the index. A subentry is a related term that appears indented underneath it. For example, "Databases" could be the main entry, with "SQL," "NoSQL," and "Cloud storage" as subentries.
To create a subentry, select the word, open Mark Entry, type the main entry in the "Main entry" field, then type the subentry in the "Subentry" field. When Word generates the index, it will nest the subentry under the main entry and list the page number next to it.
Subentries make long indexes easier to scan. If you have 50 pages about different database types, grouping them under one main entry keeps the index from becoming a flat wall of text. Use subentries when you have three or more related terms.
Generating the index at the end of your document
Once you have marked all your entries, place your cursor where you want the index to appear — usually on a new page at the end of the document. Press Ctrl+Enter to insert a page break, then click in the new blank page.
Go to the References tab and click Index. A gallery of index styles appears. Choose one — "Automatic Table" is the most common, with entries in two columns and page numbers aligned to the right. Click the style you want, and Word generates the index instantly, pulling all marked entries and their page numbers.
Word alphabetizes entries automatically and groups subentries under their main entries. If you marked "Database" on pages 5, 12, and 28, the index will show "Database 5, 12, 28" (or in some styles, separate lines for each page).
Updating the index when you make changes
After you create the index, you might add new marked entries, delete old ones, or move text around. The index does not update automatically. To refresh it, right-click anywhere in the index and select Update Field.
A dialog box asks whether to update page numbers only or update the entire index. Choose Update entire index if you added or removed entries. Word rescans the document, updates page numbers, and regenerates the list in seconds.
If you add a new entry to the middle of your document after the index is created, you do not have to regenerate the whole index — just update it. Word will add the new entry in alphabetical order and adjust page numbers for everything that moved.
Viewing and editing index codes
Index entries are stored as hidden codes in your document. To see them, go to the Home tab and click the Paragraph button (the pilcrow symbol ¶) to turn on formatting marks. You will see codes like {XE "Database"} next to marked words.
If you want to delete an entry, find its code and select the entire code including the curly braces, then press Delete. The entry disappears from the index the next time you update it. If you want to edit an entry — change "Database" to "Databases," for example — right-click the code and select Edit Field, make your change, and update the index.
Turning on formatting marks also shows you where you have marked entries and helps you spot gaps. If you notice a term you forgot to mark, you can add it without regenerating the whole index — just mark it and update.
Choosing an index style that fits your document
Word offers several index layouts. Automatic Table uses two columns with page numbers on the right — clean and compact. Classic uses one column with more spacing, making it easier to read on screen. Fancy adds a colored background and larger fonts.
The style you choose depends on your document type and how it will be read. A printed manual often looks better in two columns to save pages. A document meant for screen reading works better in one column. Academic papers typically use Automatic Table or Classic.
You can change the style after creating the index. Click the index, go to References > Index, and choose a different style. Word regenerates the index in the new layout without losing your marked entries.
Frequently Asked Questions
Can I mark an entry without selecting it in the document?
Yes. Open Mark Entry without selecting anything, type the term directly into the Main entry field, and click Mark. This creates an index entry that does not correspond to any specific location in your document — useful if you want to include a term that is discussed but never appears as a single phrase.
What if I want the same word to appear in the index under two different headings?
Mark it twice with different main entries. Select the word, mark it with one main entry, then select it again elsewhere and mark it with a different main entry. The index will list it under both headings with their respective page numbers.
Does Word index numbers and special characters?
Yes, but they appear at the beginning of the index before the letter A. Numbers sort numerically (1, 2, 10, 20), and special characters appear in their own section. If you have many numeric entries, consider grouping them under a main entry like "Numbers" to keep the index organized.
Can I delete the index and recreate it without losing my marked entries?
Yes. Select the entire index, press Delete, and it disappears — but all your marked entries remain in the document as hidden codes. Place your cursor where you want the new index and go to References > Index to generate it again with a different style or layout.
What happens to the index if I move text to a different page?
The page numbers become wrong until you update the index. Right-click the index and select Update Field, and Word rescans the document to find the new page numbers for all marked entries.