文字数カウント
文字数・単語数・行数・バイト数をまとめてカウント。日本語も正確に。
文字数カウントとは
文字数カウントとは、テキストに含まれる文字・単語・行の数を数える処理です。SNSの文字制限や原稿の文字数確認に使われ、UTF-8バイト数も同時に表示できます。
🔒 処理はすべてブラウザ内で完結し、データは送信されません。
このツールの前提
- 処理場所
- このページのブラウザ内(JavaScript / Canvas)
- アップロード
- なし — ファイルは端末の外に出ません
- オフライン
- ページを開いた後は通信不要
Four different answers to "how long is this"
The count is reported five ways because the five disagree: characters as people perceive them, characters excluding whitespace, words, lines, and UTF-8 bytes. A 100-character Chinese sentence is about 300 bytes, so a field that allows 200 bytes accepts roughly 66 of those characters. Which number matters depends entirely on where the text is going.
Characters are counted by iterating the string as code points, not by reading .length. That matters because JavaScript's .length counts UTF-16 code units: an emoji is 2 and a flag is 4, so a tweet of 140 emoji reports 280 by .length and 140 by code points. Platforms that enforce a limit use one rule or the other, and guessing wrong is how a post gets rejected.
What counts as a word
Words are counted by splitting on whitespace, which is right for English and wrong for Chinese and Japanese — text with no spaces reports one word no matter how long it is. The interface therefore also reports the CJK character counts separately, because for those languages the character count is the meaningful measure and the word count is noise.
Hyphenated compounds count as one word, as do URLs and email addresses, which is what most editorial guidelines intend but not what every CMS does. If a hard limit is being enforced somewhere, measure with that system's rule rather than trusting a general counter.
The limits people actually hit
A meta description starts truncating around 155–160 characters in search results, a title tag around 60, an X/Twitter post at 280 (with CJK and emoji weighted differently than Latin text), an SMS segment at 160 ASCII characters or 70 for anything non-GSM. All of those are measured in different units, which is why the byte count is shown alongside the character count.
Line counting treats CRLF, CR and LF as one break each, so a file saved on Windows and one saved on Unix with the same visible content report the same number. Byte counting does not — there the line endings differ by one byte per line, and that difference is enough to break a signature or a checksum comparison.
使い方
- 1.テキストを貼り付け
- 2.結果を確認
- 3.必要な数値をコピー
他の方法との比較
同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。
| 観点 | このツール | サーバー側の変換サービス | デスクトップアプリ |
|---|---|---|---|
| ファイルの処理場所 | このページのブラウザ内 | ベンダーのサーバー(アップロード後) | 自分の PC(アプリをインストール) |
| アカウント | 不要 | 多くの場合必要(無料枠の制限解除に登録を求める) | 不要(ライセンス認証は必要な場合あり) |
| 無料で扱えるサイズ | サイズ制限なし(回数制限もなし) | 数ファイル/時間、または 5〜10MB 程度で課金 wall | ディスクとメモリ次第 |
| 料金 | 無料。Pro は月 $9(大きいファイルと AI 機能のみ) | サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点) | 買い切り、またはサブスク |
| オフライン | 一度開けば通信不要 | 不可 | 可 |
| 20MB を処理し始めるまで | 待ち時間なし(アップロードが無い) | アップロードが支配的(10Mbps 上りで約 16 秒) | アプリの起動のみ |
| 保証できないこと | 何も保存されないため、閉じたタブの内容は復元できません | 同じ(変換の原理は変わらない) | 同じ。ただし書式の再現はより忠実な場合がある |
サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。
よくある質問
スペースは文字数に含まれますか?
はい。空白なしの文字数も別途表示するので、目的に合わせて使えます。
日本語や絵文字も正しく数えられますか?
はい。文字をUnicodeのコードポイント単位で数えるため、絵文字も1文字としてカウントします。
データは送信されますか?
いいえ。すべてブラウザ内で数えます。
この変換で失われるもの
テキストツールはページ外に出ません。貼り付けた文字列はメモリ上で変換され、結果欄に書き戻されます。リクエストもログも保持もないため、タブを閉じた値を復元する方法もありません。