Skip to content

Repository files navigation

📄 Privacy PDF Merger 🔒

Codacy Badge pages-build-deployment Maintenance Open Source Love svg3 MIT Donate

A modern, sleek, and 100% client-side PDF merging tool. Combine, reorder, and manage your PDF files locally right in your browser. Featuring intuitive drag-and-drop mechanics, live thumbnails, and uncompromising privacy—your files never leave your device. Perfect for secure document management! 🚀

01.png 02.png 03.png 04.png


🚀 Features

  • 100% Local Processing: Zero server uploads. Absolute privacy is guaranteed because the merging process happens entirely in your browser using pdf-lib.
  • Interactive Reordering: A fluid, drag-and-drop grid powered by SortableJS. Simply click, drag, and drop to set the perfect order for your documents.
  • Live Thumbnails: Instantly generates high-quality visual previews of the first page of every uploaded PDF using PDF.js.
  • Bilingual Support: Built-in localization! Seamlessly adapts the interface to English or Italian based on your system's language settings.
  • Dark/Light Theme Ready: Built with Tailwind CSS, the app automatically adapts to your system's color scheme with a beautiful, modern, and rounded aesthetic.
  • Fully Responsive: An elegant layout that splits cleanly on desktop and stacks perfectly on mobile devices.

🛠️ How it works

  1. File Selection: Load multiple PDFs at once using the large drag-and-drop zone or the standard file dialog.
  2. Client-Side Parsing: PDF.js instantly processes the local files, extracting the first page and drawing it onto an HTML canvas to generate a lightweight image thumbnail.
  3. The Grid Array: The DOM updates dynamically. Every time you move a card to reorder your files, the underlying JavaScript array synchronizes automatically.
  4. The Merge Process: Upon clicking "Merge", pdf-lib constructs a new PDF document in memory. It sequentially copies every page from your selected files, tracks the progress visually, and outputs a downloadable Blob URL.

🏆 What makes it special?

  • No Cloud Dependencies: Unparalleled peace of mind for professionals handling sensitive documents like NDAs, invoices, contracts, or personal IDs.
  • Single-File Architecture Ready: The entire structure can run without complex backends, making it incredibly lightweight, fast, and easily hostable on static platforms like GitHub Pages.

💡 Why use this project?

  • Speed & Privacy: Stop uploading your sensitive data to third-party ad-filled websites just to merge two files together. Do it instantly, safely, and beautifully right from your local machine.

⚡ Getting Started

Online

Simply open the Live Demo link on any browser and start dropping your files!

Local Installation

Want to run it locally or use it entirely offline?

  1. Clone this repository or download the source code ZIP.
  2. If you want offline capabilities, ensure the linked JavaScript libraries (Tailwind, pdf-lib, PDF.js, SortableJS) are downloaded into the same directory and correctly referenced in the index.html.
  3. Double-click index.html to open it in your browser. That's it!

⚠️ Troubleshooting: Memory Cleanup

Because this app processes files locally in your RAM using Blob URLs, working with incredibly massive PDFs (hundreds of megabytes) might slow down older devices.

If you notice any stuttering after multiple heavy merges, simply click the Start Over button. The app is programmed to automatically execute URL.revokeObjectURL() to clean up the browser's memory and give you a fresh, clean slate!


Crafted with AI

About

A modern, 100% client-side PDF merger built with Tailwind CSS and PDF-lib. Features intuitive drag-and-drop reordering, live thumbnails, automatic dark mode, and multi-language support. Zero server uploads ensure absolute privacy for your sensitive documents. Perfect for GitHub Pages!

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Sponsor this project

Used by

Contributors

Languages