Add Image to PDF
Add an image or logo to a PDF: place a PNG or JPG on your pages at one of nine positions and sizes.
Your files stay on this device. Nothing is uploaded. How to check
How to use Add Image to PDF
Key features of Add Image to PDF
Nine anchor positions and four sizes from 20% to 90% of the page width. The image keeps its proportions and is capped at 90% of the page height, so a tall picture cannot run off the page.
PNG transparency is kept, so a logo with a clear background shows the page through it. Other image formats are not decoded.
The file is read and rewritten by JavaScript in your browser. Nothing is sent to a server.
About Add Image to PDF
Add Image to PDF embeds the picture once with pdf-lib and draws it on the pages you selected. The size is expressed as a fraction of the page width, so the same setting gives a consistent look across a document, and the image is anchored to the position you chose with a fixed margin.
Use it for a logo on the first page of a proposal, a stamp on every page of a contract, or a photo on the last page of a report. One image per run, and only PNG and JPG: the picker accepts other image types, but anything that is not a PNG is decoded as a JPEG and fails. For free placement, resizing by dragging or several images on one page, use the PDF Editor.
When to use Add Image to PDF
A tender document needs the company logo at the top of the cover and nowhere else. Choose the PNG with the transparent background, Top left or Top right, Small or Medium, and First page only. The logo keeps its proportions and sits 36 pt in from both edges.
Every page of a policy needs the same "APPROVED" stamp image in a corner. Pick Every page. The picture is embedded once and referenced from each page, so a 100-page file grows by roughly the size of the image, not 100 times that.
A scanned signature saved as a PNG has to go at the foot of the last page of a letter. Choose Bottom right, Small and Last page only. If you would rather draw the signature and drop it exactly on the signature line, the PDF Editor has a signature pad and free placement, and Sign PDF is made for that one job.
A photo should fill most of a page in an appendix. Choose Full width (90%) and Centre; a tall portrait photo is capped at 90% of the page height and shrunk in proportion. To turn a folder of photos into a PDF of their own, with one page per picture, use JPG to PDF or PNG to PDF.
Tips and troubleshooting
- "Please choose an image file to embed." appears when you click the button with the image field empty. The image field is separate from the drop zone, which takes the PDF only.
- Only PNG and JPEG are decoded. The picker lists every image type, but a WebP, GIF, BMP, HEIC or SVG file stops with "Failed to add image" and Try Again reloads the page. Convert the picture to PNG or JPG first.
- "This PDF is encrypted" means the file has a password, or restrictions on printing or copying, and this tool cannot rewrite an encrypted file. Remove the protection with Unlock PDF and run this tool on the result.
- The image is drawn after the existing content, so it covers whatever is under it, and there is no opacity setting. For a see-through logo across the page use Watermark PDF.
- Sizes are fractions of each page's own width (20%, 35%, 60% or 90%). In a document that mixes A4 and A3 pages the picture is larger on the A3 pages, and a rotated page receives it in its unrotated frame, so check the result with Preview Document.
- A PNG is stored losslessly, so a large screenshot can add several megabytes; a JPEG is copied in as it is, with no re-encoding. Resize or compress the picture first if the output size matters, or run the result through Compress PDF.
- A phone photo that looks upright in your gallery can come out on its side: the JPEG is copied in as it is, and this tool does not read the orientation flag that phones store inside a photo. Turn the photo upright in an image editor and export a new JPG or PNG before adding it.
- The download is named image_added_ followed by the original filename. The upload zone refuses PDFs over 150 MB, and Preview Document shows the result in your browser's own PDF viewer.
How Add Image to PDF works in your browser
pdf-lib loads the PDF from memory and decodes the picture: a PNG is unpacked into pixels with its alpha channel kept as a soft mask, and a JPEG is embedded byte for byte, so its quality is neither improved nor reduced. The picture becomes one image object in the document. For each page you selected the tool reads the page size, takes the width from the size option, derives the height from the picture's own proportions, caps it at 90% of the page height, works out the corner for the anchor with a 36 pt margin, and adds a single draw instruction that references the shared image. No server is involved and neither the PDF nor the picture leaves your browser.
The document is then saved to a new byte array, wrapped in a Blob and shown on the result card with its size. Download File saves it with the image_added_ prefix, Preview Document opens it in a frame using your browser's built-in viewer (this page does not load pdf.js), and Process Another File reloads the page. The rest of the file is written back as it was: existing text, links, bookmarks, form fields and metadata are untouched, and the only additions are the image object and one instruction per page.
Frequently asked questions
Can I drag the image to an exact position?
Not here: this tool offers nine anchored positions. The PDF Editor lets you drop an image anywhere and resize it by dragging.
Will a large photo be shrunk to fit?
The image is scaled to the size you choose relative to the page width, and capped at 90% of the page height, so it never runs off the page.
Does it support transparent PNGs?
PNG transparency is kept, so a logo or stamp with a clear background shows the page through it.
Can I add several images at once?
One image per run. For a second picture, run the tool again on the file you downloaded, or use the PDF Editor, which lets you place as many images as you need on any page.
Does the image stay sharp when printed?
The picture is stored at its original pixel size and only displayed scaled, so it prints as sharply as the source allows. A small icon stretched to Full width looks soft because it has few pixels, not because of the tool.
Can I put the image behind the text?
No. It is drawn after the existing content, so it sits on top of text and graphics. Choose a spot with empty space, or use Watermark PDF, which draws with transparency so the page shows through.
Last reviewed