JPG to PDF: page size, image order and why the file is huge
PDF is a container, not a compressor. Resize and compress the images once, then convert — and choose page size deliberately.
NoUpload engineering teamLast updated
Key facts
- A PDF made from images is roughly the sum of the image bytes; JPEG and PNG are embedded as-is, not recompressed.
- Fit-image pages map 96 pixels to 72 points, so the page size in points is pixels × 0.75.
- A 4032×3024 phone photo becomes a 42×31.5 inch page in fit-image mode; A4 scales it into a 547×794 point content box.
- Effective print resolution on A4 is pixels ÷ 7.6 inches: 300 dpi needs about 2280 pixels across.
Converting images to PDF feels like it should be a compression step. It is not. A PDF is a container: a JPEG or PNG dropped into it is stored byte-for-byte, and the file grows by roughly the size of its images plus a few kilobytes of structure. Ten 4 MB phone photos make a 40 MB PDF because that is what was put in.
That is good news for quality and bad news for email. Both are manageable once you know the two settings that decide everything: page size and image preparation.
Two page sizes, two different documents
The JPG to PDF converter offers A4 and “Fit image”. They are not cosmetic variants; they produce documents with different geometry.
A4
Every page is exactly 595 × 842 points (210 × 297 mm, the international A4 size). Each image is scaled to fit inside a content box of 547 × 794 points — A4 minus a 24-point margin on every side — and centred. The aspect ratio is always preserved, so a square photo leaves white space above and below, and a wide photo leaves space at the sides.
This is the right choice for anything that will be printed or sent to someone who expects a normal document. Every page is the same size, so a print dialog does not have to guess.
Fit image
Every page is exactly the size of its image, using the PDF convention of 72 points per inch and the web convention of 96 pixels per inch:
page size in points = pixels × 72 / 96 = pixels × 0.75
A 4032 × 3024 phone photo becomes a 3024 × 2268 point page. Divide by 72 and that is 42 × 31.5 inches — poster-sized on paper, even though it looks normal in a viewer that fits the page to the window.
That is not a bug; it is what “no margin, no letterboxing” means. Fit image is the right choice for screenshots, comics, slide exports and anything read on screen. It is the wrong choice for a document you will print at 100%.
| Source image | Fit-image page | On A4, printed full width |
|---|---|---|
| 4032 × 3024 (12 MP phone) | 42 × 31.5 in | ≈ 530 dpi |
| 3000 × 2000 (6 MP camera) | 31.25 × 20.8 in | ≈ 395 dpi |
| 1200 × 1600 (scan) | 12.5 × 16.7 in | ≈ 158 dpi |
The last column is the useful one for print: A4’s content box is 7.6 inches wide, so pixels ÷ 7.6 gives the effective resolution. 300 dpi needs about 2280 pixels across; 150 dpi needs about 1140.
What happens to each format
| Input | How it is stored in the PDF | Quality |
|---|---|---|
| JPEG | Original bytes embedded as-is | Unchanged |
| PNG | Original bytes embedded, alpha kept as a soft mask | Unchanged |
| WebP | Decoded, flattened onto white, re-encoded as JPEG at 90 | One generation lost |
| AVIF | Decoded, flattened onto white, re-encoded as JPEG at 90 | One generation lost |
PDF has no WebP or AVIF support, so those two formats have to be converted. PNG transparency is preserved; WebP and AVIF are composited onto white because the JPEG they become has no alpha channel. If a transparent logo must sit on a coloured page, convert it to PNG first rather than letting it flatten to white.
The output is named after the first file in the list, with a .pdf extension. If the first file is scan-001.jpg, the result is scan-001.pdf — which is why the order matters beyond pagination.
Order is pagination
One image becomes one page, in the order shown in the list. There is no “sort by filename” step, because filename order is often wrong: page10.jpg sorts before page2.jpg, and camera exports are numbered in capture order, not reading order.
Before converting:
- Drag the files into the intended page order.
- Check the first and last item, then spot-check the middle.
- For a two-sided scan, confirm the scanner did not interleave front and back pages.
If the order is already wrong in the PDF, reorder the pages afterwards; nothing is lost by fixing it later, but it is one extra step.
The one resize worth doing first
Because JPEGs are embedded untouched, converting first and compressing later means the compressor has to decode, downscale and re-encode every image. Doing it before conversion is the same work with a better result: you control the final pixel dimensions instead of accepting a preset.
For an A4 document printed at 300 dpi, resize the long edge to about 2280 pixels. For screen-only reading, 1600 is plenty. Then encode JPEG at quality 80–85. Two tools do this without uploading:
- Resize images to set the long edge.
- Compress images to trade quality for bytes at that size.
Do it once. A JPEG that is resized, saved at quality 80, then resized again has been through two lossy generations. Start from the original, resize to the final size, save once, convert.
For reference: a 4032 × 3024 photo at quality 80, resized to 2280 × 1710, is typically 400–700 KB. The same photo untouched can be 3–6 MB. That is the difference between a 6 MB PDF and a 45 MB one.
Scans are a different problem
A scanned page is already an image, so the same rules apply — but the failure modes are different:
- Scan at 300 dpi, not 600. 600 dpi doubles the pixels for no visible gain on text, and quadruples the file size.
- Greyscale is usually enough. A black-and-white text page saved as greyscale is a third of the size of colour, with no loss of legibility.
- Avoid phone photos of screens. They add moiré and reflections that no amount of compression fixes. Use a scanner app’s document mode, which corrects perspective and flattens the background.
- An image-only PDF has no text. If the scan needs to be searchable, run OCR after conversion — it adds an invisible text layer, which makes the file somewhat larger.
Privacy details that surprise people
PDF has no EXIF field, but the JPEG bytes inside can still carry the EXIF block from the camera — including GPS coordinates. If the photo’s location matters, strip the metadata before converting, not after.
The conversion itself happens in a Web Worker in the tab. The images are read from disk and the PDF is written back to disk; there is no upload endpoint and no account.
Questions this guide answers
Why is my JPG-to-PDF file so large?
Because the images are embedded without recompression. Ten 4 MB photos make a roughly 40 MB PDF. Resize and compress the images first if size matters more than keeping the originals intact.
Should I choose A4 or fit image?
A4 for anything that will be printed or treated as a normal document: every page is the same size with a margin. Fit image for screenshots, comics and screen reading, where a page exactly the size of the image is preferable.
Does converting JPG to PDF reduce quality?
No for JPEG and PNG: the original bytes are embedded. WebP and AVIF cannot be stored in PDF, so they are decoded and re-encoded as JPEG at quality 90, which costs one generation.