Skip to content

An online .txt file compressor, de-compressor tool which uses Huffman Coding for Lossless data compression.

Notifications You must be signed in to change notification settings

Sammar-Mangla/txt-file-compressor-decompressor-tool

Repository files navigation

Text File Compressor De-compressor Web App

  • This webapp uses Huffman Coding for Text Compression and De-compression.

  • Made with JavaScript, HTML5 and CSS3.

  • Live Demo:👇

  • txt-compresser.app/

About this application:

  • This website performs Lossless data compression and decompression of text(.txt) files using Huffman Algorithm.
  • In this algorithm, a variable-length code is assigned to input different characters. The code length is related to how frequently characters are used. Most frequent characters have the smallest codes and longer codes for least frequent characters.
  • A Huffman code is a tree, built bottom up, starting with the list of different characters appearing in a text and their frequency.
  • Compression ratio usually improves as the file size increases.
  • The website is made responsive (with HTML and CSS ) and interactive (with JavaScript ) .
  • An Info page is added to give more information about tecnique of Lossless Data Compression with Huffman coding.
  • Landing Page:

screenshot

  • Upload File

step1

  • Select Action (Compress / De-compress)

step2

  • Wait for File Download

    • File gets downloaded automatically when selected process is complete.

    • Compression - Compression Ratio is also displayed

    compression

    • De-compression

    decompression

  • Additional Instructions and Warnings are provided if the above steps are not followed correctly

noFile

smallFile

  • About the tecnique of Lossless Data Compression with Huffman coding.

info1