Text compression using Huffman coding

This online calculator compresses entered text using Huffman coding. It also displays built Huffman codes for the reference.

This page exists due to the efforts of the following people:

Timur

Timur

Created: 2022-09-21 09:50:12, Last updated: 2022-09-21 09:50:12
Creative Commons Attribution/Share-Alike License 3.0 (Unported)

This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/8087/. Also, please do not modify any references to the original work (if any) contained in this content.

There is already a calculator Huffman coding, which calculates Huffman codes for a given probability of symbols, however, as practice has shown, problems for students are usually looks like

Given the text "beadbdddbaddaecbde" determine codes of symbols using the Huffman coding. Encode the original string with the Huffman code.

So, just enter your text into the field below - you get the string, encoded with the Huffman codes, and a symbols table: how many times the symbol was encountered in the text, the rate as a percentage (of the total number of symbols) and the Huffman code for each symbol.

For theory, see abovementioned Huffman coding.

PLANETCALC, Text compression using Huffman coding

Text compression using Huffman coding

Encoded text
 
The file is very large. Browser slowdown may occur during loading and creation.
Digits after the decimal point: 2

URL copied to clipboard
PLANETCALC, Text compression using Huffman coding

Comments