🔢 编辑器字数统计Editor Counter
统计字符(按用户可见字符,即字素)、码位、单词(Intl.Segmenter 分词,中文按词)、行数与 UTF-8 字节。本地处理。Count characters (user-visible graphemes), code points, words (Intl.Segmenter, Chinese split into words), lines and UTF-8 bytes. Processed locally.
使用说明与常见问题How-to & FAQ
「编辑器字数统计」是什么?What is the Editor Counter tool?
统计字符(按用户可见字符,即字素)、码位、单词(Intl.Segmenter 分词,中文按词)、行数与 UTF-8 字节。本地处理。Count characters (user-visible graphemes), code points, words (Intl.Segmenter, Chinese split into words), lines and UTF-8 bytes. Processed locally.
如何使用「编辑器字数统计」?How do I use the Editor Counter tool?
在「编辑器字数统计」中,先在上方输入或粘贴内容,然后点击「统计」按钮即可。In the Editor Counter: Type or paste your input above, then click "Count".
“字符”怎么算?How are characters counted?
按用户看到的字符(字素)计数:👍🏽、👨👩👧 这样的组合表情和带附加符号的字母都算 1 个。另外单独列出 Unicode 码位数和 UTF-8 字节数。By user-visible characters (graphemes): combined emoji such as 👍🏽 or 👨👩👧 and letters with combining accents count as 1. The Unicode code-point count and UTF-8 byte count are shown separately.
中文单词怎么算?How are Chinese words counted?
使用浏览器内置的 Intl.Segmenter 分词:中文按词典切分为词,英文按空格和标点,连字符词(well-known)和缩写(don't)各算 1 个。不同浏览器的中文分词结果可能略有差别。With the browser's built-in Intl.Segmenter: Chinese text is split into dictionary words, English by spaces and punctuation, and hyphenated words (well-known) and contractions (don't) count as one each. Chinese word splitting can differ slightly between browsers.
处理大段文本会卡吗?Can it handle long text?
「编辑器字数统计」在浏览器中直接处理,几 MB 以内的文本通常瞬间完成;文本不会离开你的设备。The Editor Counter runs in your browser; text up to a few MB is usually processed instantly and never leaves your device.
「编辑器字数统计」免费吗?需要注册吗?Is the Editor Counter free? Do I need an account?
「编辑器字数统计」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Editor Counter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.