Image to PDF

PNG, JPEG, or WebP: one image per A4 page, order with arrows. Built locally in the browser with jsPDF.

{{ t("imageToPdfHint") }}

{{ t("imageToPdfOrderHint") }}

  • {{ item.name }}

{{ t("imageToPdfGeneratingWait") }}

{{ imageToPdf.message }}

Overview

The idea of scanning a document and storing it as an image on a page is almost as old as the scanner itself. In the 1980s and early 1990s, offices used fax machines and digital photocopiers that stored pages as compressed bitmaps in TIFF format. JPEG was standardized by the Joint Photographic Experts Group in 1992, introducing lossy compression that reduced photo-quality images from hundreds of kilobytes to tens — a revolution for storage and transmission at the time. PNG arrived in 1996, created precisely to replace GIF after Unisys began collecting royalties on the LZW algorithm patent. With PDF consolidated as the Adobe standard in the 2000s, combining them — images inside PDF — became the standard way to digitize physical documents, handwritten contracts, and photos that needed to circulate in offices as formal records.

The smartphone radically transformed that workflow. Before, scanning a document required a flatbed scanner, cables, proprietary software (HP Scan, Canon ScanGear), saving to a server, and only then sharing. Today you photograph a contract with your phone, Google PhotoScan or Adobe Scan automatically detects edges, corrects perspective, improves contrast, and exports a multi-page PDF in seconds. Apps like CamScanner reached more than 400 million downloads — numbers that show how the need to convert images to PDF is absolutely universal, far beyond technical niches. PDF became the default digital envelope for everything that previously existed only on paper.

This tool brings that workflow directly into the browser, with no installation and no server upload. You select your images (PNG, JPEG, or WebP), drag to reorder the pages as you wish, and the jsPDF library assembles the PDF entirely inside your browser — not a single byte leaves your device. Each image occupies one centered A4 page. PNG with transparency gets a white background, because PDF pages are opaque by definition. The limit is 40 images at a time to avoid overwhelming browser memory. For documents with typed text or rich layout, the HTML to PDF tool is more suitable — but for document photos, screenshots, or images that need to become a PDF at once, this is the fastest solution possible.

Technical deep dive

Common questions summarized

  • Why does transparent PNG get a white background?: PDF pages are opaque. When converting through JPEG in the pipeline, transparent areas are filled with white.
  • What is this tool for?: It runs fully in your browser: useful to validate, format, or convert data in everyday development.
  • Are my inputs sent to a server?: Processing happens locally with JavaScript. We do not store what you paste into the text areas.
  • Can I use this for real production data?: Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.

Sample payload to try

  • See also the larger "Code Snippets" sample; paste this excerpt to try locally: Use — foto1.png, foto2.jpg → PDF com 2 páginas (ordem da lista)

Code Snippets

Code example
foto1.png, foto2.jpg → PDF com 2 páginas (ordem da lista)

Use

foto1.png, foto2.jpg → PDF com 2 páginas (ordem da lista)

FAQ

Why does transparent PNG get a white background?

PDF pages are opaque. When converting through JPEG in the pipeline, transparent areas are filled with white.

What is this tool for?

It runs fully in your browser: useful to validate, format, or convert data in everyday development.

Are my inputs sent to a server?

Processing happens locally with JavaScript. We do not store what you paste into the text areas.

Can I use this for real production data?

Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.