跳到主要內容
bobob

字數與字元計數器

統計字元、單字、行數、位元組與閱讀時間,用於文案、文件與貼上內容。

只在瀏覽器裡處理輸入的內容不會送到伺服器。

輸入與結果

輸入的內容只存在這個瀏覽器。重新開啟可以還原上次的操作。

  • 統計字元、單字、行數、位元組與閱讀時間,用於文案、文件與貼上內容。
  • 以瀏覽器本機方式處理輸入,並在複製前檢查結果。
  • 搭配 字數與字元計數器 與相關工具縮短工作流程。
常見輸入
Bob's Multi Tool
用此範例檢查 字數與字元計數器 的輸入流程。
典型輸出
3 words, 16 characters
複製前用來確認結果格式與後續檢查點。
  • 統計字元、單字、行數、位元組與閱讀時間,用於文案、文件與貼上內容。
  • 如果瀏覽器本機處理方式和真實輸入結構不一致, 輸出不能直接信任。
  • 複製的值中如果混入正式密鑰、客戶資料或內部 URL, 分享前必須移除。
  1. 1再次比較原始輸入與輸出形態。
  2. 2確認目標執行環境、編碼、時區與安全政策差異。
  3. 3繼續用相關工具檢查 字數與字元計數器 的結果是否適合下一步。
  • Counters disagree because they count different units

    What a reader calls one character is a grapheme cluster (UAX #29). JavaScript's `string.length` counts UTF-16 code units instead: 👨‍👩‍👧 is 1 to a person and 8 to the code. Which one is right depends on where the text goes — SMS counts code units, a layout review counts what people see.

    依據:UAX #29

  • Platform limits are not the same limit

    The same sentence hits different ceilings depending on whether a platform counts code points or bytes. Non-Latin scripts usually take 3 bytes per character in UTF-8, so byte limits bite much earlier.

    依據:Platform input limits

字數與字元計數器 的輸入在哪裡處理?

可行的處理會在瀏覽器中執行,但不要輸入正式密鑰或客戶資料。

結果可以直接用於正式環境嗎?

複製前請再次確認執行環境、編碼、時區與安全政策等環境差異。