# Text compression using Huffman coding

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

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.

#### Similar calculators

**#Huffman #information algorithm code Computer Science Computers entropy Huffman Huffman code information theory Shannon

**

**PLANETCALC, Text compression using Huffman coding

## Comments