Count characters in CotEditor on Mac

CotEditor has a feature to live-count characters in the document during editing.

Standard character count

CotEditor can show the character count both in the status bar and the document inspector.

The standard character count counts each grapheme cluster, which is defined as the “extended grapheme cluster” in Unicode. A grapheme cluster is a sequence of one or more Unicode code points that should be treated as a single unit for humans. For instance, while a normal character, such as A, is naturally counted as one character, an emoji consisting of multiple Unicode code points, such as 1️⃣ (U+0031 U+FE0F U+20E3), is also counted as one character.

Advanced character count

From the Advanced Character Count command in the Text menu, you can count characters in various ways.

Advanced character count option dialog

When starting the advanced character count, the counter appears at the bottom of the editor. The counter live-counts the characters in the way you set in the advanced character count option dialog. While a part of the text is selected in the editor, the counter shows the number of the selected characters; otherwise, it indicates the number of the entire character in the document. You can drag the counter to put it out of the way.

The options are shared in the application. When you change the options in an editor, the way they are counted in other editors also changes.

Note that the advanced character count can affect the processing performance according to the combination of the settings especially when the document to count has a large size. To stop the count, choose the Stop Advanced Character Count command in the Text menu.

See also