JPG to PDF Converter Online
Convert JPG, PNG, WebP, and photo files into a single ordered PDF in your browser.
Written by Anil Gautam · Updated
How does each image fit on the PDF page?
Every image becomes one page of the size you pick: A4, Letter, Legal, A3 or A5. The tool takes the margin off all four sides, scales the image to the full width of the space left, shrinks it again if it is then too tall, and centers it both ways, so nothing is cropped. Orientation and margin apply to the whole document, and a margin of 0 lets images reach the page edges.
Take a 4000 × 3000 pixel photo on A4 portrait with the default 20 mm margin. The usable area is 170 × 257 mm, so the photo is placed 170 mm wide and 127.5 mm tall, with about 85 mm of white space above and below it. Switch to Landscape and the area becomes 257 × 170 mm; the photo is now limited by height and comes out 226.7 × 170 mm, a third wider. Small images are enlarged the same way. A 600 × 400 pixel image stretched to 170 mm works out to about 90 pixels per inch, which looks soft on paper.
Which image formats can go into the PDF?
The PDF is assembled in your browser with the jsPDF library and saved as images.pdf, so the images are not uploaded. Each image is first drawn onto a canvas, which applies the rotation a phone camera stores in the photo's EXIF data, so portrait photos come out upright. The drawn image is then saved into the PDF as JPEG at 92% quality. Transparent areas of PNG, WebP or GIF images turn white, and an animated GIF contributes only its first frame. A file the browser cannot open, such as a HEIC photo in Chrome, stops the conversion with a message naming the file, so convert it to JPG first.
The picker accepts any file your browser labels as an image, but the PDF step has no decoder for HEIC, AVIF, TIFF or SVG, so those files will not give you a usable page. Convert them first with HEIC to JPG, AVIF to JPG, TIFF to JPG or SVG to PNG. If the finished PDF is too large for an upload form, run it through Compress PDF, or shrink the photos beforehand with the Image Compressor.
How do you change the page order?
Pages follow the order of the thumbnails, and the number in the corner of each thumbnail is its page number. The arrow buttons under a thumbnail swap it with its neighbor, the x button removes it, and images added later through Add more images go to the end of the document.