Shannon Entropy Calculator

Paste any text string to instantly compute its Shannon entropy in bits, with a full symbol frequency and self-information table.

Input

Entropy Result

Enter text or probabilities on the left to compute entropy.

Symbol Frequency Table

Results appear here.
Copied!

Summary

Paste any text string to instantly compute its Shannon entropy in bits, with a full symbol frequency and self-information table.

How it works

  1. Enter a text string in the input field, or switch to manual probability mode.
  2. The tool counts each unique character and calculates its frequency.
  3. Each symbol's probability p is used to compute self-information: -log2(p) bits.
  4. Shannon entropy H is the probability-weighted average: H = -sum(p * log2(p)).
  5. Results update in real time as you type, showing the full frequency table.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-23 · Reviewed by Nham Vu