Language: English

tools / pdf

pdf/

Images to PDF, merge, split by page range, PDF to images. Files are never uploaded; everything runs in your browser.

Page Scale Format

    What is merging and splitting PDFs in the browser

    Merging and splitting PDFs in the browser means using pdf-lib to copy the selected pages of the original files into a new PDF. This page can also turn JPG, PNG and WebP images into a PDF and render each page as an image with pdf.js; everything runs on your device, with up to 200 MB of files in total for each function.

    How it works: copy pages, embed images, render to bitmaps

    1. Merge and split: pdf-lib reads the original file, uses copyPages to copy the selected pages into a newly created document and saves it; the pages are never rendered.
    2. Images to PDF: JPG is embedded as is with embedJpg and PNG with embedPng; WebP is first turned into PNG on a canvas, and a JPG whose EXIF records a rotation is turned upright first. With "Fit image", 1 pixel is laid out as 1 pt, and anything longer than 14400 pt (200 inches) on a side is scaled down proportionally; with "A4 portrait", the image goes onto a 595.28 × 841.89 pt A4 page with a 36 pt (0.5 inch) margin all round.
    3. PDF to images: pdf.js draws each page onto a canvas at the chosen scale and exports PNG or JPG; at 1x, 1 pt in the PDF is 1 pixel.

    Sources

    FAQ

    What if it says the PDF is encrypted (password-protected)?

    This tool can't open encrypted PDFs, in Merge, Split and PDF to images alike. Remove the encryption first, for example by opening the file in a PDF reader with the password and saving an unencrypted copy, then add it again. Some PDFs open without a password but restrict copying or editing; they count as encrypted too.

    How do I write the page range for splitting a PDF?

    Separate items with commas and use a hyphen for a run of pages, e.g. 1-3,5,8-. A trailing "8-" means page 8 through the last page. Pages start at 1, and a page beyond the total gives an error. Pages are exported in the order you write them, so 5,1-3 gives page 5 first, then pages 1 to 3; a repeated page is kept only once.

    How do I save each page as a separate PDF, and how many at once?

    When splitting, tick "Download each page separately" and every selected page is saved as its own PDF, named "original-name-pN.pdf". The limit is 50 pages at a time; beyond that you're asked to narrow the range. Without the box ticked, the selected pages go into a single "original-name-pages.pdf". Multiple files are downloaded one by one, not zipped, so allow multiple downloads if your browser asks.

    The PDF made from images is too large. What can I do?

    JPG and PNG images are embedded as they are, without recompression, so the PDF is about as large as all the images combined. WebP images are converted to PNG first and can get much bigger. Shrink the images first with this site's image compressor, then convert them to PDF.

    Should I choose "Fit image" or "A4 portrait" when converting images to PDF?

    For on-screen reading, choose "Fit image": each page is the same size as its image, with no margins, so pages differ in size if the images do. For printing, or if you want every page the same size, choose "A4 portrait": each image is scaled proportionally and centered on an A4 page with a 0.5-inch margin. Small images are enlarged, and landscape images end up smaller.

    It says the file isn't a JPG / PNG / WebP image. Can HEIC or GIF be converted to PDF?

    No, Images to PDF only accepts JPG, PNG and WebP. The format is detected from the file contents, not the extension, so renaming a HEIC file to .jpg doesn't help. Convert GIF, BMP or HEIC to JPG or PNG first.

    The images from PDF aren't sharp enough, and it says a page is too large. What's going on?

    Switch the scale to 3x; the exported pixel size is shown under each page. 1x is the page's original size (about 595×841 pixels for A4), and 2x is the default. If a page would exceed 16 million pixels or 16384 on a side, the scale is lowered automatically and you're told. JPG quality is fixed at 0.92 and transparent areas are filled white; "Download all" saves one file per page, not a zip.

    Are my PDFs uploaded to a server? Is there a file size limit?

    No. Reading, merging, splitting and converting all happen in your browser, and the tool sends no requests that carry your files. Only when you load a PDF into "PDF to images" does the page fetch one more script (pdf.js) from this site; that downloads code and uploads nothing. The total file size in each tool can't exceed 200 MB.