How to add a watermark to a PDF in the browser

Choose a PDF and stamp one line of text on every page or on a page range. The file is rewritten in this browser with pdf-lib and arrives as a new download; the original is left untouched.

The line is drawn as a picture of the text, so accented letters and scripts such as Japanese or Chinese keep their shape. That is also why it stays a single line: a very long sentence runs past the page edge instead of wrapping.

  1. Drop a PDF on the page or choose one from the device. One file at a time; an encrypted or password-protected file is refused with its own message.
  2. Type the watermark text and, if only some pages should carry it, a range such as "1-3,5" or a single page number. An empty box marks every page.
  3. Choose a position - Center, Tiled, or one of the four corners - then set colour, opacity, text size and angle. Every box is corrected to the value that is drawn.
  4. Press "Add watermark". The number of pages, the input size and the output size appear beside the output panel, and the file downloads as "<name>-watermarked.pdf".
  5. Press Clear to empty the file list, the sizes and the output panel before the next document.

What is drawn, where it lands on a turned page, and what the page range accepts

What is drawn on the page

The watermark is one line of bold text at the size you choose between 8 and 180 pt, in the colour of the picker (green by default) and at your angle between -180 and 180 degrees. The default -35 degrees tilts the line down to the right; 0 is horizontal, and a positive angle lifts it up to the right.

Opacity is applied when the line is placed, so the default 24 percent reads as a light grey-green on white paper and 5 percent is the faintest setting the tool offers. The mark is an image, so it does not depend on the fonts inside the PDF and each page keeps its own background.

Corners, turned pages and tiling

The four corners sit 28 pt from the edge of the page as the reader sees it. A page that carries /Rotate 90, 180 or 270 keeps the same visible corner and the line keeps its angle: the probe stamped a 0/90/180/270 file and all four pages carried the mark in the same place.

Tiled repeats the line across the whole page. The grid steps by the turned bounding box of one mark plus a small gap: on an A4 page the line CONFIDENTIAL at the default size lands three times in one column, and the next column is clipped at the paper edge. At 180 pt one mark is wider than the page, so only a corner of one repetition shows.

Page ranges, corrected values and stale output

A range is read in the order you write it, so "5-3" runs backwards, and a page named twice is stamped once - the Pages figure counts the pages that were really marked. A number outside the document stops the run with a message instead of quietly choosing the nearest page.

The size, opacity and angle boxes are corrected to the figures that were drawn: an empty size draws 54 pt, 999 draws the 180 pt maximum, and an opacity of 0 draws 5 percent. The run button is held while a run is in progress, another file clears the sizes of the previous document, and a file replaced mid-run discards the result. Nothing is uploaded.

Recent tools: