Convert JPEG to PDF in the browser.
Merge one or many JPEGs into a single, ordered PDF in the browser via WebAssembly. Files stay on the device. Nothing uploads, there's no server round-trip, and there's no backend to run, so conversion is instant and private.
One or many JPEGs to a single PDF, locally
- ✓ Runs entirely in the browser via WebAssembly, so nothing uploads to a server
- ✓ Merge multiple JPEGs into one multi-page PDF, in the order you choose
- ✓ Fit-to-page or fixed page size (A4, Letter) with adjustable margins
- ✓ Auto-detects portrait vs. landscape and orients each page
- ✓ Optional per-image compression to keep the output PDF small
- ✓ Returns a Blob you can download, preview, or hand to your app
- ✓ Works offline once loaded, so nothing hits the network
import { DocumentTools } from "@abscode/browser"; // runs fully client-side via WebAssembly, nothing is uploaded const tools = await DocumentTools.load(); const files = document.querySelector("#files").files; const pdf = await tools.jpegToPdf(files, { pageSize: "A4", margin: 24, fit: "contain", }); saveBlob(pdf, "document.pdf"); // pdf is a Blob
Common scenarios
Privacy-first converters
Build a JPEG-to-PDF tool where images never leave the browser. A good fit for legal, health, and finance sites that can't send documents to a server.
Offline tools
Ship a converter that keeps working on flaky connections and air-gapped machines. Once the page loads, every conversion runs locally with no network call.
Receipt & invoice bundling
Let users pick a folder of receipt photos and merge them into one PDF for an expense report or accounting upload, kept in the order they select.
Photo-to-document
Turn phone photos of IDs, forms, and whiteboards into a clean, shareable PDF on the page, then hand it to your upload flow.
Web SaaS features
Add "export as PDF" to your dashboard or CRM without standing up a rendering service. Pair it with Browser Compression to shrink the result.
Embedded converters
Drop the converter into portals, intranets, or kiosk apps as a self-contained widget. See more formats on Browser Conversion.
Priced for every team
Included in the browser SDK licence. Pricing shown in your local currency.
Affordable to all
Conversion runs on the user's device, so there are no per-page server costs to pass on. One flat licence covers a hobby project and millions of conversions alike.
Common questions
Explore the rest of the Browser JS Library
One license, every capability — take this and you also get all of these.