Skip to content

NullCoreX/Excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Excel to Table Converter

Python PyQt6 OpenPyXL Platform

Excel to Table Converter is a powerful desktop application built with PyQt6 and Python that transforms Excel spreadsheets into beautifully formatted text tables β€” with drag & drop support, multi-sheet processing, ASCII art borders, and center-aligned content.

🎯 Perfect for: Developers, data analysts, documentation writers, students, and anyone who needs to display Excel data in plain text format.


πŸ“‘ Table of Contents


πŸ™Œ Who is this for?

Category Description
πŸ‘¨β€πŸ’» Developers Convert Excel data into readable text tables for logs, documentation, or CLI tools
πŸ“Š Data analysts Share spreadsheet data in plain text format via email or chat
πŸ“ Documentation writers Embed Excel data into Markdown, README files, or text documents
πŸŽ“ Students & researchers Present tabular data in assignments and reports without screenshots
πŸ–₯️ System administrators Generate text-based reports from Excel export files

πŸ’‘ Why use Excel to Table Converter?

Problem Solution
❌ Excel files can't be viewed in terminals or text editors βœ… Converts to plain text tables that work anywhere
❌ Screenshots of tables are not searchable βœ… Text tables are fully searchable and copyable
❌ Manual table formatting takes hours βœ… One click – automatic formatting with perfect alignment
❌ Multi-sheet Excel files are hard to share βœ… Each sheet becomes a separate .txt file
❌ Boring, ugly text output βœ… Beautiful ASCII art borders with professional styling

πŸ’‘ Pro Tip: Use this tool to embed Excel data directly into your GitHub README files, documentation wikis, or log files!


✨ Features

Feature Description
🎯 Drag & Drop Simply drag your Excel file onto the app – no browsing needed
πŸ“‘ Multi-Sheet Support Each sheet becomes a separate .txt file in the output folder
🎨 ASCII Art Borders Beautiful box-drawing characters for professional-looking tables
πŸ“ Auto Alignment Content is automatically centered in each cell
πŸ“ Smart Sizing Columns adjust to the longest word automatically
πŸ–ΌοΈ Visual Feedback Icons and animations show the conversion status
πŸ’Ύ Desktop Default Automatically saves output to your Desktop
πŸ“‚ One-Click Open Opens the output folder after successful conversion
πŸ”€ UTF-8 Encoding Preserves all Unicode and special characters
πŸͺŸ Modern UI Clean, gradient-styled interface with rounded corners

πŸ“Έ Screenshot

1 2 3 4 5 6 7

πŸš€ Getting Started

1️⃣ Clone the repository

git clone https://github.com/NullCoreX/Excel.git
cd Excel

2️⃣ Install dependencies

pip install PyQt6 openpyxl

3️⃣ Run the application

python Excel.py

🧩 How It Works

Step Action
1️⃣ Drag & Drop - Drag any .xlsx or .xls file onto the drop zone
2️⃣ Auto Detect - The app automatically detects the file and shows the Excel icon
3️⃣ Set Output - Choose or type your output directory (defaults to Desktop)
4️⃣ Click Convert - Press the big convert button
5️⃣ Get Tables - Each Excel sheet becomes a .txt file with beautiful ASCII tables
6️⃣ Auto Open - The output folder opens automatically when done

πŸ“ Output Structure

After conversion, your output folder will look like this:

Desktop/
β”œβ”€β”€ Sheet1.txt
β”œβ”€β”€ Sheet2.txt
β”œβ”€β”€ Sheet3.txt
└── ...

Example of Sheet1.txt:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Product    β”‚  Price  β”‚   Stock     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚   Laptop     β”‚   $999  β”‚     15      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚   Mouse      β”‚   $25   β”‚     150     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Keyboard    β”‚   $75   β”‚     45      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

βš™οΈ Customization

You can easily modify the table style by editing the chars_1 list in Excel.py:

# Current style (professional)
chars_1 = ['β”œ', '─', '─', 'β”Ό', 'β””', 'β”˜', 'β”Œ', '┐', '┬', 'β”΄', 'β”‚']

# Alternative styles you can try:
# Simple style
simple_chars = ['+', '+', '-', '+', '+', '+', '+', '+', '+', '+', '|']

# Double-line style
double_chars = ['β•ž', 'β•‘', '═', 'β•ͺ', 'β•š', '╝', 'β•”', 'β•—', '╦', 'β•©', 'β•‘']

πŸ› Troubleshooting

Issue Solution
Drag & drop not working Make sure you're dragging the file onto the dashed drop zone
File not loading Check that the file has .xlsx or .xls extension
Output folder not opening The folder path might not exist – check the output directory field
Empty tables Make sure your Excel sheet has data in the first row/column
Encoding issues The app uses UTF-8 – all characters are preserved

πŸ”§ Development

Project Structure:

Excel.py
β”œβ”€β”€ class Excel(QMainWindow)
β”‚   β”œβ”€β”€ __init__()              # Initialize UI and connections
β”‚   β”œβ”€β”€ set_icons_and_titles()  # Setup window icons and title
β”‚   β”œβ”€β”€ dragEnterEvent()        # Handle drag enter
β”‚   β”œβ”€β”€ dropEvent()             # Handle file drop
β”‚   β”œβ”€β”€ show_message()          # Display custom message boxes
β”‚   β”œβ”€β”€ process_file()          # Validate and load Excel file
β”‚   └── start_process()         # Main conversion logic
β”‚       β”œβ”€β”€ Read Excel file
β”‚       β”œβ”€β”€ Calculate column widths
β”‚       β”œβ”€β”€ Generate ASCII table
β”‚       └── Save to .txt files

🀝 Contributing

Pull requests and feature suggestions are always welcome! Feel free to:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

⭐ Support

If you find this tool useful, please give it a ⭐ on GitHub!

About

A PyQt6-based desktop application that converts Excel files (.xlsx/.xls) into beautifully formatted text-based tables, with each sheet saved as a separate .txt file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages