Skip to content

R0mb0/Text_merge_web

📄 Text merge web ✂️

A lightning-fast, client-side web app to effortlessly merge text-based files (.txt, .md, .csv, code snippets) into a single document. 100% private, runs entirely in your browser with zero server uploads!


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

0001.png 0002.png 0003.png


🚀 Features

  • 100% Privacy-First: Everything happens locally in your browser. No files are ever uploaded to a server, ensuring your data remains completely private.
  • Zero Dependencies: No frameworks or heavy libraries. Built with pure, lightweight Vanilla JavaScript, HTML5, and CSS3.
  • Smart Formatting: Toggle the option to automatically include the original file names as clear, visual headers in the final merged document.
  • Custom Output: Automatically detects the predominant file extension of your uploads, while letting you customize the final output format.
  • Drag & Drop Interface: Intuitive and smooth file management. Easily add multiple files at once or drop them directly into the designated area.
  • Modern UI: Fast, responsive, and adaptive Dark/Light mode interface based on your system preferences, complete with a progress bar for visual feedback.

🛠️ How it works

  1. Drag and drop your text files into the dropzone.
  2. Manage your list by removing any unwanted files.
  3. Select whether you want to include original file titles as separators and set your desired output extension.
  4. The app asynchronously reads your files using the native File.text() API to prevent UI freezing.
  5. It concatenates the content and creates a local Blob.
  6. Your browser instantly prompts you to download the merged file!

🏆 What makes it special?

  • Instant Offline Access: Since it doesn't require a backend, you can literally save the index.html file on your desktop and use it offline forever.
  • No Build Step: You don't need Webpack, Vite, or npm to run or modify this project. Just open the code in any text editor.

💡 Why use this tool?

  • Log File Analysis: Merge chunked server logs or exported text data into a single continuous timeline for easier searching and debugging.
  • Data Consolidation: Quickly join multiple .csv data dumps into one master file before importing it into Excel or a database.

⚡ Getting Started

Online

Simply visit the Live Demo hosted on GitHub Pages.

Local Installation

Running this tool locally is ridiculously easy:

  1. Clone this repository or simply download the index.html file.
  2. Double-click index.html to open it in your favorite browser.
  3. Done.
Not made by AI

About

Merge your text documents easily directly in your browser. This lightweight, vanilla JS tool ensures complete privacy since files are never uploaded to any server. Includes drag-and-drop, dark mode, and customizable output formats.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Contributors

Languages