LocalToolkit
HomePDF Tools › JPG to PDF Converter

JPG to PDF, Without Re-compressing

The JPEG bytes are copied into the PDF as they are — no second generation of loss.

🔒 Runs in your browser. Nothing is uploaded — verify it in the network panel, or disconnect and try again.

Why this conversion can be lossless

PDF has a filter called /DCTDecode that accepts a JPEG bitstream verbatim. The PDF reader hands those bytes to a JPEG decoder and draws the result. So a JPEG can be packaged into a PDF with no pixels re-encoded and no quality lost — the file grows by a few hundred bytes of document structure and that is all. This is why many online converters produce a JPG-to-PDF output almost identical in size to the input, and why any converter that produces a dramatically larger or smaller file is doing something else.

Page size choices, and what each does to the image

Aspect ratio is never sacrificed

Many naive converters stretch an image to fill a fixed page, which distorts faces and circles into ellipses. This one scales uniformly and centres the result, so the only variable is how much white space surrounds the picture. If you need the image to fill the page exactly, resize it to the page's aspect ratio first — a 1:1.414 rectangle for A4 — and then convert with a zero margin.

When one page is not what you want

A multi-page document built from a stack of photographs — a scanned contract, a set of receipts, a portfolio — is better served by the images-to-PDF tool, which takes the whole set at once and produces one page per image in the order you choose. Converting each file separately and then looking for a merge tool is more work and produces the same result with more opportunities for the pages to end up out of sequence.

The output has no text layer. Whatever letters are visible in the picture are pixels, so the PDF is not searchable. For photographs that is irrelevant; for scans of documents it is the main limitation, and it is a property of image-based PDFs rather than of this tool.

How to use it

  1. Drop a JPG, or paste one.
  2. Choose a page size — or 'fit to image' for an exact wrapper.
  3. Set the margin if you are using a fixed page size.
  4. Convert and open the result to confirm the orientation.

Worth knowing

  • JPEG is embedded with DCTDecode, so no pixels are re-encoded.
  • A PDF point is 1/72 inch; 72 points equals one inch.
  • 'Fit to image' produces a page matching the image's own dimensions.
  • Scaling always preserves the aspect ratio — no stretching occurs.

Limitations

  • Only one image per document; use the multi-image tool for more.
  • No text layer, so the result is not searchable.
  • PNG and WebP input must be converted to JPEG first, which is lossy.
  • The produced PDF cannot be edited afterwards.

Frequently asked questions

Does converting a JPG to PDF lose quality?
Not here. The JPEG bitstream is copied into the PDF unchanged using the DCTDecode filter, so the pixel data is identical to your original file.
How do I make the PDF page the same size as the image?
Choose 'fit to image' and set the margin to zero. Each page is then created at the image's own dimensions with no added white space.
Why is there white space around my photo?
Because the image aspect ratio differs from the page aspect ratio, and the tool preserves the ratio rather than distorting the picture. Use 'fit to image', or resize the photo to the page ratio first.
Can I convert several JPGs into one PDF?
Yes — use the images-to-PDF tool, which accepts a whole set, lets you order the pages, and produces one document.
Related tools
Images to PDFImage CompressorImage ResizerPhoto Size Calculator
Keep reading
How browser-only processing worksAll PDF Tools toolsEvery tool on the site