CivArchive
    ← All articles
    Published August 10, 2025by OperationNova

    Batch Text Editor

    116 views1 reactions0 comments on CivitAI3 collected
    tool guide

    Batch Text Editor

    The fastest way to manage your text files. Instantly add or remove specific words and tags across thousands of .txt files in a single click. Perfect for managing large datasets, AI training prompts, or any bulk text-editing task.

    • Load Entire Directories: Scans and loads thousands of files in seconds.

    • Permanent Batch Edits: Add or remove tags from all files at once.

    • Safe & Secure: Confirms all permanent actions and prevents creating duplicate tags.

    • Simple Interface: A clean, no-fuss interface designed for one job: editing text files fast.


    Batch Text Editor

    A high-performance, standalone desktop application for Windows, designed to perform bulk text operations on large collections of .txt files. This tool was built to solve the challenge of adding or removing a single, consistent tag (like a trigger word for AI image generation) across tens of thousands of text files without manual effort.

    The Problem

    When working with large datasets, such as caption files for AI model training, you often need to make a uniform change to every file. Doing this manually is impossible, and scripting it can be cumbersome for non-programmers. This tool provides a simple, powerful GUI to solve that problem.

    Key Features

    • High-Speed File Loading: Recursively scans a selected directory and its subfolders to find all .txt files, capable of handling over 100,000 files efficiently.

    • Bulk Tagging: Add a new tag to the beginning or end of every loaded file simultaneously.

    • Bulk Tag Removal: Remove a specific tag from every file it appears in.

    • Duplicate Prevention: The application automatically checks if a tag already exists before adding it, ensuring no duplicate entries are created.

    • Responsive UI: Long-running operations (loading and saving) are handled in the background, so the application never freezes, even with massive numbers of files.

    • Safety First: A clear, unmissable warning prompt appears before any permanent, multi-file changes are written to the disk.

    • Standalone Executable: Created with PyInstaller to run as a single .exe file on Windows, with no need for Python or any other dependencies to be installed.


    Attachments