ƒ

Character Frequency

Count letters, digits, symbols, and their frequency

0Total characters
0Unique characters

Character Frequency — what it does

Paste any text and this tool counts every character in it, reporting the total length, how many distinct characters appear, and how often each one occurs. Letters, digits, punctuation, spaces and symbols are all tallied separately, giving a precise picture of what a string actually contains rather than what it looks like.

Worked example

A two-line payment reminder pasted into the box. The counts update as you type; there is no button to press.

Input text

Invoice 1042 is due on 2026-11-05.
Please pay by bank transfer.

Output — the two metrics, then the frequency table

Total characters: 63
Unique characters: 30

Character  Unicode  Frequency
␠          U+0020   9
e          U+0065   5
n          U+006E   4
a          U+0061   4
1          U+0031   3
0          U+0030   3
2          U+0032   3
s          U+0073   3
o          U+006F   2
i          U+0069   2
-          U+002D   2
.          U+002E   2
y          U+0079   2
b          U+0062   2
r          U+0072   2
… (15 more rows with frequency 1, including ↵ U+000A for the line break)

The space is shown as ␠ and the line break as ↵; both count toward the 63 total. Characters with the same frequency keep the order in which they first appear, and I and i are separate rows.

When this tool helps

  • Checking a text against a strict character limit where spaces and punctuation count toward the total.
  • Spotting invisible or unexpected characters that arrived with text pasted from a PDF or a foreign system.
  • Basic cryptogram and puzzle work, where letter frequency is the standard first step in a substitution cipher.

How to use it

  1. Paste or type the text into the input box.
  2. Read the total and unique character counts.
  3. Scan the frequency list for anything unexpected.
  4. Edit the text and the counts update as you go.

Accuracy, limits, and good practice

  • Counting is case-sensitive, so A and a appear as separate entries — useful for style checks, surprising if you expected them merged.
  • Emoji and some CJK characters occupy more than one code unit, so a visual character count and a byte count will not match.
  • Line breaks are counted too, which explains why a pasted paragraph often reports a few more characters than the text you can see.

Frequently asked questions

Does it count spaces?

Yes. Spaces, tabs and line breaks are all characters and appear in both the total and the frequency list.

What is the most common letter in English?

The letter e, at roughly 12 percent of typical prose, followed by t and a — which is why frequency analysis breaks simple ciphers so easily.

Is there a length limit?

Nothing fixed. Very long documents are limited only by browser memory, and counting stays fast well past normal document sizes.

How are emoji and accented letters counted?

The text is split by Unicode code point, so an emoji such as 🎉 is one character with one row and its U+ code, while a joined sequence like 👩‍💻 (woman, zero-width joiner, laptop) becomes three rows. An accented letter typed as a single precomposed character (é, U+00E9) is one entry; the same letter typed as e plus a combining accent is two.

Which character comes first when two have the same count?

Rows are sorted by frequency, highest first; characters with equal counts stay in the order they first appear in the text. There is no alphabetical sort, and upper- and lower-case letters are counted separately.

Related tools on this site

Everything above runs inside this page. Character Frequency needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

字元頻率統計能做什麼

貼上任何文字,工具會統計其中每一個字元,顯示總長度、出現多少種不同字元,以及各自出現的次數。英數字、標點、空白與符號都會分開計算,讓你看到字串實際包含什麼,而不只是看起來像什麼。

實際範例

貼上兩行付款提醒;計數會隨打字即時更新,不需按任何按鈕。

原文

Invoice 1042 is due on 2026-11-05.
Please pay by bank transfer.

得到:兩個統計值,再來是頻率表

Total characters: 63
Unique characters: 30

Character  Unicode  Frequency
␠          U+0020   9
e          U+0065   5
n          U+006E   4
a          U+0061   4
1          U+0031   3
0          U+0030   3
2          U+0032   3
s          U+0073   3
o          U+006F   2
i          U+0069   2
-          U+002D   2
.          U+002E   2
y          U+0079   2
b          U+0062   2
r          U+0072   2
… (15 more rows with frequency 1, including ↵ U+000A for the line break)

空格顯示為 ␠、換行顯示為 ↵,兩者都算在 63 之內。次數相同的字元依首次現身的順序排列,I 與 i 是兩列。

什麼時候用得上

  • 檢查文字是否符合嚴格的字數上限,且空白與標點都要計入。
  • 找出從 PDF 或外部系統貼進來時夾帶的隱形或非預期字元。
  • 解字謎與密碼練習,字母頻率是破解替換式密碼的標準第一步。

使用步驟

  1. 把文字貼上或輸入到輸入框。
  2. 查看總字元數與不重複字元數。
  3. 掃一遍頻率清單,注意有無異常字元。
  4. 編輯文字後,統計會即時更新。

精確度、限制與實務建議

  • 統計區分大小寫,A 與 a 會分別列出,做風格檢查很有用,但若預期合併計算則需留意。
  • 表情符號與部分中日韓字元佔用不只一個編碼單位,因此視覺字數與位元組數不會相同。
  • 換行也算字元,這就是貼上的段落常常比肉眼所見多出幾個字元的原因。

常見問題

空白會被計算嗎?

會。空白、Tab 與換行都是字元,會同時出現在總數與頻率清單中。

英文中最常見的字母是哪個?

是 e,在一般文章中約佔 12%,其次是 t 與 a,這也是頻率分析能輕易破解簡單密碼的原因。

有長度限制嗎?

沒有固定限制,只受瀏覽器記憶體影響,遠超一般文件長度時統計仍然很快。

Emoji 與帶重音的字母怎麼計算?

文字是依 Unicode 碼位拆開的,所以 🎉 這類 emoji 算一個字元、佔一列並附上 U+ 碼;像 👩‍💻 這種以零寬連接符接起來的序列會拆成三列。以單一預組字元打的 é(U+00E9)只佔一列,若是 e 加上組合重音符號則會變成兩列。

兩個字元次數相同時,哪一個排前面?

表格先依次數由高到低排序,次數相同的字元則維持在原文中首次現身的先後;沒有按字母排序,大小寫也分開計算。

本站相關工具

以上步驟全部在這個頁面內完成,字元頻率統計 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。