FlipMyFormat

Add Header and Footer to PDF

Put text, page numbers, the date, the file name, a logo or Bates numbers at the top and bottom of every page. Add header and footer to PDF files right in your browser: your PDFs are not uploaded, there is no sign-up and no watermark.

Select PDF files

or drop PDFs here · one or many

Added in your browser. Your PDFs are not uploaded.

People also use

How to add header and footer to PDF in three steps

Select one PDF or several, type what should appear in the six boxes, three at the top and three at the bottom, and watch the preview change as you type. Press the button and you get a copy with your header and footer written onto the pages. The original file on your device is not changed.

This is a free way to add header and footer to PDF documents such as reports, contracts, theses, court bundles and handouts. Short codes like {page} and {date} fill themselves in on every page, so one set of settings covers a document of any length.

  1. 1

    Select your PDFs

    Press Select PDF files or drop one or more PDFs on the box. If a file has a password, type it and press Unlock.

  2. 2

    Fill in the header and footer

    Type into the Left, Centre and Right boxes for the top and the bottom, or click a preset. Use the token buttons to insert {page}, {date}, {file} and more, and check the preview.

  3. 3

    Download the result

    Press Add header and footer. One file downloads as a PDF whose name ends in -numbered.pdf; several files come together in one ZIP.

Your settings are remembered in this browser, so the next time you open the page the same header and footer are ready. Reset all, at the bottom of the extra options, brings back the defaults.

Five presets to start from

Five buttons above the boxes fill in a common layout in one click. They are a starting point, not a fixed template.

Page X of Y (bottom centre)

The footer centre reads Page 1 of 12, Page 2 of 12 and so on, and the header stays empty. This is also what you see when you first open the tool.

File name and date in the header

The file name sits top left, today's date top right and a plain page number at the bottom centre. Handy for drafts and printouts.

Confidential

CONFIDENTIAL in bold red at the top centre, with numbers like 3 / 12 at the bottom. Change the word to DRAFT or INTERNAL if you prefer.

Bates numbers (bottom right)

A Bates number such as ABC000001 at the bottom right of every page, counting on from one file to the next.

Book style (mirrored)

The file name and page number sit on the right of odd pages and move to the left on even pages, like a printed book.

A preset only fills in the boxes and a few settings. You can change any of them afterwards, and the preview shows the result at once.

Tokens that fill themselves in

Tokens are short codes in curly brackets. Click a token button while the cursor is in one of the six boxes and it is added to that box. When the file is made, each token is replaced by its value for that page.

{page}

The number of the page. Counting starts from Number the first page as, which is 1 unless you change it.

{pages}

The number of the last page, so Page {page} of {pages} reads Page 3 of 10. If you start counting at another number, it moves along.

{date}

The date on which you press the button, in the format you choose under Date format.

{time}

The time you press the button, as hours and minutes on a 24-hour clock, such as 14:05.

{file}

The name of the PDF without .pdf at the end. In a batch, each document gets its own name.

{bates}

A Bates number made from your prefix and a running number, such as ABC000001.

Add date to PDF: four formats and the time

To add date to pdf pages, put {date} in any box, for example Printed on {date} in the right header box. All pages get the same date: the day you made the file, not the day the PDF was first created.

Under Date format you pick how it looks. Your style follows the date settings of your browser and device, and the other three buttons show their format as an example: 2026-10-23, 10/23/2026 and 23.10.2026. Add {time} next to it when the hour matters, for instance on a report that is printed several times a day.

Add file name to PDF footer or header

The {file} token writes the name of the document onto its own pages. To add file name to pdf footer, put {file} in the left footer box and {page} in the right one. In a pile of printouts, every sheet then shows which file it came from.

The name is used exactly as it is on your device, without the .pdf ending. Rename the file before you select it if it is called something like scan_0042, because the tool writes the name as it finds it.

Add Bates numbering to PDF across several files

Bates numbering gives every page in a set of documents its own unique number, which is common in legal work, audits and insurance claims. Put {bates} in a box, usually the footer right, then open the extra options and set the prefix, the number of digits (1 to 12) and the start number.

With prefix ABC, 6 digits and start 1, pages read ABC000001, ABC000002 and so on. When you add bates numbering to pdf files in one batch, the count runs on from the last page of one file to the first page of the next, in the order the files are listed. Only pages that get a header or footer use up a number, so a cover page left blank does not take one.

For the next batch, set the start to the number after the last one you used, and the series continues without gaps.

Font, size, colour and opacity

The Text card sets the look of all six boxes at once. Opacity sits under Lines and look in the extra options.

Font

Helvetica, Times or Courier, the three standard PDF fonts. Every PDF reader has them built in, so the file hardly grows.

Bold

Tick Bold for heavier letters, for example for a CONFIDENTIAL label or a title.

Size

From 5 to 36 points. Between 9 and 11 suits most documents; the default is 10.

Colour

Any colour from the colour picker. Lines under the header and above the footer use the same colour.

Opacity

From 20% to 100%. It applies to the text, the lines and the logo, so a lower value makes everything quieter.

Other alphabets and emoji

The standard PDF fonts only cover Western letters. When a box contains letters they cannot write, such as Hindi, Chinese, Arabic, Cyrillic or emoji, that text is drawn as a sharp picture at four times the size and placed in the same spot instead. It looks right on screen and in print.

The catch is that such a picture is not selectable text: it cannot be copied or searched, and screen readers do not read it. Text in Latin letters, including numbers and tokens, stays real text.

Choose the pages: all, odd, even or only these

Under Pages, All puts the header and footer on every page. Odd and Even are useful for double-sided printing. Only these opens a box where you type a list such as 1-3, 5, 8-end; end means the last page, whatever its number.

Tick Leave the first page (cover) blank to keep a title page clean. Number the first page as changes where counting starts. Page numbers follow the real position in the file, so with the cover left blank the second page shows 2. To make it show 1, set the first number to 0.

Need different text on part of the document? Run the tool once with Only these set to the first pages, then select the downloaded file and run it again for the rest.

Margins, lines and mirrored pages for books

Margins sets how far the text sits from the edges: 3 to 40 mm from the top and bottom (10 mm by default) and 3 to 50 mm from the sides (15 mm). If the header lands on existing text, bring it closer to the edge with a smaller margin.

Line under the header and Line above the footer draw a thin rule across the page between the side margins. Mirror left and right on even pages swaps the left and right boxes, and the logo, on every even page, so the page number ends up on the outer edge of a printed book. The centre box stays where it is.

Rotated, landscape and mixed-size pages

Positions are worked out from each page as it is shown. A landscape page, a page that was turned with a rotation setting and a page with a crop box all get the header at their visible top and the footer at their visible bottom.

A mix of A4, Letter and other sizes in one file is fine too. Each page uses its own width, so Right text always ends at the right margin and Centre text is centred on that page.

Add text to top of PDF pages

Sometimes you do not need a full header, only one line such as a case number, a class name or Copy for review. To add text to top of pdf pages, type it into one header box, leave the others empty and set the distance from the edge under Margins.

Because this tool repeats the same text on many pages, it is the quick choice for labels. For a single note in one spot, Edit PDF lets you click anywhere on a page and type, and Watermark PDF puts large text across the middle of the page.

Add header and footer in PDF online free

You can add header and footer in pdf online free here, with no paid plan, no page limit and no watermark. There is nothing to install: the page loads, and your own browser does the work.

Free does not mean cut down. Logos, Bates numbers, page ranges, mirrored pages and several files at once are all part of the same page.

Header and footer in PDF free, with no sign-up

There is no account to create and no e-mail address to give. Getting a header and footer in pdf free of any watermark matters for documents you send on: the only new text on your pages is the text you typed.

Your settings are kept in the storage of your browser on this device, not in an account, so they come back the next time you open the page in the same browser.

PDF header and footer online on any device

This pdf header and footer online tool runs in Chrome, Edge, Firefox and Safari on Windows, Mac, Linux, Chromebook, iPhone, iPad and Android. On a phone the boxes and the preview stack below each other; tap Select PDF files to pick a file from Files or your downloads.

Files with hundreds of pages take longer on older phones, because the device does all the work. For long documents a computer is quicker.

Several PDFs in one go

Select several PDFs, or press Add more to add files later. The same settings are used for every file, while {file}, {page} and {pages} follow each document. The list shows the page count of each file, and the preview shows the first one.

With more than one file the button reads Add to 3 PDFs, or however many there are. One finished file downloads as a PDF; more than one come together as pdfs-with-header-footer.zip. The X next to a file takes it off the list.

Privacy: your PDFs stay on your device

The header and footer are written into the file by your browser with pdf-lib, an open-source PDF library. Your PDFs are not uploaded to a server, and nothing is kept after you close the page.

The one exception is a password-protected PDF. When you type the password and press Unlock, that file is sent once to our server to remove the password, and the unlocked copy comes straight back. The finished download has no password; Protect PDF adds one again.

Everyday uses

Reports and theses

Title in the header, Page {page} of {pages} in the footer and a cover page left blank.

Legal bundles

Bates numbers at the bottom right across all exhibits, with the case name at the top.

Business documents

Your logo top left, CONFIDENTIAL top right and the file name in the footer.

Drafts for review

DRAFT with {date} {time} in the header, so everyone knows which version they hold.

Printed handouts

File name and page number on every sheet, so loose pages find their way back.

Books and booklets

Mirrored page numbers on the outer edge, with the first page left blank.

Which tool for which job

This page labels the top and bottom of many pages at once. Other tools on FlipMyFormat cover the jobs around it.

ToolWhat it doesUse it when
This toolText, numbers, date, file name, logo and Bates numbers at the top and bottomEvery page needs the same kind of label
Page NumbersPage numbers onlyNumbers are all you need
Watermark PDFLarge text or a picture across the pageYou want a stamp such as DRAFT over the content
Edit PDFText, pictures and signatures anywhere on a pageOne page needs a one-off change
Merge PDFJoins several PDFs into oneNumbers should run through one combined document
Organize PDFMoves and removes pagesThe page order must be fixed first

Order matters: use Merge PDF and Organize PDF first, add the header and footer next, and run Compress PDF last if the file must be smaller. That way the page numbers match the final document.

Tips for neat headers and footers

Check the preview first

The preview shows page 1, or page 2 when the cover is left blank. Look at it before you press the button, especially after changing margins.

Keep each box short

Each box is one line. Long text in Left and Right can run into the Centre text; use fewer words or a smaller size.

Mind the existing content

The header is drawn on top of the page. If the page already has text near the edge, use a smaller margin or a lower opacity.

Stay between 9 and 11 points

Headers and footers should be easy to read but quieter than the body text.

Number after merging

Join files first, so {pages} counts the whole document and not just one part.

Keep your original

The download is a new file, so the original stays as it was in case you want another try.

Honest limits

Headers and footers are added on top of the page. The tool does not shrink the page content, add extra margin or remove a header that is already printed on the pages. If old and new text overlap, change the margin, or cover the old header in Edit PDF first.

Each box holds one line, and all six boxes share one font, size and colour. Letters from other alphabets are added as a picture, so they are not selectable. The logo has five positions; the footer centre is not one of them.

Once saved, the header and footer are ordinary page content. To change them, start again from your original file rather than the copy that already has them.

Troubleshooting: common problems and fixes

Please choose PDF files

None of the files you picked was a PDF. Save the document as a PDF first, for example with Word to PDF.

This PDF could not be opened

The file is damaged or not a real PDF. Open it in a PDF reader, print it to a new PDF and try again.

That password did not open this PDF

Check capital letters and the keyboard language, then type the password again.

The header sits on top of the text

The page has content close to the edge. Make the top and bottom margin smaller or lower the size.

Numbers start at the wrong value

Check Number the first page as. With the cover left blank, set it to 0 so the second page shows 1.

Some pages have no header

Pages is set to Odd, Even or Only these, or the first page is left blank. Set Pages to All.

Text cannot be selected

It contains letters the standard fonts lack, so it was added as a picture. Remove those characters if you need real text.

The preview stays empty

The first file in the list is still locked or could not be opened. Unlock it or remove it with the X.

What to do with your PDF next

Once you add header and footer to PDF pages, the file is ready to share. Compress PDF makes it smaller for e-mail, Protect PDF adds a password and Sign PDF places your signature on the last page.

Frequently asked questions

How do I add header and footer to PDF?

Select your PDF, type your text into the Left, Centre and Right boxes for the top and bottom of the page, and check the preview. Then press Add header and footer and the new copy downloads. It works in any modern browser.

Can I add header and footer in pdf online free?

Yes. Every option on this page is free, with no page limit, no paid plan and no watermark. The file is processed in your own browser, so there is nothing to sign up for.

How do I add header to pdf pages without a footer?

Type into the header boxes and leave the three footer boxes empty. Empty boxes add nothing, so only the header appears. The tool starts with Page {page} of {pages} in the footer, so clear that box first.

How do I add footer to pdf with page numbers?

Put Page {page} of {pages}, or just {page}, into one of the footer boxes, or click the Page X of Y preset. Each page then shows its own number. Change Number the first page as if counting should start elsewhere.

How do I add bates numbering to pdf documents?

Put {bates} in a box, usually the footer right, or click the Bates numbers preset. In the extra options, set the prefix, the number of digits and the start number. With several files, the numbers continue from one file to the next in the order they are listed.

Can I add date to pdf headers automatically?

Yes. Put {date} in any box and choose a format under Date format. The date is the day you create the file, and it is the same on every page. Add {time} for hours and minutes.

How do I add logo to pdf header?

Open the extra options, press Add a PNG or JPG logo under Logo and choose the image. Pick Header, left, centre or right, and set the height between 4 and 30 mm. The preview shows where it lands.

Can I add file name to pdf footer?

Yes. Put {file} in a footer box. The name is written without the .pdf ending, and each file in a batch gets its own name. The File name and date preset puts it in the header instead.

Is there a pdf header and footer online tool for phones?

Yes, this page works on phones. Open it in Safari or Chrome on iPhone, iPad or Android, tap Select PDF files and pick the file. The finished PDF is saved to your downloads.

How can I add text to top of pdf pages?

Type the text into one of the header boxes, for example Centre, and leave the others empty. Set its distance from the edge under Margins. The same text then appears at the top of every page you selected.

Can I get a header and footer in pdf free of watermarks?

Yes. The only text added to your pages is the text you type into the boxes. There is no watermark, no account and no trial period.

What do {page} and {pages} mean?

{page} is the number of each page and {pages} is the number of the last page. Together, Page {page} of {pages} reads Page 4 of 20. Both follow the start number you set.

Can I leave the cover page without a header?

Yes. Tick Leave the first page (cover) blank. The preview then shows page 2. Numbers keep the real page position, so set Number the first page as to 0 if the second page should show 1.

Can I put a header on some pages only?

Yes. Under Pages choose Odd, Even or Only these. With Only these, type a list such as 1-3, 5, 8-end, where end means the last page.

What does Mirror left and right on even pages do?

On every even page the left and right boxes swap sides, and so does the logo. Page numbers then sit on the outer edge of a printed book. The centre box does not move.

Does it work with Hindi, Chinese, Arabic or emoji?

Yes. Letters the standard PDF fonts cannot write are added as a sharp picture in the same place. It looks right, but that text cannot be selected, copied or searched.

Can I add the same header to several PDFs at once?

Yes. Select several files, or press Add more. The same settings are used for each, while page numbers and file names follow each document. The results download together as one ZIP file.

Are my PDFs uploaded?

No. The header and footer are added in your browser and your PDFs are not uploaded. Only a password-protected PDF is sent once to our server to remove the password, and the unlocked copy comes straight back.

Can I use a password-protected PDF?

Yes. Type the password next to the file and press Unlock. After that it is handled like any other file, and the downloaded copy has no password.

Does it work on rotated or landscape pages?

Yes. Positions follow each page as it is shown, so rotated pages, landscape pages and pages with a crop box get the header at their visible top.

Can I change the header later?

Not in the finished copy, because the header and footer become ordinary page content. Keep your original file and run the tool on it again with new settings.

Label every page in a minute

Add header and footer to PDF pages with text, page numbers, dates, a logo or Bates numbers. Free, no sign-up, no watermark, and done in your browser.

Open your PDF

Last updated October 2026 · Written and maintained by the FlipMyFormat team