A simple, elegant GUI tool to convert multiple code files into a single text document
Features โข Installation โข Usage โข Supported Formats โข Screenshots
- ๐ฏ Simple & Intuitive: Clean, user-friendly interface
- ๐ Flexible Selection: Browse individual files or entire folders
- ๐ง Customizable Output: Control headers, separators, and structure
- ๐ Smart Encoding: Automatically handles different text encodings
- ๐ Progress Tracking: Real-time processing status
- ๐ก๏ธ Error Handling: Gracefully manages unreadable files
- ๐ Cross-Platform: Works on Windows, macOS, and Linux
- Python 3.6 or higher
- tkinter (usually included with Python)
-
Clone the repository
git clone https://github.com/yourusername/file-to-text-converter.git cd file-to-text-converter
-
Run directly (no additional dependencies needed!)
python file_to_text_converter.py
Download the latest release from the Releases page and run the standalone executable.
- Launch the application
- Select Files:
- Click "Browse Files" for individual selection
- Click "Browse Folder" to scan entire directories
- Configure Options:
- โ Include filename headers
- โ Add separators between files
- โ Preserve folder structure
- Convert: Click "Convert to Text File" and choose output location
For automation, you can also use the tool programmatically:
from file_to_text_converter import FileToTextConverter
import tkinter as tk
# Create and run the GUI
root = tk.Tk()
app = FileToTextConverter(root)
root.mainloop()
Programming Languages
|
Additional Formats
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ File to Text Converter โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Select Files: [Browse Files] [Browse Folder] [Clear] โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Selected Files: โ โ
โ โ โข project/main.cpp โ โ
โ โ โข project/utils.h โ โ
โ โ โข project/data.py โ โ
โ โ โข project/config.json โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ Options: โ
โ โ Include filename headers โ
โ โ Add separators between files โ
โ โ Preserve folder structure in output โ
โ โ
โ [Convert to Text File] โ
โ โ
โ Status: 4 files selected โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Option | Description | Default |
---|---|---|
Include filename headers | Adds === filename.ext === before each file |
โ Enabled |
Add separators | Inserts ======================================== between files |
โ Enabled |
Preserve folder structure | Shows full path instead of just filename | โ Disabled |
=== main.cpp ===
#include <iostream>
#include "utils.h"
int main() {
std::cout << "Hello World!" << std::endl;
return 0;
}
==================================================
=== utils.h ===
#ifndef UTILS_H
#define UTILS_H
void printMessage();
#endif
==================================================
=== data.py ===
import json
def load_config():
with open('config.json', 'r') as f:
return json.load(f)
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- ๐จ UI/UX improvements
- ๐ Additional file format support
- ๐ง Command-line interface
- ๐ Internationalization
- ๐ฆ Package management integration
Found a bug or have a feature idea? Please open an issue on the Issues page.
Bug Report Template:
- Python version
- Operating system
- Steps to reproduce
- Expected vs actual behavior
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Python's tkinter for maximum compatibility
- Inspired by the need for simple code consolidation tools
- Thanks to all contributors and users!