DevToolBox

Word Counter & Text Analyzer

単語数・文字数・文章数・段落数をリアルタイムでカウント。読了時間も表示。

0
文字数
0
文字数(空白除く)
0
単語数
0
文数
0
段落数
0
行数
0 sec
読了時間
0
バイト数(UTF-8)

How to Use the Word Counter

This free online word counter and text analyzer gives you instant statistics about your text as you type. Simply paste or type your content into the text area, and the tool automatically calculates the number of words, characters (with and without spaces), sentences, paragraphs, lines, and estimated reading time. All counts update in real time with no need to click any button. Everything runs in your browser, so your text is never sent to any server.

Why Word Count Matters

Word count is important for writers, students, marketers, and content creators. Blog posts typically perform best at 1,000 to 2,500 words for SEO. Academic essays often have strict word count requirements. Social media posts have character limits that vary by platform (Twitter/X at 280 characters, LinkedIn at 3,000 characters). Meta descriptions should be under 160 characters, and title tags under 60 characters. This tool helps you stay within these limits quickly and accurately.

Understanding Reading Time

The estimated reading time is calculated based on an average reading speed of 200 words per minute, which is a widely accepted average for adult readers consuming online content. This estimate helps bloggers and content creators set reader expectations. Many popular platforms like Medium display reading time prominently because it helps readers decide whether to engage with a piece of content. Shorter articles (under 3 minutes) tend to have higher completion rates, while longer, in-depth articles can establish authority.

Character Count Details

The tool provides both total characters (including spaces, tabs, and newlines) and characters without spaces. The character count without spaces is particularly useful for translation services that charge per character, SMS messages with strict byte limits, and form fields with maximum length validation. Sentence detection handles common endings including periods, exclamation marks, and question marks. Paragraph detection identifies text blocks separated by blank lines, which is useful for assessing content structure.

Byte Length vs. Character Count

Character count and byte length are not the same. In UTF-8 encoding, ASCII characters use 1 byte each, but Japanese, Chinese, Korean, and most emoji use 3 to 4 bytes per character. This matters when working with database columns that have byte-based size limits (e.g., MySQL's utf8mb4 charset uses up to 4 bytes per character), API request/response size limits, or storage quotas measured in bytes. A 100-character Japanese string can be 300 bytes or more, which can silently exceed a limit that was sized assuming 1 byte per character.

文字数カウンターの使い方

テキストエリアに文章を入力または貼り付けると、単語数・文字数・文数・段落数・行数・読了時間がリアルタイムで表示されます。 ボタンを押す必要はなく、入力と同時にカウントが更新されます。ブログ記事の文字数チェックやSNS投稿の文字数制限確認、 レポートの分量把握などに便利です。全ての処理はブラウザ内で完結します。

文字数とバイト数は同じではありません。UTF-8では英数字などのASCII文字は1文字1バイトですが、 日本語や絵文字は1文字あたり2〜4バイトを使用します。データベースのカラム容量やAPIのリクエスト・レスポンスサイズは バイト数で制限されることが多いため、日本語を含むテキストでは文字数だけでなくバイト数も確認することが重要です。 たとえばMySQLのutf8mb4では1文字に最大4バイト必要になり、文字数だけを基準にすると上限を超える場合があります。

よくある落とし穴と対処 / Common Pitfalls

落とし穴 / Pitfall問題 / Problem対処 / Fix
絵文字が2文字以上に数えられる
Emoji counted as 2+ characters
length はUTF-16コードユニット数。絵文字はサロゲートペア(2)や結合(さらに多)
String.length counts UTF-16 units; emoji use surrogate pairs
「見た目の文字数」が必要なら書記素単位(Intl.Segmenter)で数える
Count grapheme clusters via Intl.Segmenter
X(Twitter)の字数と合わない
Count differs from X/Twitter
Xは独自の重み付け(CJKは2、URLは一律23)で280字を計算
X weights CJK as 2 and URLs as 23 toward its 280 limit
CJK主体の投稿は実質140字。URL分は23字で見積もる
Budget 140 weighted chars for CJK posts; 23 per URL
日本語の「単語数」が不正確
Word count unreliable for Japanese
日本語は空白で区切らないため、空白ベースの単語数は意味を持たない
Japanese has no spaces; whitespace-based word counts are meaningless
日本語の分量は文字数で判断する(原稿用紙=400字)
Use character counts for Japanese text
翻訳・入稿の文字数と差が出る
Counts differ from CMS/translation tools
改行・空白を含むかどうかの定義差
Whether whitespace counts varies by tool
「空白込み/空白除く」のどちらが基準か先方に確認する
Confirm which definition the counterpart uses
読了時間が実態とずれる
Reading time feels off
200wpm基準は英語向け。日本語は400-600字/分が目安
200 wpm is an English benchmark
日本語コンテンツは文字数÷500で概算する
For Japanese, divide characters by ~500
文字数とバイト数がずれる
Byte length differs from character count
UTF-8では日本語や絵文字が1文字=2〜4バイトになる
UTF-8 uses 2-4 bytes per non-ASCII character
DB列やAPIのサイズ制限確認にはバイト数を見る(MySQLのutf8mb4は最大4バイト/文字)
Check byte length for DB column or API size limits (MySQL utf8mb4 uses up to 4 bytes/char)

コード例 / Code Examples

JavaScript(見た目の文字数)

"👨‍👩‍👧".length                    // 8 (UTF-16単位)
[..."👨‍👩‍👧"].length               // 5 (コードポイント)
[...new Intl.Segmenter("ja", { granularity: "grapheme" })
  .segment("👨‍👩‍👧")].length        // 1 (書記素=見た目)

Shell / Python

wc -m file.txt          # 文字数 / wc -w は単語数
len("こんにちは")         # Python: 5 (コードポイント)

カウント例 / Examples

"Hello world"   → 単語2 / 文字11(空白込み) / 文字10(空白除く)
"こんにちは。元気ですか。" → 文字12 / 文2
絵文字 "🎉" → length=2 だが見た目は1文字

Why browser-only?

Drafts are private by nature — unpublished articles, cover letters, or internal reports. This counter runs entirely in your browser: your text is never uploaded, never logged, and counting keeps working offline. Paste freely and check the DevTools Network tab — zero requests.

カウント対象は公開前の原稿であることがほとんど。本ツールは計測の全てがブラウザ内で完結し、 テキストが外部送信されることはありません。文字の内部表現を調べたい場合はUnicode Inspectorもどうぞ。

開発をもっと効率的に

PR