Text Counter
Measure character count, newline handling, and full-width/half-width ratio of pasted text instantly in your browser. Your input stays on your device.
Status
Runs in your browser. No input is sent to a server. Use this as a first-pass diagnostic step.
How to use
Paste text and click Count. Check counts with/without newlines and full-width/half-width perspectives.
Notes (this tool)
- Character counting rules differ by platform. Follow the destination platform/spec definition first.
- Emojis and combining characters may look like one character but consist of multiple code points.
About this page
What does this tool do?
Shows counts with/without newlines, line count, and full-width/half-width/other breakdown in one run.
Useful for post length tuning, form-limit checks, and quick log snippet measurement.
Counting model
- chars: total count by sequential string iteration
- chars (no newline): excludes newline chars (CR/LF)
- lines: line count by newline splitting
- full/half/other: practical classification by Unicode ranges
What this tool does
- Total / without newlines
- Full-width / half-width breakdown
- Line count
Notes
- Emoji sequences (for example family emoji) may look like one glyph but count as multiple elements.
- Full/half-width is a practical classification and may differ from product-specific rules.
Debugging workflow (recommended)
- Generate or paste a value
- Check format, timestamp, and character constraints
- Confirm against destination validation requirements
Referenced specs
- Unicode UAX #29 (Text Segmentation)
- Unicode UAX #11 (East Asian Width)
- ECMAScript (String Iterator)
FAQ
Why does the count differ from social platforms or CMS?
Each platform uses custom rules (URL weighting, emoji handling, newline logic). This tool uses a general Unicode-based count.
Does CRLF vs LF change the “without newlines” count?
Both newline styles are excluded, so results are usually equivalent. Differences may appear if hidden characters are included.
References
Next to view (diagnostic order)
These links are generated from site_map rules in recommended diagnostic order.
- Regex Tester — Test regex matching, extraction, and replacement
- UTM Builder — Build URLs with UTM parameters
- Regex Cheat Generator — Generate regex patterns from practical templates
- Query String Parser — Parse query strings and list parameters
- Mahjong Point Calculator — Calculate point movement on win from han/fu, honba, and kyotaku
- Mahjong All-Last Calculator — Compute ron/tsumo conditions needed to reach target rank from current scores
- Unix Time Converter — Convert Unix seconds/milliseconds and date-time both ways
- Cron Builder — Build 5-field cron and preview upcoming runs
Same-theme links
Quick Calculators
One-screen calculators for commonly forgotten quick math
- Mahjong Point Calculator — Calculate point movement on win from han/fu, honba, and kyotaku
- Mahjong All-Last Calculator — Compute ron/tsumo conditions needed to reach target rank from current scores
- Unix Time Converter — Convert Unix seconds/milliseconds and date-time both ways
- Cron Builder — Build 5-field cron and preview upcoming runs
- Regex Tester — Test regex matching, extraction, and replacement
- Regex Cheat Generator — Generate regex patterns from practical templates
- SQL WHERE Builder — Build WHERE clauses and bind params from condition rows
- SQL UPSERT Builder — Generate dialect-specific UPSERT SQL and bind values
- Random Token Generator — Generate random tokens with selectable byte size and encoding