Guide
How to Convert JPG to PDF for Free
You have a photo, a scan, or a screenshot saved as JPG and you need it as a PDF — for an upload form, an email attachment, or a multi-page document. Here are four free ways to do it, from instant browser tools to scriptable command-line options.
Why convert a JPG to PDF?
JPG is the default format for photos, but PDF is what most systems expect for documents. Common reasons to convert:
- Upload forms. Government portals, insurance claims, and job applications often require PDF. A JPG scan of your ID gets rejected.
- Combining pages. Five scanned receipts as separate JPGs are unwieldy. A single PDF keeps them in order and is easier to email.
- Consistent printing. PDF preserves exact dimensions and margins. A JPG printed from a photo viewer may crop or stretch unpredictably.
- Professional appearance. Sending a PDF looks more polished than attaching loose image files.
Method 1: Browser tool (fastest, any OS)
The JPG to PDF converter on this site runs entirely in your browser. No file is ever uploaded — the PDF is built in JavaScript on your own device.
- Open the tool and drop one or more JPG files onto the page, or click to browse. You can also paste from the clipboard with Ctrl+V (&Cmd;V on Mac).
- Reorder the images if needed — each one becomes a page in the final PDF. Choose a page size: Fit to image (matches the photo exactly), A4, or Letter.
- Click Convert. The PDF downloads immediately.
No signup, no watermark, no file-size cap beyond your browser's memory. Because nothing is uploaded, conversion is instant and works offline once the page has loaded. The tool also accepts PNG and WebP, so you can mix formats in a single batch.
Method 2: macOS Preview
On a Mac, Preview can convert a JPG to PDF without installing anything:
- Open the JPG in Preview.
- Go to File → Export as PDF.
- Choose a destination and click Save.
To combine multiple JPGs into one PDF: select all the images in Finder, right-click, and choose Quick Actions → Create PDF. macOS stitches them into a multi-page document in file-name order.
The downside: Preview offers no control over page size or margins. If you need A4 or Letter layout, the browser tool or a script is a better fit.
Method 3: ImageMagick (command line)
ImageMagick's convert command handles single and batch conversions from the terminal:
# Single image
magick photo.jpg photo.pdf
# Multiple images → one PDF
magick scan-*.jpg combined.pdfBy default ImageMagick embeds the image at its native resolution. To force a specific page size:
magick scan-*.jpg -page A4 -gravity center combined.pdfInstall with brew install imagemagick on macOS or sudo apt install imagemagick on Debian/Ubuntu. On some distributions the PDF delegate is disabled by default — if you get a policy error, edit /etc/ImageMagick-7/policy.xml and allow PDF writes.
Method 4: Python script
For automated workflows — processing uploaded receipts, generating reports, archiving scans — a Python script gives you full control:
from PIL import Image
from pathlib import Path
images = sorted(Path(".").glob("scan-*.jpg"))
pages = [Image.open(p).convert("RGB") for p in images]
pages[0].save(
"combined.pdf",
save_all=True,
append_images=pages[1:],
resolution=300,
)Install Pillow with pip install Pillow. The save_all flag merges all images into a single multi-page PDF. Pillow embeds the JPEG data directly, so file size stays close to the sum of the originals — no re-compression.
Preserving image quality
A good JPG-to-PDF conversion should not degrade the image. Here is what to watch for:
- No re-compression. The browser tool and Pillow embed the original JPEG data into the PDF without re-encoding. ImageMagick does the same by default. If a tool re-compresses the image, you lose quality for no reason.
- Resolution metadata. A 3000 × 4000 image at 300 DPI prints at 10 × 13 inches. If the tool ignores DPI metadata and assumes 72 DPI, the printed page comes out much larger and softer. Set DPI explicitly when it matters.
- Page size. “Fit to image” avoids scaling entirely — the PDF page matches the image pixel-for-pixel. A4 or Letter layout centers the image on a standard page, which is useful for printing but may add white borders.
Combining multiple JPGs into one PDF
Every method above supports multi-image input. The browser tool lets you drag images into the order you want before converting. ImageMagick and Pillow process files in the order you specify on the command line or in the glob pattern.
A few tips for multi-page PDFs:
- Name files with leading zeros (
scan-001.jpg,scan-002.jpg) so alphabetical sorting matches page order. - Stick to one page size for the whole document — mixing A4 and Letter pages in a single PDF looks inconsistent when printed.
- If you already have pages in PDF format, use the Merge PDF tool to combine them instead of converting back to images first.
Related conversions
Depending on your starting format and goal, one of these may be a better fit:
- PNG to PDF. PNG files (lossless, often from screenshots) work with the PNG to PDF converter. The process is identical — images are embedded without re-compression.
- Any image to PDF. The Image to PDF tool accepts JPG, PNG, and WebP in a single batch.
- PDF to JPG. Going the other direction? The PDF-to-JPG guide covers extracting pages as images.
- Compress an existing PDF. If the resulting PDF is too large for email, the Compress PDF tool can shrink it. See the compression guide for more options.
Ready to convert?
The JPG to PDF converter turns your images into a clean PDF — free, no signup, no file-size limit, entirely in your browser. Need to go the other way? PDF to JPG extracts pages as images.