File & Text Entropy Calculator

Measure the distribution of byte values and calculate Shannon entropy. High entropy can suggest compressed or encrypted data, but does not identify the format.

Input: Text (UTF-8) or original file bytesResult: Structured JSON

Text input

Tool options

Examples

Measure a zero-filled file fragment

All bytes are identical, so the empirical entropy is 0 bits per byte.

Input

5341e6b2646979a70e576530.bin

256 bytes

Download

Expected answer

Tolerance ±1e-12
0
Visualisation
Shannon scale
Measure a balanced DNA alphabet

Four equally frequent ASCII symbols give 2 bits per byte; this is a constructed sequence, not a genome.

Input

ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT

Expected answer

Tolerance ±2e-12
2
Visualisation
Shannon scale
Compare a biased two-symbol sample

The probabilities are 3/4 and 1/4; the answer follows −Σ p log₂ p.

Input

AAABAAABAAABAAABAAABAAABAAABAAABAAABAAABAAABAAABAAABAAABAAABAAAB

Expected answer

Tolerance ±1e-12
0.8112781244591328
Visualisation
Shannon scale
Measure every possible byte exactly once

This deterministic sequence reaches 8 bits per byte. A high score alone does not prove randomness or secure encryption.

Input

40aff2e9d2d8922e47afd464.bin

256 bytes

Download

Expected answer

Tolerance ±8e-12
8
Visualisation
Shannon scale
Locate a transition from padding to a varied byte block

The two 256-byte windows have entropy 0 and 8. The curve reports one value per window.

Input

922358667ca5cfe1e8082940.bin

512 bytes

Download

Expected answer

JSON
[
    0,
    8
]
Visualisation
Curve

Format reference: Entropy background and specification

Parameters

ParameterDefault valueInput and choices
VisualisationShannon scaleShannon scale, Histogram (Bar), Histogram (Line), Curve, Image

Related tools

Browse other tools