PDFCloak
LOCAL
HomeJPG to PDF

JPG to PDF

Bundle photos, scans, and screenshots into a single PDF.

In-browserNo upload

You have a stack of JPG images — phone photos of a whiteboard, scanned receipts, product shots, or pages photographed from a book — and you need them inside a single PDF. This tool handles that conversion directly in your browser. Drop your images in, arrange them, pick a page size, and download the result. No uploads to a server, no watermarks, no account.

Local-only session
Files processed inthis browser tab
Bytes sent to server0 / 0
Tab close discardseverything
Enginepdf-lib · client-side

You have a stack of JPG images — phone photos of a whiteboard, scanned receipts, product shots, or pages photographed from a book — and you need them inside a single PDF. This tool handles that conversion directly in your browser. Drop your images in, arrange them, pick a page size, and download the result. No uploads to a server, no watermarks, no account.

When to use this tool

JPG to PDF conversion covers a wide range of everyday tasks:

  • Digitizing paper documents. You photographed a contract, ID card, or handwritten letter with your phone. Converting those photos to PDF creates a portable document you can email, print, or archive.
  • Assembling photo portfolios. Photographers and designers often need to send work samples as a single PDF rather than a zip file of loose images.
  • Creating printable booklets. Event programs, recipe collections, or photo books start as individual images and end as a paginated PDF ready for a print shop.
  • Submitting scanned paperwork. Insurance claims, rental applications, and government forms frequently require PDF attachments. If your scanner outputs JPGs, this tool bridges the gap.
  • Archiving screenshots. Customer support logs, error evidence, or design mockups captured as screenshots convert neatly into a single timestamped PDF for your records.

If your images are PNG files instead, use our PNG to PDF tool — it preserves transparency and uses lossless compression suited to that format.

How JPG-to-PDF conversion works

A PDF page is a container that can hold many types of content: vector graphics, text, and raster images. When you embed a JPG image into a PDF, the file format takes advantage of the fact that JPEG data is already compressed.

Inside the PDF, each image becomes an image XObject — a PDF object with a stream of data and a dictionary of properties. For JPEG images, the critical property is the filter type: DCTDecode. DCT (Discrete Cosine Transform) is the compression algorithm that JPEG uses internally. By marking the embedded data with DCTDecode, the PDF tells readers "this stream is already JPEG-compressed — decode it the same way you would decode a .jpg file."

This means the tool does not re-compress your images. It takes the raw JPEG byte stream from your file and wraps it in a PDF image object with the appropriate headers — width, height, color space, bits per component, and the DCTDecode filter declaration. The pixel data passes through untouched. Your 2 MB JPG becomes a 2 MB image stream inside the PDF, not a degraded re-encoding.

The page itself is defined with a media box (the page dimensions) and a content stream that contains a single instruction: draw this image at these coordinates, at this scale. If you choose "fit page to image," the media box matches the image's pixel dimensions translated to PDF points (72 points per inch). If you choose a standard page size like A4, the content stream scales the image to fit within the printable area while preserving its aspect ratio.

Color space matters here. Most JPG photos use the RGB color space, and that maps directly to the PDF's DeviceRGB. Some professional photography workflows and print-oriented scanners produce CMYK JPEGs, which use DeviceCMYK. Our tool detects the color space from the JPEG header and sets the PDF image object accordingly. You do not need to convert color spaces manually.

All of this runs in your browser using pdf-lib. The library constructs the PDF object graph in memory, writes the binary output, and hands you a downloadable file. No pixel data is transmitted over the network.

Common issues

EXIF rotation causing sideways or upside-down images. Modern phone cameras do not always physically rotate the image data when you hold your phone sideways. Instead, they write an orientation tag into the EXIF metadata. Photo viewers read this tag and display the image correctly, but when the raw pixel data is extracted for PDF embedding, the tag can be lost. Our tool reads and applies EXIF orientation before embedding, so most images appear correctly. In rare cases with non-standard EXIF data, a photo may still appear rotated — use Rotate PDF afterward to fix individual pages.

CMYK images looking different on screen. If your JPG uses the CMYK color space, screen rendering depends on your PDF viewer's color management. Some viewers display CMYK content with muted or shifted colors compared to what you see in a photo editor. The data is correct; the display difference comes from how each application interprets CMYK-to-screen conversion. For screen-only distribution, converting your images to RGB before creating the PDF gives the most consistent appearance.

Very large images and memory pressure. A 100-megapixel photo from a high-end camera can be 50 MB or more as a JPG. The tool needs to decode the image to read its dimensions and detect orientation, which temporarily consumes significant memory. If your browser tab crashes or becomes unresponsive, try reducing the image resolution in a photo editor before converting, or work in smaller batches.

Unexpected file size of the output PDF. The PDF will be roughly the same size as the sum of your input JPG files, plus a small overhead for PDF structure (typically a few KB). If the output seems disproportionately large, check whether your source images are higher resolution than you actually need. Our Compress PDF tool can downsample images within the finished PDF to reduce size.

Blurry output when printing. This is not a quality loss from conversion — it usually means the source image resolution is too low for the print size. A 1920x1080 pixel photo looks sharp on screen but prints at roughly 6.4 x 3.6 inches at 300 DPI. If you need a larger print, start with a higher-resolution source image.

What to expect from our tool

Select your JPG files or drag them onto the page. Thumbnails appear so you can verify content and reorder pages. Choose your page size preference — fit to image dimensions, A4, US Letter, or other standard sizes. Set margins if desired. Click convert, and the PDF downloads immediately.

For a handful of phone photos (3-5 MB each), conversion finishes in under a second. Larger batches of high-resolution images take proportionally longer, but the process stays on your device throughout.

The output PDF contains one page per image. Each page's visual content is identical to the original JPG — same pixels, same colors, same sharpness. EXIF metadata like GPS coordinates and camera model are stripped, which is a privacy advantage when sharing the file. The tool adds no watermarks, branding, or tracking metadata to the output.

Related tools
What the tool does

Built for documents you can't afford to lose.

Runs in your browser
No server round-trip. Your file is processed by WebAssembly right in this tab.
Preserves quality
No re-encoding by default. Structure, links, and metadata survive intact.
Nothing to leak
Files never leave your device. Close the tab and everything is gone.
JPG to PDF · FAQ

About this tool, specifically.