Welcome to Text Compressor, a web-based tool that allows users to compress and decompress .txt files using the Huffman Coding Algorithm. This is a lossless compression technique that reduces file size by assigning shorter codes to more frequent characters.
🔗 Click here to use the live version
- ✅ Upload
.txtor.hufffiles - ✅ Compress
.txtfiles using Huffman Coding - ✅ Decompress
.hufffiles back to original.txt - ✅ Fully client-side using JavaScript
- ✅ Visual feedback and alerts for file status
- ✅ Supports
.txtand.huffformats
Huffman Coding is a lossless data compression algorithm that:
- Builds a binary tree based on character frequency.
- Assigns shorter binary codes to more frequent characters.
- Reduces the overall size of text files without losing data.
📁 project-root
│
├── index.html # Main HTML file
├── style.css # Custom styling
├── script.js # Compression & decompression logic
└── img/
└── favicon.ico # Favicon for branding