How to Convert WebP to PDF (6 Methods, All Free)
You have a WebP image and you need it as a PDF. Maybe a form submission requires PDF format, you are assembling a portfolio, or you need to send a document to someone whose system does not handle WebP. The conversion is straightforward once you pick the right tool for your situation.
This guide covers six methods to convert WebP to PDF — from a one-click browser tool to command-line batch processing — so you can pick the approach that fits your workflow.
Why Convert WebP to PDF?
WebP is a great web format: small file sizes, lossy and lossless compression, transparency support. But it was designed for browsers, not for documents. PDF is the universal document format — accepted by every form, every print service, every email attachment handler.
Common scenarios:
- Document submissions. Government forms, university applications, and insurance claims almost always require PDF. None of them accept WebP.
- Print services. Photo labs, poster printers, and business card vendors accept PDF and JPG. WebP is not on the list.
- Multi-page documents. You have several WebP screenshots or scans that need to become a single PDF file. PDF handles multi-page natively; WebP does not.
- Archiving. PDF/A is the standard for long-term document preservation. WebP has no equivalent archival profile.
- Sharing with non-technical recipients. PDF opens on every device without any special software. WebP still confuses people who have never heard of the format.
If you just need a different image format instead of a document, converting WebP to JPG or converting WebP to PNG may be a better fit.
Try it yourself
Convert between any image format instantly — free, instant, no signup. Your images never leave your browser.
Methods Comparison
| Method | Platform | Batch Support | Quality Control | Free |
|---|---|---|---|---|
| Browser print-to-PDF | Any OS | No | Limited (margins, scale) | Yes |
| ImageMagick 7.1 | Windows, macOS, Linux | Yes | Full (DPI, compression, color) | Yes |
| Python Pillow 10.x | Any (with Python) | Yes | Full (DPI, dimensions, page size) | Yes |
| LibreOffice 24.x | Windows, macOS, Linux | Yes (macro/CLI) | Moderate (page layout) | Yes |
| Online converter tools | Any OS | Varies | Limited | Varies |
| macOS Preview | macOS only | Yes (multi-select) | Moderate (Quartz filters) | Yes |
Method 1: Browser Print-to-PDF (Any OS, No Install)
Every modern browser can "print" a displayed image to a PDF file. This works on Windows, macOS, Linux, and ChromeOS.
- Open the WebP file in your browser. Drag it into a browser window or use File > Open.
- Press Ctrl + P (Windows/Linux) or Cmd + P (macOS).
- Set the destination to Save as PDF or Microsoft Print to PDF.
- Adjust orientation and margins. Set margins to None if you want the image to fill the page.
- Click Save and choose your filename.
Limitations: No batch support, no DPI control, and the image is rendered at screen resolution within page dimensions. For high-resolution WebP files, the output may not preserve the full pixel density. Use ImageMagick or Pillow if resolution matters.
Method 2: ImageMagick 7.1 (CLI, Batch Support)
ImageMagick (License: Apache 2.0) is the go-to command-line tool for image conversion. Version 7.1 uses the magick command instead of the legacy convert command.
Install:
# macOS
brew install imagemagick
# Ubuntu/Debian
sudo apt install imagemagick
# Windows (winget)
winget install ImageMagick.ImageMagick
Single file:
magick input.webp output.pdf
With quality and DPI control:
magick input.webp -density 300 -quality 95 output.pdf
The -density 300 flag sets the PDF resolution to 300 DPI — suitable for print. The -quality 95 flag controls JPEG compression inside the PDF (ImageMagick embeds images as JPEG by default for lossy sources).
Batch convert all WebP files in a directory:
for f in *.webp; do
magick "$f" -density 300 "${f%.webp}.pdf"
done
Combine multiple WebP images into one multi-page PDF:
magick *.webp -density 300 combined.pdf
This creates a single PDF with one image per page — useful for assembling scans, screenshots, or photo collections.
Verify your version:
magick --version
# Should show: ImageMagick 7.1.x
Method 3: Python Pillow 10.x (Scripted, Full Control)
Pillow (License: HPND — Historical Permission Notice and Disclaimer) is the standard Python imaging library. If you already have Python installed, Pillow gives you the most control over the PDF output.
Install:
pip install "Pillow>=10.0,<11.0"
Single file conversion:
from PIL import Image
img = Image.open("input.webp")
# Convert RGBA to RGB (PDF does not support alpha channel)
if img.mode == "RGBA":
img = img.convert("RGB")
img.save("output.pdf", "PDF", resolution=300.0)
Batch convert with a script:
from pathlib import Path
from PIL import Image
webp_files = sorted(Path(".").glob("*.webp"))
for webp_path in webp_files:
img = Image.open(webp_path)
if img.mode == "RGBA":
img = img.convert("RGB")
pdf_path = webp_path.with_suffix(".pdf")
img.save(str(pdf_path), "PDF", resolution=300.0)
print(f"Converted: {webp_path} -> {pdf_path}")
Combine multiple images into one PDF:
from pathlib import Path
from PIL import Image
webp_files = sorted(Path(".").glob("*.webp"))
images = []
for webp_path in webp_files:
img = Image.open(webp_path)
if img.mode == "RGBA":
img = img.convert("RGB")
images.append(img)
if images:
images[0].save(
"combined.pdf", "PDF",
resolution=300.0,
save_all=True,
append_images=images[1:]
)
print(f"Combined {len(images)} images into combined.pdf")
The save_all=True and append_images parameters tell Pillow to create a multi-page PDF. Each image becomes one page.
Method 4: LibreOffice 24.x (GUI and CLI)
LibreOffice (License: MPL-2.0) can convert images to PDF through its Draw application or via the command line. Useful if you already have LibreOffice installed and prefer a GUI workflow.
GUI method:
- Open LibreOffice Draw.
- Go to Insert > Image and select your WebP file.
- Resize the image to fit the page, or adjust the page size under Slide > Slide Properties.
- File > Export as PDF. Adjust quality settings (JPEG compression, DPI) in the dialog.
- Save.
Command-line batch conversion:
libreoffice --headless --convert-to pdf *.webp
The --headless flag runs LibreOffice without a GUI window. Each WebP file produces a separate PDF. This works on Linux servers without a display.
Verify your version:
libreoffice --version
# Should show: LibreOffice 24.x
LibreOffice is heavier than ImageMagick or Pillow for this task — it loads an entire office suite just to wrap an image in PDF. Use it when it is already installed and you do not want to set up additional tools.
Method 5: Online Converter Tools
Browser-based conversion tools handle the job without any software installation. You upload the file, the server converts it, and you download the result.
Trade-offs to consider:
- Privacy. Your images are uploaded to a third-party server. For sensitive documents (IDs, medical images, financial records), this is a non-starter.
- File size limits. Most free tiers cap at 5-20 MB per file.
- Batch limits. Free accounts typically allow 2-5 files per conversion.
- Speed. Upload and download times add latency that local tools avoid.
If privacy matters or you are converting more than a handful of files, use Pixotter's converter instead — it processes everything in your browser using WebAssembly. Your images never leave your device, there are no file size limits, and batch conversion is supported.
Method 6: macOS Preview
Preview, the built-in image viewer on macOS, handles WebP-to-PDF conversion natively.
Single image:
- Open the WebP file in Preview (double-click usually works).
- File > Export as PDF.
- Choose a location and save.
Multiple images into one PDF:
- Select all WebP files in Finder.
- Right-click and choose Open with > Preview.
- In Preview's sidebar, select all pages (Cmd + A).
- File > Print → set destination to Save as PDF.
Preview uses macOS Quartz rendering, which produces clean PDF output with accurate color. No install, no setup — just the built-in tools that ship with every Mac.
Tips for Quality Output
Resolution matters. If the PDF is destined for print, set the output to 300 DPI. Screen-only PDFs (sharing, form submission) are fine at 150 DPI or even 72 DPI — smaller file size with no visible difference on screen.
Handle transparency. WebP supports alpha channels; PDF does not. If your WebP has a transparent background, the conversion tool will replace it with white (or sometimes black). Convert the image to RGB mode before saving to PDF to control this — the Pillow script above handles this explicitly.
Watch for color shifts. WebP uses sRGB color space. PDF supports multiple color spaces including CMYK. For print work, verify that colors in the output PDF match the source WebP. ImageMagick's -colorspace sRGB flag ensures consistent color handling.
File size. A 2 MB WebP image can produce a 5-10 MB PDF depending on the compression settings inside the PDF. Use -quality 85 in ImageMagick or resolution=150.0 in Pillow to reduce file size when print quality is not needed.
For more on what WebP is and when to use it, see our explainer. If you are converting other image formats to PDF, our complete image-to-PDF guide covers JPG, PNG, HEIC, TIFF, and more.
Frequently Asked Questions
Can I convert WebP to PDF without installing any software? Yes. Open the WebP file in any browser and use the print dialog (Ctrl + P or Cmd + P) to save as PDF. Or use Pixotter's converter for batch support and better quality control — it runs entirely in your browser.
Does converting WebP to PDF reduce image quality?
It depends on the tool and settings. The conversion itself does not degrade quality if you use lossless embedding. ImageMagick with -quality 100 and Pillow with default settings both embed the image without recompression. Browser print-to-PDF may re-render the image at screen resolution, which can reduce quality for high-resolution source files.
How do I combine multiple WebP images into a single PDF?
ImageMagick: magick *.webp combined.pdf. Pillow: use the save_all=True parameter (see the script above). macOS Preview: open all files, select all in the sidebar, and print to PDF.
What happens to transparency when converting WebP to PDF? PDF does not support transparency the same way WebP does. Transparent areas become white (or black, depending on the tool). Convert RGBA images to RGB before saving to control the background color.
Is there a file size limit for WebP-to-PDF conversion? Not with local tools (ImageMagick, Pillow, Preview). Online converters typically limit free uploads to 5-20 MB. Pixotter's browser-based converter has no file size limit since processing happens on your device.
Can I convert animated WebP to PDF?
Animated WebP contains multiple frames. Most tools will extract only the first frame when converting to PDF. If you need all frames, extract them individually first (ImageMagick: magick animated.webp frames_%03d.png) and then combine the frames into a multi-page PDF.
What resolution should I use for the PDF? 300 DPI for print, 150 DPI for screen sharing and form submissions, 72 DPI when file size is the priority. Match the resolution to the intended use — higher DPI means larger file size with no visible benefit on screens.
Is the conversion reversible? Can I get the WebP back from the PDF?
You can extract the embedded image from a PDF using tools like pdfimages (part of poppler-utils), but the result depends on how the image was embedded. If the PDF tool recompressed the image as JPEG inside the PDF, you will not recover the original WebP quality. Keep the original WebP file.
Try it yourself
Combine images into a single PDF document — free, instant, no signup. Your images never leave your browser.