Add Custom header and footer to Windows Notepad file

Notepad adding custom Header and Footer
Notepad adding custom Header and Footer

This tutorial will guide you through the process of adding custom headers and footers to your documents in Microsoft Notepad. This feature is particularly useful for printing, as it allows you to include important information such as the date, time, and page numbers directly on your printed pages. Follow the steps below to enhance your Notepad files with personalized headers and footers using the Page Setup feature found in the File menu.

  1. Open the text file you wish to edit in Microsoft Notepad.
  2. Navigate to the File menu and select Page Setup.
  3. You will see text boxes for entering your Header and Footer.
  4. Input your custom text along with the following keywords to include dynamic information:
    1. To insert today's date, use: &d
    2. To insert the current time, use: &t
    3. To insert the page number, use: &p
    4. To insert the name of the file, use: &f
    5. To insert an ampersand (&) symbol, use: &&
To align your Header and Footer, you can use the following codes:
  1. &l => Aligns text to the left
  2. &r => Aligns text to the right
  3. &c => Centers the text.
For example, if you want your footer to display "Page 1", "Page 2", etc., centered, you would enter: &c Page &p

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!