Skip to content

ismaileub/text-compressor-using-huffman-coding-alorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 Text Compressor using Huffman Coding

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.


🌐 Live Demo

🔗 Click here to use the live version


🚀 Features

  • ✅ Upload .txt or .huff files
  • ✅ Compress .txt files using Huffman Coding
  • ✅ Decompress .huff files back to original .txt
  • ✅ Fully client-side using JavaScript
  • ✅ Visual feedback and alerts for file status
  • ✅ Supports .txt and .huff formats

💡 About Huffman Coding

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.

📂 File Structure

📁 project-root
│
├── index.html          # Main HTML file
├── style.css           # Custom styling
├── script.js           # Compression & decompression logic
└── img/
    └── favicon.ico     # Favicon for branding

About

Text Compressor using Huffman Coding using HTML CSS JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors