Converting JPG to PDF turns one or more JPEG photos into a single paginated document — one image per page — with a chosen paper size, orientation, and margin, all rebuilt inside your web browser. The conversion is not a simple file-extension swap: each JPG is decoded, redrawn onto a clean white canvas, re-encoded as a baseline JPEG, and then embedded into a PDF page sized exactly as you specify. The original picture data is preserved rather than recompressed a second time, and the aspect ratio is honored so the image is never stretched or distorted. Because the output is one PDF instead of a folder of loose photos, the result is easier to email, print, archive, or page through. The "JPG to PDF" workflow is most often used for receipts, ID scans, portfolios, contact sheets, signed forms, and printable photo albums where the goal is one share-ready file with predictable page geometry. Browser-based converters handle every step locally, so the images are read, normalized, and saved on your own device with nothing uploaded to a remote server.

jpg to pdf explained
jpg to pdf explained

The Mechanics of Converting JPG to PDF

A JPG file is a single compressed photograph — a flat rectangle of pixels. A PDF, by contrast, is a multi-page document made up of independent pages, each with its own size, position, and content stream. Converting between the two is therefore a change of container and structure, not just an extension rename.

Under the hood, the conversion runs through four predictable stages:

  1. The source JPEG is decoded back into raw pixel data so the picture can be inspected and manipulated.
  2. The pixels are redrawn onto a white canvas at the exact size and orientation chosen for the destination page.
  3. The result is re-encoded as a clean baseline JPEG so any oddities in the original (progressive scanning, CMYK color, embedded metadata, transparency) are flattened into a known-good input.
  4. The normalized JPEG is embedded into a freshly built PDF where each image occupies one page in the order you selected.

The original pixel data is what ends up in the PDF. Small images are never artificially enlarged beyond their native resolution, so a 1200-pixel-wide photo does not suddenly become a 4000-pixel-wide blur. The image is scaled to fit inside the page's printable area, centered horizontally and vertically, and left at the orientation you set. What changes is the wrapper around the image: the page it sits on, the margins around it, and the document that contains all of the pages.

The Three Page-Size Options, Explained

Page size is the most consequential control the conversion exposes, because it determines what the printed or shared document will physically look like. There are three options, each with a different purpose:

  • A4 — 595 × 842 points (210 × 297 mm). The international standard paper size used in most of Europe, Asia, and the Americas outside North America. Pick A4 when the PDF will be printed on default office paper or shared internationally.
  • US Letter — 612 × 792 points (8.5 × 11 inches). The standard paper size in the United States, Canada, and Mexico. Pick US Letter when the document will be printed on North American office paper or filed in a US-only workflow.
  • Fit to image — each page is sized to the exact pixel dimensions of the source photo, with no fixed canvas behind the image. Pick Fit to image when the picture should fill the page edge to edge with no white border, which is the usual choice for screenshots, ID scans, and printable photo collections where every pixel counts.
OptionSize in pointsPhysical sizeBest for
A4595 × 842 pt210 × 297 mmInternational printing, default office paper
US Letter612 × 792 pt8.5 × 11 inNorth American printing, US-only workflows
Fit to imageSource pixel dimensionsMatches the photoScreenshots, ID scans, edge-to-edge photos

The PDF is rebuilt the instant you change the page size, so you can preview the layout before downloading. If you are unsure which size to pick, A4 is the safer default for global sharing; switch to US Letter if the recipient is known to print on 8.5 × 11 paper.

Orientation: Auto, Portrait, and Landscape

Orientation decides whether each page is taller than it is wide (portrait), wider than it is tall (landscape), or decided case by case (auto). It is applied on top of the page size, not instead of it, so the three options can be combined with A4, US Letter, or Fit to image in any combination.

  • Auto — the converter inspects each image and chooses the orientation that matches its shape. A wide panorama becomes a landscape page; a tall portrait becomes a portrait page. This produces the most natural reading flow for mixed photo collections.
  • Portrait — every page is forced into portrait orientation, regardless of whether the image is wider or taller. Pick this when the output is a uniform document such as a stack of receipts, ID scans, or signed forms.
  • Landscape — every page is forced into landscape orientation. Pick this for slide-style photo albums, contact sheets, or any document that needs consistent horizontal pages.

Auto is the right choice when the images have mixed shapes and you do not want to manually check each one. Forced portrait or landscape is the right choice when uniformity matters more than per-image fit, which is the typical case for paperwork, scanned forms, and any document bound on the short edge.

Margins: Choosing White Space Around the Image

Margins are the white space left between the image and the edge of the page. They are optional, and the right amount depends on what will happen to the PDF after conversion. The available levels are:

  • None — the image extends all the way to the page edge, leaving no white border.
  • Small — 18 points of white space on every side, about 6.35 mm or 0.25 inches. A subtle visual breathing room that still looks edge-to-edge on screen.
  • Normal — 36 points of white space on every side, about 12.7 mm or 0.5 inches. The classic print margin that gives the document a printed-page feel.
Margin levelWhite space per sideIn millimetersIn inchesBest for
None0 pt0 mm0 inEdge-to-edge screenshots, max-content layouts
Small18 pt~6.35 mm~0.25 inDigital reading, light print runs
Normal36 pt~12.7 mm~0.5 inPrinted paper, bound documents, handouts

When the PDF will only be viewed on a screen or shared digitally, None or Small is usually fine. When it will be printed, or bound into a booklet, or filed alongside other paperwork, Normal produces the expected visual margin and leaves room for hole punches or binding without cropping the image.

How to Convert JPG to PDF in Your Browser

  1. Open the JPG to PDF converter in your browser and click Browse JPG images to pick one or many files. The pictures are added as pages in the exact order you selected them.
  2. Choose your page size — A4, US Letter, or Fit to image — and your orientation: Auto, Portrait, or Landscape. Set the margin to None, Small, or Normal. The PDF rebuilds instantly each time you change an option.
  3. Reorder by selecting files in the order you want, remove individual pages you do not want, or clear the entire set and start over if needed.
  4. When the preview matches what you want, click the Download link to save the finished PDF to your device. Nothing was uploaded at any point in the process.

The whole workflow runs on the Canvas API and the pdf-lib library inside the browser tab, so the conversion starts the moment you add a file and finishes the moment you click Download. There is no queue, no account, and no watermark added to the output, and the tool reports the final page count and file size before you save.

How the Conversion Handles Tricky Source Files

Not every JPEG is the same under the hood, and a naive image-to-PDF tool can stumble on a few common variants. The conversion step that redraws each image onto a white canvas before embedding it is what makes the output reliable across the messy reality of JPGs.

  • Progressive JPEGs — encoded so they appear in passes when loading over a slow connection. Some PDF writers handle them poorly. The redraw step decodes the image fully and re-encodes it as a standard baseline JPEG, which every PDF tool can embed.
  • CMYK JPEGs — exported by print workflows and some scanners. Screens and browsers expect RGB, so a direct embed can shift colors. The canvas step normalizes the color to RGB on a white background.
  • Transparent source images — a JPG should not have transparency, but some image editors will save a partially transparent layer anyway. The white canvas flattens any empty pixels to white instead of letting them render as black in the PDF.
  • Unusual metadata — EXIF tags, ICC profiles, and GPS data are dropped during the redraw, so the PDF is lean and predictable rather than carrying hidden personal or location data forward.

The result is a PDF that looks the same regardless of which flavor of JPG was originally loaded, and that contains exactly the picture data you intended to share — no extra metadata, no color surprise, no broken embed.

Why This Conversion Stays on Your Device

Browser-based JPG to PDF converters read each file using JavaScript, draw the image onto an HTML canvas, re-encode the result as a clean JPEG, and hand that data to the pdf-lib library, which assembles the PDF page by page. Every one of those steps happens inside the current browser tab on your machine.

This matters for any document that contains sensitive material — passports, driver's licenses, tax paperwork, signed contracts, medical scans, financial records. A conversion that runs entirely on your device never sends those files across the network, so there is no intermediate server that could log, leak, or retain them. If you want to confirm this for yourself, open the browser's network panel before clicking Download: with a true in-browser converter you will see zero upload requests for the image data, only the static assets needed to load the page itself. For anyone working under privacy rules such as GDPR, HIPAA, or attorney-client privilege, the in-browser model is the only one that does not require trusting a third party with the original files.

For a deeper look at the privacy properties of this workflow, see the privacy guide for JPG to PDF converters.