Insert a Dynamic File Name in a Word for the Web Footer
Question details
The user wants to display a document's file name dynamically in a footer while working in Word for the web.

- Product
- Microsoft Word for the web
- Device & OS
- not provided
- Scenario
- A document footer should show the file name using a field rather than manually entered text.
- Observed behavior
- Word for the web does not provide the desktop Quick Parts field insertion feature.
Save the document with the desired file name and check whether you have access to the desktop Word application. If you only have Word for the web, you can enter the name manually instead.
Insert a FileName field in desktop Word
Use desktop Word to add a field that can be updated when the document's file name changes.
Word for the web cannot reliably insert or update a dynamic file-name field. The field may need to be updated in desktop Word after a rename.
In Word for the web, choose Editing or Open in Desktop App, depending on the available menu, and open the document in desktop Word.
Double-click the footer area and place the cursor where you want the file name to appear.
Select Insert > Quick Parts > Field, choose FileName, and select OK. If needed, choose the option to include the file path.
Save the document, then right-click the field in desktop Word and select Update Field to refresh the displayed name.

Type the file name into the footer in Word for the web
Use a manual footer when desktop Word is unavailable and automatic updates are not essential.
Edit Word document footers with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for editing documents and footers. Its Microsoft Word format compatibility makes moving existing files straightforward. It does not add the Quick Parts feature to Word for the web.

Frequently Asked Questions
Can I insert a FileName field directly in Word for the web?
Word for the web does not provide the desktop Quick Parts field insertion feature. Open the document in desktop Word and use Insert > Quick Parts > Field > FileName.
Will the footer update automatically when I rename the file?
Do not assume it will. Open the document in desktop Word, right-click the FileName field, and select Update Field. Manually typed footer text must be changed by hand.
Can the footer show the full file path?
In desktop Word, select Insert > Quick Parts > Field, choose FileName, and select the option to include the file path before clicking OK.
What can I do if I don't have desktop Word?
In Word for the web, select Insert > Header & Footer and type the file name into the footer. Revisit the footer whenever you rename the document.




