---
title: "Frequency Analysis, Letter Stats & Entropy - AllTools"
description: "Count character, letter, bigram and trigram frequencies and compute Shannon entropy to crack substitution ciphers. Works for Chinese and English — all local."
canonical_url: "https://tool.warmday.wang/en/crypto/frequency-analysis"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "Count character, letter, bigram and trigram frequencies and compute Shannon entropy to crack substitution ciphers. Works for Chinese and English — all local."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "Frequency Analysis, Letter Stats & Entropy"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **Frequency Analysis**

Statistical analysis of character frequency in ciphertext, useful for cracking classical substitution ciphers.

## **Input Text**

## **Instructions**

#### **Analysis Principle**

Frequency analysis is a classic cryptanalysis method based on the statistical regularity of character occurrence in natural languages. For example, in English the letter E has the highest frequency (about 12.7%), followed by T, A, O, I, N, S, H, R. By comparing the frequency distribution of ciphertext and plaintext, one can infer substitution cipher mappings.

#### **Statistics Items**

Total characters and unique characters reflect text size and complexity; information entropy measures the uncertainty of character distribution, higher entropy means more random; character type distribution categorizes by uppercase, lowercase, digits, whitespace, punctuation, and other; bigram frequency shows co-occurrence patterns of adjacent character pairs, useful for identifying language features.

#### **Steps**

1\. Paste text to analyze in the input box; 2. System automatically calculates character frequency and displays statistics overview; 3. View character type distribution and frequency ranking; 4. Use tabs above frequency ranking to toggle between 'By Frequency' and 'By Character' sorting; 5. View bigram frequency to assist cryptanalysis.

#### **Notes**

Shorter text leads to larger frequency distribution deviation and lower reference value; recommended to input at least 100 characters. Maximum entropy is log₂(alphabet size); pure random text entropy approaches maximum. This tool is suitable for auxiliary analysis of classical ciphers like substitution and transposition ciphers, not effective against modern encryption algorithms.

## **Related tools**

More from the same category · Encryption

[**MD5 Hash**Generate 32-char MD5 digests for text and files to verify integrity and detect content changes locally.](https://tool.warmday.wang/en/crypto/md5) [**Hash Calculator**MD5, SHA-1, SHA-256, SHA-512 digests for text and files in one pass for checksums.](https://tool.warmday.wang/en/crypto/hash) [**Base64 Converter**Base64 encode/decode for text, UTF-8 and images, with Data URL output for inline embedding.](https://tool.warmday.wang/en/crypto/base64) [**Symmetric Encryption**Encrypt/decrypt with AES, DES, 3DES, RC4 and SM4, configurable mode, padding, key and IV, fully client-side.](https://tool.warmday.wang/en/crypto/symmetric) [**RSA Tools**Generate RSA key pairs (1024-4096 bit), encrypt/decrypt and sign with PKCS#1 v1.5 or PSS, browser-side.](https://tool.warmday.wang/en/crypto/rsa) [**PGP Tools**Generate OpenPGP keys, encrypt, decrypt and sign text or files with GnuPG-compatible ASCII-armored output.](https://tool.warmday.wang/en/crypto/pgp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/crypto/frequency-analysis#webpage","url":"https://tool.warmday.wang/en/crypto/frequency-analysis","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"Frequency Analysis, Letter Stats & Entropy","description":"Count character, letter, bigram and trigram frequencies and compute Shannon entropy to crack substitution ciphers. Works for Chinese and English — all local."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/crypto/frequency-analysis#app","name":"Frequency Analysis, Letter Stats & Entropy","description":"Count character, letter, bigram and trigram frequencies and compute Shannon entropy to crack substitution ciphers. Works for Chinese and English — all local.","url":"https://tool.warmday.wang/en/crypto/frequency-analysis","applicationCategory":"SecurityApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/crypto/frequency-analysis#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/crypto/frequency-analysis#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Crypto & Security","item":"https://tool.warmday.wang/en/crypto"},{"@type":"ListItem","position":3,"name":"Frequency Analysis","item":"https://tool.warmday.wang/en/crypto/frequency-analysis"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
