Menu
Advertisement

Convert WebP Images to PDF

Make a PDF from WebP pictures you saved from a website. Runs in your browser, nothing is uploaded.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

How to convert WebP to PDF

WebP is an image format used by many websites because it makes small files. The trouble is that not every program that prints, signs or uploads documents accepts it. A PDF has no such problem, so turning WebP pictures into a PDF is a reliable way to share them.

Each picture is redrawn as a high-quality JPEG first, then placed on a page. Quality set to Original keeps that high quality. Smaller file redraws the pictures at up to 2000 pixels on the long side to make a lighter PDF.

The conversion runs in your browser. Your files are never uploaded: the work happens in your browser, so nothing leaves your device. It adds no watermark and needs no sign-up.

What to know about WebP

  • WebP was made for the web: it stores a picture in fewer bytes than JPG or PNG at similar quality, and it can be lossy or lossless.
  • WebP can also hold transparency and animation, which many document tools do not support. A PDF page shows only one still picture.
  • Converting between formats means decoding the pixels and encoding them again. Each lossy step can lose a little detail, so convert once and keep your original.
  • In Python, Pillow can open a WebP file if it was built with WebP support, and writing a PDF takes a few lines, as in the example below.

How to turn WebP images into a PDF

  1. Add your WebP files

    Drop them on the page or choose them from your device.

  2. Order the pages

    Each picture is one page. Move pictures earlier or later with the arrows.

  3. Choose the page options

    Pick a page size, orientation and margin, and decide between Original and Smaller file.

  4. Convert and download

    Press Convert to PDF and download the file.

WebP to PDF at a glance

What happens to a WebP picture on the way in.

StepWhat happens
OpenYour browser reads the WebP file
ConvertThe picture is redrawn as a high-quality JPEG
PlaceThe JPEG goes on a page with the size and margin you chose
Smaller fileThe picture is redrawn at up to 2000 pixels on the long side first

WebP to PDF examples

Product images saved from a web page

Settings

Page size: A4 Orientation: Auto Margin: Small Quality: Original

Images from a web page vary in shape. Auto orientation gives each one the page that suits it.

A web gallery to email

Settings

Page size: Same as image Orientation: Auto Margin: None Quality: Smaller file

Smaller file keeps the PDF light enough for an email.

Do the same in Python

Python (Pillow)
from PIL import Image
image = Image.open("banner.webp").convert("RGB")image.save("banner.pdf")

Pillow decodes the WebP, convert("RGB") drops any transparency, and saving with a .pdf name writes a one-page PDF.

Common WebP to PDF mistakes

  • Expecting an animated WebP to become an animated PDF. A PDF page shows one still picture.
  • Deleting the original WebP after converting. Keep it, because the PDF holds a re-encoded copy.
  • Choosing Original for a huge batch that needs to be small. Use Smaller file instead.
  • Using Same as image for pages you will print. Choose A4 or US Letter.

WebP to PDF FAQ

Why would I convert WebP to PDF?

Many document sites, printers and signing tools do not accept WebP. A PDF works almost everywhere.

Is the WebP converted to JPEG inside the PDF?

Yes. The tool redraws each WebP as a high-quality JPEG and places it on a page.

Can I convert several WebP files at once?

Yes. Add them all and each becomes one page of the same PDF, in the order you set.

What happens to an animated WebP?

The picture your browser draws for it is placed on the page as a still image. The animation is not kept.

Are my WebP files uploaded?

No. The conversion runs in your browser and your files stay on your device.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started