Skip to content
All tools
English

Add a header and footer to a PDF

Write a line at the top or bottom of every page: title, date, file name, page count.

Your files never leave your device

Add PDF files

or drag and drop them here

PDF · processed on your device

    Options
    Insert:

    {page} page number · {pages} number of pages · {date} today’s date · {file} file name

    Empty = all pages. e.g. 1, 3-4

    How to use it

    1. Add PDFs

      One file or a batch; all get the same header and footer.

    2. Type your text

      Six boxes, one for each corner and center. The buttons insert page number, date or file name.

    3. Check and download

      The preview shows a real page of your file before you save.

    Six places, four placeholders

    Every page has six boxes: left, center and right, at the top and at the bottom. Fill in only the ones you need. Four placeholders are replaced on each page: {page} is the page number, {pages} the number of pages in the file, {date} today’s date in the format you choose, and {file} the file name without “.pdf”. A typical footer is “Draft · {file}” on the left and “{page} / {pages}” on the right.

    Any language, with one trade-off

    Your browser draws the text, so Arabic, accented letters and symbols come out correctly shaped. Such lines are placed on the page as sharp images and cannot be selected or searched afterwards. Lines made only of basic Latin letters, digits and punctuation are written as real text.

    Limits worth knowing

    Each box holds one line; long text is not wrapped. A line that would leave the page or run into the box next to it is drawn smaller, together with the other boxes of that row, so keep lines short. The text is laid over the page: a header that is already there is not removed, and content that reaches the edge is not pushed down, so add margins first if needed. {page} always counts from the first page of the file; to start at another number or after the front matter, use Page numbers. To leave the cover clean, type 2- in the Pages field.

    More PDF tools: Edit and annotate

    Frequently asked questions

    Is my PDF uploaded?
    No. The preview and the finished file are made by your browser on your device. Nothing is sent to a server.
    Which date does {date} print?
    The date on your device at the moment you run the tool. It is written into the page as fixed text and does not change later.
    Can odd and even pages have different headers?
    No. The same six lines go on every selected page. For page numbers that switch sides in a book, use the Page numbers tool.
    Can I choose the font?
    No. You can set size and color. Plain Latin text uses Helvetica; other text uses your device’s standard font.