JPG to PDF
Turn one or many JPG photos into a single PDF, one image per page. Nothing is uploaded.
https://flxcode.com/jpg-to-pdf/
or drop images here, or paste with Ctrl+V
Up to 200 MB together. Password-protected PDFs can't be opened.
Your files never leave this device. There is no upload, no account and no watermark. How we count
Problem or idea? Email us
How to use it
- Choose your photos, drop them, or paste with Ctrl+V. JPG is the main case; PNG and WebP work too.
- Set the order with drag or the arrow buttons. Each image becomes one page.
- Pick the page size, orientation and margin, then press Make PDF. images.pdf downloads.
Worked example: photos on an A4 page
A4 is 8.27 × 11.69 in (595.28 × 841.89 pt). With orientation on Auto and no margin, a landscape photo gets a landscape page and the picture is scaled to fill the page width or height, whichever hits first. The last column is the sharpness the picture ends up with when printed at that size.
| Photo | Pixels | Page | Picture on the page | Pixels per inch |
|---|---|---|---|---|
| Phone photo, landscape (12 MP) | 4000 × 3000 | A4 landscape | 11.02 × 8.27 in | 363 |
| Phone photo, portrait | 3024 × 4032 | A4 portrait | 8.27 × 11.02 in | 366 |
| Web image | 1600 × 1200 | A4 landscape | 11.02 × 8.27 in | 145 |
| Camera photo (24 MP) | 6000 × 4000 | A4 landscape | 11.69 × 7.80 in | 513 |
Worked example: one photo, five page settings
The same 4000 × 3000 pixel photo with different page settings. Margins are 0.25 in (18 pt) and 0.5 in (36 pt) on every side.
| Setting | Page | Picture | Pixels per inch |
|---|---|---|---|
| A4, no margin | 11.69 × 8.27 in | 11.02 × 8.27 in | 363 |
| A4, small margin | 11.69 × 8.27 in | 10.36 × 7.77 in | 386 |
| US Letter, no margin | 11.00 × 8.50 in | 11.00 × 8.25 in | 364 |
| Fit to image, no margin | 41.67 × 31.25 in | 41.67 × 31.25 in | 96 |
| Fit to image, big margin | 42.67 × 32.25 in | 41.67 × 31.25 in | 96 |
Fit to image uses 0.75 pt per pixel (96 pixels per inch), so a 4000 pixel wide photo is a 41.67 in wide page. It is the right choice for a PDF you only read on a screen.
Numbers this uses
- A4 is 8.27 × 11.69 in, stored as 595.28 × 841.89 pt (210 × 297 mm at 72 points per inch). US Letter is 8.5 × 11 in, 612 × 792 pt.
- Margins: small is 18 pt (0.25 in), big is 36 pt (0.50 in), on all four sides.
- Fit to image: 0.75 pt per pixel, which is 96 pixels per inch, the screen standard.
- Orientation Auto: a photo wider than it is tall gets a landscape page, anything else gets a portrait page. A square photo gets portrait.
- EXIF orientation tag 3, 6 and 8 (upside down, turned right, turned left) are read from the JPG and set as the page rotation, so a phone photo taken sideways shows upright.
- Limit: 100 images and 200 MB together.
What happens to your file
Your photos are read by this tab and placed on pages by a small JavaScript library (pdf-lib). A JPG is put into the PDF as it is, without being re-encoded, so there is no extra quality loss. A WebP is first drawn on a canvas and saved as a JPG at 92% quality, with white behind see-through areas.
No photo, no name and no size goes to a server. You can switch off Wi-Fi once the page has loaded and the PDF still gets made.
Counts of events such as "merge" or "download" are kept without cookies, and never a file name, size or page count (details). The PDF code is pdf-lib (MIT licence) and pdf.js (Apache-2.0 licence): open source used on this site.
Tips for good results
- For a PDF that gets printed, pick A4 or Letter. For a PDF that is only read on a screen, Fit to image avoids white bars.
- A very large photo makes a very large PDF, because the JPG is stored whole. Ten 5 MB photos make a PDF of about 50 MB. Shrink big photos first if you plan to email the file.
- The first row is page 1. If the pages come out in the wrong order, move the rows and press the button again.
FAQ
How do I convert JPG to PDF?
Choose the photo above, pick a page size and press Make PDF. The PDF downloads as images.pdf. It takes a second or two for a few photos.
How do I put several photos in one PDF?
Choose them all at once or add them in turns. Each photo becomes one page, in the order of the list. Drag rows or use the arrow buttons to change the order before you press Make PDF.
Does converting JPG to PDF lower the quality?
No. The JPG is stored in the PDF as it is, not compressed again. If the picture looks softer, that is the page size: a 1600 pixel photo on A4 is only about 140 pixels per inch.
Which page size should I choose?
A4 for most of the world and US Letter in the US and Canada. The photo is scaled to fit inside the page and the margin, and never cropped. Fit to image makes the page exactly as big as the photo, which suits screen reading.
My photo is sideways in the PDF. Why?
Phones often save a sideways picture with a tag that says "turn me". This page reads that tag and turns the page for you. If a photo still looks wrong, it probably has no tag. Turn it in your photo app and try again.
Can I convert an iPhone HEIC photo?
Not directly. Convert it with HEIC to JPG first, then add the JPG here. Many iPhones can also save as JPG in the camera settings.
Is there a size limit?
Up to 100 images and 200 MB together. A very large photo, above about 100 megapixels for WebP, is refused with a message. If the browser runs out of memory it says so instead of crashing.
Is my photos uploaded?
No. The page reads the file with your browser and builds the result in this tab. There is no server step. To check it, open the page, wait a second, choose a file, then switch to airplane mode and run the job. It still works. The one exception is the pdf.js reader on pages with previews, images or text: for a PDF with unusual fonts or image types it may load a fixed font or decoder file from this site first. That request does not contain your file or its name.
More from FLXCode
PNG to PDFNew
Turn PNG screenshots and images into a PDF in your browser. Keeps transparency. Nothing is uploaded.
Merge PDFNew
Combine PDF files into one, in the order you choose. It runs in your browser and nothing is uploaded.
Rotate PDFNew
Rotate PDF pages by 90, 180 or 270 degrees and save the file. Runs in your browser, nothing is uploaded.
Split PDFNew
Split a PDF by page ranges, every N pages or one file per page. Runs in your browser, nothing is uploaded.