How to Insert Dynamic Document Category and Keywords Metadata in Microsoft Word Using CATEGORY and KEYWORDS Fields

In structured enterprise document archives, compliance systems, and knowledge repositories (such as Microsoft SharePoint, OpenText, and legal document management vaults), documents are catalogued and discovered using standardized taxonomy metadata. Rather than relying on file folder hierarchies alone, enterprise search engines parse internal document properties—such as assigned categories and indexing keywords. Manually retyping document classification labels on cover sheets, compliance blocks, and distribution footers risks typographical errors and out-of-sync tags. Microsoft Word provides native bi-directional metadata binding through the CATEGORY and KEYWORDS field codes.

How CATEGORY and KEYWORDS Fields Operate

Every Microsoft Word file maintains summary metadata properties stored inside the document package. The CATEGORY and KEYWORDS fields read these properties and render the evaluated values directly into the document canvas:

  • { CATEGORY ["New Category"] }: Reads or updates the document category property (commonly used for classification tiers such as Confidential, Internal Only, or Financial Audit).
  • { KEYWORDS ["New Keywords"] }: Reads or updates the document keywords property (used for search indexing tags, e.g., Q4, Cloud Migration, Governance).

When evaluated without string parameters, these fields output the existing metadata values. When text is supplied inside quotation marks, Word simultaneously renders the text on the page and writes the value back into the file summary properties, ensuring seamless synchronization.

Configuring Category and Keywords in Document Properties

To populate or verify master document classification properties in Microsoft Word:

  1. Open your Word document and navigate to the File tab.
  2. In the Info panel, look at the right-hand column under Properties.
  3. Click Show All Properties at the bottom of the column to expand the complete metadata list.
  4. Locate the Category property field and enter your classification label (e.g., Technical Specification).
  5. Locate the Tags / Keywords field and enter your indexing tags separated by semicolons (e.g., Infrastructure; Kubernetes; API Gateway).
  6. Click the Back arrow to return to document editing.

Inserting the CATEGORY Field

To insert a dynamic category indicator on your document cover page or compliance banner:

  1. Place your cursor where the category label should appear (e.g., Classification: ).
  2. Press Ctrl + F9 (or Command + F9 on macOS) to insert raw field brackets: { }.
  3. Inside the brackets, type CATEGORY:
    { CATEGORY }
  4. Press F9 to evaluate and collapse the field code.

Word collapses the brackets and immediately renders the evaluated property: “Technical Specification”.

Inserting the KEYWORDS Field

To display indexing keywords in an executive summary or audit ledger:

  1. Place your cursor at the insertion point.
  2. Press Ctrl + F9 (or Command + F9 on macOS).
  3. Type KEYWORDS inside the field brackets:
    { KEYWORDS }
  4. Press F9 to evaluate.

Word renders the full string of indexing keywords defined in the document properties.

Applying Text Formatting Switches

Document classification blocks often enforce strict typographic standards—such as displaying category tags in uppercase letters or title case. You can apply standard general formatting switches (\*) to both fields:

Switch Formatting Output Example Field Construction
\* Upper Converts all letters to uppercase. { CATEGORY \* Upper }
\* Lower Converts all letters to lowercase. { CATEGORY \* Lower }
\* Caps Capitalises the first letter of each word (Title Case). { CATEGORY \* Caps }
\* FirstCap Capitalises only the initial letter of the text. { CATEGORY \* FirstCap }

For example, { CATEGORY \* Upper } renders as:

“TECHNICAL SPECIFICATION”

Updating and Synchronising Metadata Fields

To ensure that all category and keyword fields across the entire document reflect recent metadata edits:

  • Update All Fields: Press Ctrl + A to select the entire document, then press F9.
  • Toggle Field Codes: Press Alt + F9 (or Option + F9 on macOS) to alternate between the raw code { CATEGORY \* Upper } and the rendered text string.
  • Export Assurance: Check File > Options > Display > Update fields before printing to guarantee that all metadata fields update automatically before generating PDF exports or paper prints.

Overwriting Document Properties from Inside the Field

If you are authoring a document template and want authors to define the category directly from the cover sheet without opening the backstage menu, pass the new text string inside the field brackets:

{ CATEGORY "Confidential - Financial Review" }

Upon pressing F9, Word renders the string on the page and simultaneously commits “Confidential – Financial Review” to the document’s internal Category property, ensuring complete synchronization across enterprise document management systems.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.