Menu
Advertisement

Convert JPG to PDF Online

Add your photos or images, put them in order and download one PDF. Everything runs in your browser.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

What is a JPG to PDF converter?

A JPG to PDF converter places pictures on the pages of a PDF file. Each image gets its own page, in the order you set. It is the quick way to turn phone photos of a receipt, a form or a signed letter into one document you can email or upload.

You choose the page size (A4, US Letter, or the exact size of each image), the orientation, and a margin. With the quality set to Original, JPG and PNG pictures go into the PDF untouched, so no quality is lost. With Smaller file, pictures are redrawn at no more than 2000 pixels on the long side, which helps when a site limits the upload size.

The conversion runs in your browser. Your files are never uploaded: the work happens in your browser, so nothing leaves your device. There is no sign-up and no watermark. It accepts JPG, PNG, WebP, GIF, BMP, AVIF and any other picture format your browser can open.

What you can learn from converting images to PDF

  • A PDF page has a fixed size in points (A4 is about 595 by 842), while a picture has a size in pixels. Fitting one into the other means scaling it, and that is why margins and page size change how big the picture looks.
  • JPG is lossy: every time you re-save one, you lose a little detail. Putting a JPG into a PDF untouched avoids that, which is what the Original setting does.
  • Phone photos are often stored sideways with an orientation tag that viewers read and PDFs ignore. The tool redraws those photos upright first, so they do not come out turned.
  • This is a small job for a program: open each image, put it on a page, write a PDF. In Python, the Pillow library can do it in a few lines, and the example below shows how.
  • Fewer pixels means a smaller file. Halving the width and height of a picture leaves about a quarter of the pixels, which is why the Smaller file option is so effective.

How to convert JPG to PDF

  1. Add your images

    Drop JPG, PNG or other pictures onto the page, or choose them from your device. You can add more at any time with Add more images.

  2. Put them in order

    Each image is one page. Move an image earlier or later with the arrow buttons, and remove any you do not need.

  3. Choose the page and quality

    Pick A4, US Letter or Same as image, set the orientation and margin, and choose Original or Smaller file.

  4. Convert and download

    Press Convert to PDF. The PDF downloads right away; open it once to check the pages.

Settings quick reference

What each option does to the PDF.

SettingOptionsWhat it does
Page sizeA4, US Letter, Same as imageA4 and US Letter fit each picture inside the page, centred. Same as image makes every page match its picture.
OrientationAuto, Portrait, LandscapeAuto picks portrait or landscape for each image on its own. The other two force every page.
MarginNone, Small, BigNone runs the picture to the edge of the page. Small and Big leave a white border, about 7 mm and 14 mm.
QualityOriginalJPG and PNG go in untouched, with no quality lost. Other formats are redrawn as high-quality JPEG.
QualitySmaller filePictures are redrawn at no more than 2000 pixels on the long side as JPEG. Use it when an upload has a size limit.
Page orderArrow buttonsThe first image becomes page 1. Change the order before you convert.

JPG to PDF examples

Phone photos of a signed form

Settings

Page size: A4 Orientation: Auto Margin: Small Quality: Original

Small margins keep the edges of the paper from being cut off by a printer. Auto orientation handles a mix of upright and sideways photos.

A scan that must stay under an upload limit

Settings

Page size: A4 Orientation: Auto Margin: None Quality: Smaller file

Smaller file redraws each picture at 2000 pixels or less, which is plenty to read a page on screen and keeps the PDF small.

A photo album, one picture per page

Settings

Page size: Same as image Orientation: Auto Margin: None Quality: Original

Every page takes the exact shape of its photo, with no white bars. Good for viewing on a screen, less so for printing.

Do the same in Python

Python (Pillow)
from PIL import Image
paths = ["page1.jpg", "page2.jpg", "page3.jpg"]images = [Image.open(p).convert("RGB") for p in paths]images[0].save("photos.pdf", save_all=True, append_images=images[1:])

Pillow opens each image, and save_all with append_images writes the rest as extra pages of the same PDF. The page size here follows each image's pixels.

Common JPG to PDF mistakes

  • Adding the images in the wrong order. The first image is page 1, so check the order before you convert.
  • Using Original for a file that has to be small. A 12 MP photo is several megabytes, so switch to Smaller file when a form limits the size.
  • Choosing Same as image and then printing. The pages have odd sizes, so pick A4 or US Letter for paper.
  • Setting Margin to None for a document you plan to print. Many printers cut the outer few millimetres, so use Small.
  • Expecting searchable text. The PDF holds pictures, not words, so you cannot select or search the text in a photo of a page.

JPG to PDF FAQ

How do I convert a JPG to a PDF?

Add the JPG, choose a page size and press Convert to PDF. The file is made in your browser and you download it straight away.

Can I put several images into one PDF?

Yes. Add as many as you like, set their order with the arrow buttons, and each one becomes its own page. The tool sets no limit on the number of images.

Are my images uploaded anywhere?

No. The conversion runs in your browser, so your pictures never leave your device.

Does converting reduce the picture quality?

Not with the Original setting: JPG and PNG go into the PDF untouched. Smaller file redraws them at up to 2000 pixels, which loses some detail on purpose.

Why is my photo not sideways in the PDF?

Photos from phones carry a rotation tag, and the tool redraws them upright before placing them. They should come out the way you see them in your gallery.

Which image formats can I use?

JPG, PNG, WebP, GIF, BMP and AVIF, plus anything else your browser can open. HEIC only opens in browsers that support it, such as Safari.

How do I make the PDF smaller?

Set Quality to Smaller file. If the PDF is still too big for a form, run it through the Compress PDF tool next.

Does it add a watermark?

No. The PDF holds only your images, with no watermark, and you do not need to sign up.

What happens with a very large batch of photos?

A computer copes well. On a phone, a very large total size (above about 200 MB) can run out of memory, so convert in smaller groups.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started