Insert File Names and Dates in Microsoft Word Headers and Footers
Question details
Add a document file name and date to a Word header or footer using fields.

- Product
- Microsoft Word for Microsoft 365
- Device & OS
- not provided
- Scenario
- The user wants document information to appear in a header or footer.
- Observed behavior
- The header or footer displays the file name and date through Word fields.
Open the document in the Word desktop app and save it with the desired file name. The available header, footer, and field controls may differ in Word for the web.
Insert FileName and Date fields from the Word ribbon
Use Word's field dialog to add document information to a header or footer.
Double-click the header or footer area where you want the information to appear.
Select Insert > Quick Parts > Field, choose FileName, and select OK. You can also use Document Info > File Name on the Header & Footer tab if that option is available.
Place the cursor where you want the date, select Insert > Quick Parts > Field, and choose Date. Select a format and choose OK.
Right-click a field and select Update Field to refresh its value. Select Close Header and Footer when you are finished.

Insert a FileName field with a keyboard shortcut in Word for Windows
Use a field code if you prefer to insert the file name without opening the Field dialog.
Edit Word documents and headers with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for working with Word documents. Open a DOCX file in WPS Writer to edit its content and headers while moving between office suites.

Frequently Asked Questions
How do I refresh the file name after renaming a document?
Save and reopen the renamed document if necessary, then right-click the FileName field in the header or footer and select Update Field.
Can I show the full file path instead of just the file name?
In Word's Insert > Quick Parts > Field dialog, select FileName and enable the option to add the path to the file name, if available.
Why can't I see the header and footer tools?
Double-click inside the header or footer to activate its tools. If the controls are still missing, open the document in the Word desktop app, where the field options are available.
Will the Date field always show the document's creation date?
No. The Date field shows the current date when updated. To show the creation date, select CreateDate under Insert > Quick Parts > Field instead.




