magick *.webp output.pdf.
Converting WebP images to PDF is useful for document submission, printing, sharing in a universally-openable format, or combining multiple screenshots or diagrams into a single file. Several methods work well depending on whether you need one file or many, and how much you care about output quality.
Convert WebP to JPG or PNG First
Start from a high-quality image format before creating your PDF for best results.
Add to Chrome — FreeMethod 1: Chrome Print to PDF (No Software Needed)
If you just need a quick single-image PDF with no quality requirements, Chrome's built-in PDF printer works:
Convert WebP to PDF using Chrome
- Drag the WebP file into a Chrome tab (or open Chrome and drag the file to the address bar).
- The WebP image displays in the tab.
- Press Ctrl+P (Windows/Linux) or Cmd+P (Mac) to open the print dialog.
- Change the destination to "Save as PDF".
- Under "More settings", adjust paper size, margins, and scale if needed.
- Click Save.
Method 2: ImageMagick (Command Line, Full Control)
ImageMagick converts WebP directly to PDF and handles multiple images in one command:
Single WebP to PDF
# Convert single WebP to PDF
magick input.webp output.pdf
# With explicit page size (A4)
magick input.webp -density 300 -page A4 output.pdf
# With high quality (less compression)
magick input.webp -quality 95 output.pdf
Multiple WebP files into one PDF (one image per page)
# All WebP files in current folder → single multi-page PDF
magick *.webp combined.pdf
# Specific files in order
magick page1.webp page2.webp page3.webp document.pdf
# With consistent A4 sizing
magick -page A4 *.webp output.pdf
magick input.webp -flatten output.jpg to convert to JPG first, then create the PDF from the JPG.
Method 3: Python with img2pdf (Best Quality)
img2pdf is a Python library that embeds images in PDFs without re-compression — it converts images to PDF format while preserving the original pixel data exactly. This avoids the quality loss from JPEG re-compression inside the PDF.
# Install
pip install img2pdf pillow
# Python script for WebP to PDF (via intermediate PNG)
from PIL import Image
import img2pdf
import io
# Convert WebP to PNG in memory (lossless)
img = Image.open("input.webp")
png_buf = io.BytesIO()
img.save(png_buf, format="PNG")
png_buf.seek(0)
# Create PDF
with open("output.pdf", "wb") as f:
f.write(img2pdf.convert(png_buf))
print("Done.")
# Batch: multiple WebP files into one PDF
from PIL import Image
import img2pdf
import io
webp_files = ["image1.webp", "image2.webp", "image3.webp"]
png_buffers = []
for webp_path in webp_files:
img = Image.open(webp_path)
buf = io.BytesIO()
img.save(buf, format="PNG")
buf.seek(0)
png_buffers.append(buf)
with open("combined.pdf", "wb") as f:
f.write(img2pdf.convert(png_buffers))
print(f"Created PDF with {len(webp_files)} pages.")
Method 4: macOS Preview (Mac Users)
On macOS Ventura or later, Preview can open WebP files and export to PDF:
- Open the WebP file in Preview.
- Go to File → Export as PDF.
- Choose save location and filename.
- Click Save.
For multiple WebP files in one PDF on Mac:
- Select all WebP files in Finder and open them all in Preview.
- Select all thumbnails in the sidebar (Cmd+A).
- Go to File → Print Selected Images.
- In the print dialog, click PDF → Save as PDF.
Two-Step Approach for Maximum Quality
For the highest quality PDF output — especially for print or professional document submission — a two-step approach avoids any re-compression of the image data:
- Step 1: Convert WebP to PNG using the Chrome extension (lossless, preserves all pixel data)
- Step 2: Create PDF from the PNG using
img2pdf(no re-compression)
This pipeline ensures the image in the PDF is identical in quality to the WebP source, with no additional compression artifacts introduced at any stage.
Convert WebP to PNG for High-Quality PDF Creation
Lossless conversion from WebP to PNG. Use as input for any PDF tool.
Install WebP Converter — FreeRelated Guides
- Convert WebP to PNG with Transparency
- Batch Convert Multiple WebP Files
- WebP to JPG Without Quality Loss
Frequently Asked Questions
How do I convert a WebP image to PDF?
Fastest method: drag the WebP into Chrome, press Ctrl+P, and save as PDF. For better quality, convert WebP to PNG first using the Chrome extension, then use ImageMagick or img2pdf to create the PDF without re-compression.
Can ImageMagick convert WebP to PDF?
Yes: magick input.webp output.pdf. For multiple files in one PDF: magick *.webp combined.pdf. If you get a policy error, convert to JPG first and create the PDF from that.
How do I convert multiple WebP files into one PDF?
ImageMagick: magick *.webp output.pdf combines all WebP files in the current folder into a single multi-page PDF. Alternatively, use the Python script above with img2pdf for higher quality output.
Does converting WebP to PDF reduce image quality?
It can, depending on the tool. Chrome's print-to-PDF and some ImageMagick configurations apply JPEG re-compression. For maximum quality, use img2pdf which embeds images without re-compressing, or convert to PNG first then use img2pdf.
What is the file size of a WebP converted to PDF?
Typically larger than the original WebP, because PDF has additional overhead and may re-compress the image less efficiently than WebP. Img2pdf creates PDFs closest in size to the PNG equivalent. Chrome's export tends to produce larger files with more aggressive compression.