JPG to PDF
Convert JPG to PDF in your browser: add JPG or PNG files up to 50 MiB each, arrange them, and download one PDF with one image per page. No images are uploaded.
How to use
- Add your images: Drop your JPG or PNG files onto the box or click to choose them. You can select several at once, and the box stays on screen afterwards so you can keep adding more. Each file can be up to 50 MiB (52,428,800 bytes).
- Put the pages in order: Use ↑ and ↓ to move an image up or down, ✕ to drop one, or Clear all to start the list again. The PDF follows the list from top to bottom, one image per page.
- Choose a page size: Fit to image (no borders) gives every page the pixel size of its image. A4 portrait (centered, with margins) puts each image on a standard A4 sheet, scaled down to fit and centered.
- Convert and save: Click the convert button, scroll through the PDF preview, then download converted.pdf. On a phone, Save to device opens the system share sheet when the browser offers file sharing and downloads the PDF when it doesn't.
How this JPG to PDF converter works
This JPG to PDF converter combines JPG and PNG images into one PDF, with one image per page in list order. Each file can be up to 50 MiB; the total batch size is limited by device memory.
The PDF-writing module is loaded when you click Convert and runs inside your browser. Each image is read straight from your disk into memory, a new PDF document is created there, and every image is placed on its own page. There is no server step and no upload, which is why passport scans, payslips, medical letters and handwritten notes are safe to convert here.
Nothing is stored either. Close or reload the tab and both the image list and the finished PDF are gone, because the result only ever lives in the page's memory — download it before you leave. While a conversion is running the drop box is taken off screen, so an image added at that moment cannot slip past the batch the converter already read; wait for the preview, then start a new list.
One image per page is fixed: the tool cannot place two photos side by side on one sheet, and it cannot cut one tall screenshot into several pages. If an image is in the wrong place, move it with the arrows before converting rather than fixing it afterwards.
What happens to the image data depends on the format, and the difference matters. A JPG file is embedded exactly as it is — the writer reads only the headers to learn the width, height and number of color channels, and drops the original bytes into the PDF as a JPEG stream. The picture is never decoded and never re-compressed, so there is no second round of JPEG loss. A PNG takes the other path: it is fully decoded and written back as a compressed pixel stream, which is a lossless rewrite of the same pixels but usually changes the number of bytes.
Fit to image or A4 portrait: which page size to pick
Pick Fit to image (no borders) when the PDF is for reading on a screen, for an upload form, or for sending a set of photos as one file. Each page takes the pixel dimensions of its image, so a 1200 × 800 photo becomes a 1200 × 800 pt landscape page and the image touches all four edges. Pages in the same document can therefore be different shapes and sizes, since a PDF stores a size per page rather than one for the whole file. Note that metadata plays no part here: the DPI value stored in the file is ignored, and one pixel always becomes one point.
Pick A4 portrait (centered, with margins) when the result is going to a printer or to a form that expects standard sheets. Every page is the same A4 portrait sheet and the image is scaled down proportionally and centered inside a content box of 523.28 × 769.89 pt — A4 minus a 36 pt margin, which is about half an inch. The scale factor is the smaller of the width ratio and the height ratio, capped at 1, so a wide photo ends up with exactly 36 pt left and right and more space above and below, while a narrow, tall image gets exactly 36 pt top and bottom and wider side margins.
The cap at 1 is worth knowing about: images smaller than the content box are not blown up to fill the sheet. A 400 × 300 screenshot is drawn at its own size in the middle of the page, so both pairs of margins come out larger than 36 pt. There is no way to make the margin smaller, and there is no A4 landscape, Letter or custom paper size — the two buttons above are the full set of choices.
| Option | Page size | Margins |
|---|---|---|
| Fit to image (no borders) | The image's own pixel size, at 1 pixel = 1 pt | None — the image fills the whole page |
| A4 portrait (centered, with margins) | 595.28 × 841.89 pt on every page | At least 36 pt all round, more on one pair of sides |
The two page-size options and what they do to each page.
What carries over into the PDF — and what doesn't
Four things decide what the finished document can and cannot do:
JPG: original bytes are embedded without re-compression.
PNG: transparent pixels remain transparent.
EXIF: retained inside JPG data, but orientation is not applied.
Text: no OCR or searchable text layer.
Orientation is the one that catches people out: a photo that looks upright in your phone gallery but whose pixels are 1200 wide by 800 tall becomes a 1200 × 800 landscape page, not 800 × 1200. The EXIF block itself travels inside the embedded JPG, GPS coordinates included if the photo carries them, even though the PDF properties only ever name pdf-lib. So scroll through the preview before you download, and rotate anything that came out sideways before converting again.
To turn sideways photos upright before converting, run them through Rotate Image first.
How big the PDF comes out
This is a converter, not a compressor: there is no quality slider and no target size, and the finished PDF can be larger or smaller than the images you put in. For JPG the direction is predictable from the mechanism — the bytes are copied in, so the only extra weight is the PDF structure around them. In our tests a 541,541-byte photo produced a 542,486-byte PDF in Fit to image mode and 542,522 bytes in A4 mode, and two photos totalling 1,303,737 bytes produced 1,305,026 bytes: roughly a kilobyte of overhead each time. Those are single measurements, and the exact byte count shifts slightly between runs because the conversion timestamp is written into the file.
PNG behaves differently, since it is decoded and re-compressed as a pixel stream. Our 800 × 600 PNG sample grew from 214,657 bytes to 616,522 bytes, about 2.87 times its original size. How much any other PNG changes depends on its content and on how efficiently it was encoded in the first place, so treat that figure as one measured example rather than a rule. If a stack of photos turns into a PDF too big for an email or an upload form, compress it afterwards instead of expecting this step to shrink it.
When the finished document is still too heavy for an upload form, send it through Compress PDF.
Formats, size limits and what makes a batch fail
Only JPG and PNG get through, and they are checked twice: the file picker filters by type, and the converter then inspects the first bytes of each file, so renaming a WebP to .jpg will not fool it. HEIC and HEIF photos — the default format on recent iPhones — are refused, as are WebP, GIF, BMP, TIFF and SVG. Animated PNGs are a special case: they pass the signature check but the PDF writer rejects multi-frame images, so an APNG fails like a damaged file rather than contributing its first frame. For CMYK JPEGs exported for print, converting them to RGB before this step is the safer route.
The only size rule in the code is 50 MiB (52,428,800 bytes) per file, applied by the file picker. There is no limit on how many images you add or on their combined size — the real ceiling is how much your browser can hold, because every file is read into memory before the PDF is assembled. A laptop copes with far more than an older phone, so if a very large batch stalls, convert it in two or three smaller PDFs.
One more thing to expect: if a single image can't be read, the whole batch stops and no partial PDF is produced. The error message names the file that failed, so remove or replace that one and convert again.
Convert HEIC, WebP and other supported image formats to JPG or PNG with Image Converter before adding them here.
How this tool is checked
- The logic behind this tool is covered by 22 automated test cases (hand-checked examples, edge cases and invalid input), and they run again before every release.
- Before each release, a real browser opens this page, runs it on sample files (including a damaged one) and checks the file it produces.
- Your files are processed in your browser and are never uploaded to our server.
Frequently asked questions
- Does converting JPG to PDF reduce the quality?
- No. JPG files are embedded in the PDF exactly as they are, without being decoded or re-compressed, so there is no second round of JPEG loss and the resolution stays the same. That is also why the PDF usually weighs about the same as the images: a 541,541-byte photo produced a 542,486-byte PDF in our test.
- Can I combine several JPG images into one PDF?
- Yes. Select as many JPG or PNG files as you like and they all go into a single PDF, one image per page, in the order shown in the list. Use ↑ and ↓ to rearrange them before converting, and ✕ to drop one. The drop box stays on screen while the list is open, so dragging in more images adds them to the end rather than replacing what's there.
- Why is my photo sideways in the PDF?
- Because the EXIF orientation tag is never applied. Phones often store a photo as landscape pixels plus a flag saying "rotate this for display"; the PDF writer uses the pixel dimensions and ignores the flag, which stays inside the embedded JPG without affecting the page. Rotate the image before you convert it and the page will match what you see in your gallery.
- Should I choose Fit to image or A4 portrait?
- Choose Fit to image (no borders) for screen reading and uploads: each page takes the image's pixel size and the picture fills it edge to edge. Choose A4 portrait (centered, with margins) for printing or for forms that expect standard sheets: every page is A4 portrait and the image is scaled down and centered with a margin of at least 36 pt. Images smaller than the content box are not enlarged.
- Can I convert HEIC photos from my iPhone?
- Not directly — this tool accepts only JPG and PNG, and HEIC files are refused by both the file picker and the format check. Convert them to JPG or PNG first and then add them here. Alternatively, set Settings › Camera › Formats to Most Compatible so your iPhone saves JPG from now on.
- Why is my PNG much bigger inside the PDF?
- Because PNG, unlike JPG, is fully decoded and written back as a compressed pixel stream, which can take more bytes than the original encoding. Our 800 × 600 PNG sample went from 214,657 bytes to 616,522 bytes, about 2.87 times its size; other PNGs change by different amounts depending on their content. Saving the image as JPG before converting keeps the PDF closer to the original size.
- Why does JPG to PDF conversion fail with a damaged image?
- If one image cannot be read, the entire conversion fails and no partial PDF is created. The message starts with the name of the file that failed. Remove or replace that image — opening it in a photo app and saving a fresh copy is worth trying if the file itself looks fine — and convert the rest again.
- Does it work on a phone, and is my PDF uploaded anywhere?
- It works in any modern mobile browser, and nothing is uploaded: the PDF is assembled on your device inside your browser. When you tap Save to device, the system share sheet opens if the browser supports sharing files, and otherwise the PDF downloads straight to your phone. Large batches are limited by your phone's memory, so split them if a conversion stalls.
Related tools
Cite this tool
Using a result in a report, paper or assignment? Copy a ready-made reference.
Gingertool. (2026). JPG to PDF [Online tool]. Retrieved November 21, 2026, from https://gingertool.com/en/pdf/jpg-to-pdf/
“JPG to PDF.” Gingertool, November 21, 2026, https://gingertool.com/en/pdf/jpg-to-pdf/. Accessed November 21, 2026.
@misc{gingertool-jpg-to-pdf,
author = {{Gingertool}},
title = {JPG to PDF},
year = {2026},
url = {https://gingertool.com/en/pdf/jpg-to-pdf/},
note = {Accessed: 2026-11-21}
}