Clioos › Guides › JPG to PDF

How to Convert JPG to PDF

By Clioos 团队

The free offline way is Pillow: each JPG becomes one PDF page, no upload, no account. Tested 2 November 2026 with Pillow 10.2.0 — two sample JPGs (1240x1754 at 1,109,508 bytes and 800x1000 at 405,964 bytes) became a 2-page PDF of 1,148,550 bytes. Clioos does not offer a JPG-to-PDF tool — this guide teaches the method.

At a glance

Steps

  1. Install Pillow: pip install pillow (Pillow 10.2.0 in the test).
  2. Run: Image.open(first).save("out.pdf", "PDF", save_all=True, append_images=rest, resolution=150.0).
  3. Verify: open the PDF and count the pages (2 in the test), then compare sizes — input 1,515,472 bytes, output 1,148,550 bytes.
  4. If a page looks wrong, re-run from the original JPGs — never re-convert the PDF.

Worked example (tested 2 November 2026)

Test files: two generated sample JPGs (photo-like gradients, saved at JPEG quality 85). Method: Pillow 10.2.0, one image per page, 150 DPI.

FileDimensionsSize
page1.jpg1240x17541,109,508 bytes
page2.jpg800x1000405,964 bytes
combined.pdf (output)2 pages1,148,550 bytes

Total JPG input was 1,515,472 bytes; the PDF came out smaller (1,148,550 bytes) because Pillow re-encodes the images. Page count matched the image count exactly: 2 in, 2 out.

Which method to pick

What it can't do

Free alternatives, honestly compared

Frequently asked questions

Is it free to convert JPG to PDF?

Yes, with Pillow — free and open source, no per-file charge. Browser tools are free up to a daily limit.

Will the PDF be smaller than the JPGs?

Not necessarily. In the test it was smaller (1,148,550 vs 1,515,472 bytes) because the images were re-encoded — but with already-compressed JPGs the PDF can come out larger. Check the output size.

Can I control the page size?

Yes: page size follows the image dimensions at the resolution you set (150 DPI in the test). Larger images make larger pages.

Does the PDF text become searchable?

No. JPG-to-PDF packs pictures into pages; nothing is OCRed. For searchable text, OCR the images first.


Related guides: How to convert PDF to JPG · How to convert PDF to PNG · How to merge PDF files · All guides · Tool: PDF Probe