PDF to JPG and back: what you lose on the round trip
It happens the other way round more often than you would expect: a document exists as a perfect PDF, and the form asks for a JPG. Or the opposite, and you have a folder of page photographs that must become one document.
The conversion works reliably in both directions, but only one direction is lossless. Knowing which one, and why, saves a lot of quality.
PDF to JPG: a render, not a conversion
Turning a PDF page into an image means rasterising it — drawing the page at a chosen resolution into a pixel grid. Text that was stored as text becomes a picture of text, and from that moment it is no longer selectable, searchable or editable. There is no way to reverse this; the text information is genuinely gone.
That is not a defect. It is what a raster image is. The practical consequence is that you should pick the resolution at the moment of rendering, because you cannot add detail later. Rendering at 72 DPI and then upscaling to make it look bigger produces a soft, blurred page with more pixels than before and no more information.
Our tool renders with pdf.js — the same engine Firefox uses to display PDFs — at a resolution you choose, and writes one JPG per page. Multi-page documents produce multiple files, delivered as a single zip download rather than a pile of individual downloads.
| Use case | Suggested render | Why |
|---|---|---|
| Portal accepts only JPG, page to be read on screen | 100–150 DPI, quality 80 | Legible, and typically 100–300 KB per page |
| Page will be printed and submitted physically | 200–300 DPI, quality 85 | Print-grade detail without a 40 MB file |
| Thumbnail, preview or cover image | 72–96 DPI | Small and fast; detail is irrelevant |
| Page containing a photograph for reuse | 300 DPI, quality 92 | The photo inside deserves the resolution |
JPG to PDF: the lossless direction
Going the other way, JPG and PNG files are simply embedded into PDF pages, and the image bytes are copied as they are. A 200 KB JPEG in becomes a 200 KB JPEG inside the PDF, plus a handful of bytes of page description. Nothing is re-compressed, so there is no quality loss at all.
This is why rebuilding a document from page images works so well: if those page images are good, the PDF is good. And it is also why the file size of an image-based PDF is roughly the sum of its images — there is no compression magic to be had at that step, since the images were already compressed.
The one decision that matters is page size. Fit-to-image pages give the smallest file; A4 pages give the most printable result. Neither changes the pixels.
Generation loss, or why the round trip is not free
Every JPEG re-encode loses a little information, and the loss compounds. Render a PDF page to JPEG at quality 75, convert that JPEG back into a PDF, then render again at quality 75, and the second image is visibly worse than the first — artefacts from processing the first image are themselves processed a second time.
Rules that avoid it: when you need both a PDF and a JPG, produce them from the original file rather than from each other. When you must re-encode, go up in quality rather than staying level, so that one generation costs as little as possible. And never use JPEG for intermediate files — work from the PDF or from a PNG, and encode to JPEG only as the last step.
Text PDFs versus image PDFs
The two kinds of PDF look identical on screen and behave completely differently in every other respect.
A text PDF exports from a word processor or a portal contains fonts and character data. It is a few tens of kilobytes per page, its text can be selected and searched, it can be compressed losslessly, and converting it to an image throws all of that away. If you have a choice, keep it as text and render only if a portal forces you to.
An image PDF comes from a scanner or a phone camera. Each page is one photograph, typically 200 KB to 2 MB, with no text layer. Its quality is fixed at capture time, and its size can only be reduced by re-encoding, which loses a little more each time. Recognising which one you are holding tells you immediately what is possible: lossless shrinking for the first, a quality decision for the second.
The portal only accepts one JPG, but my document has six pages
This is the most common dead end in the whole workflow, and the answer usually is not a conversion at all. Several things are worth trying before you compromise the document.
- Read the requirement again. Portals that say "JPG" often mean "image", and accept PNG; portals that cap the count at one file often have a separate, higher limit for PDFs somewhere else in the form.
- Combine vertically. For a short document — two or three pages — stacking pages into a single tall image is acceptable and readable on phones. Six pages of dense text are not; the resulting image is either enormous or illegible.
- Reduce to the essential pages first. A six-page bundle where only two pages satisfy the requirement should be a two-page bundle; split the PDF first, then render.
- Check for a PDF upload path in a different section. Photo and signature slots want images; the document-proof slot usually accepts PDF and often has a larger size allowance.
Metadata, EXIF and what leaves with your file
JPEG files from a phone carry EXIF tags: camera model, timestamp, and often GPS coordinates. Rendering a PDF page to JPG produces a clean image with no EXIF, which is usually desirable. Going the other way, an embedded JPEG inside a PDF keeps whatever tags it had, though PDF viewers rarely surface them.
If you are sharing a photograph of a document and would rather not disclose where it was taken, convert it to an image format or re-save it through any tool that drops EXIF — every re-encode does — or simply use our compressor, which writes fresh headers and discards the metadata block entirely.
Frequently asked questions
Can I get the text back out of a JPG of a document?
Only approximately, with OCR, which guesses characters from pixels and makes mistakes on small print, stamps and handwriting. Expect to check every field of any extracted number. A raster image contains no text to recover.
How many JPGs should I expect from a PDF?
One per page, rendered at the resolution you choose. A 40-page document produces 40 files, delivered as a single zip so you are not clicking forty download prompts.
Why is my JPG from a PDF so large?
Resolution drives size faster than anything else: doubling the DPI quadruples the pixel count. Rendering an A4 page at 300 DPI means 8.7 million pixels. Drop to 150 DPI for screen reading and the same page is roughly a quarter of the size.
The file tools linked in this guide process selected files in your browser. No account or installation is required; a connection may be needed to load the page and processing code.