String Length Counter — Unicode Characters and UTF-8 Bytes

Measure Unicode code points, words, lines, UTF-8 and UTF-16 bytes. Compare lines individually and copy a summary from your browser.

🔒 Local processing
⚡ Free to use
🌐 Runs in your browser
📦 See output options
⚡

String Length Counter — Unicode Characters and UTF-8 Bytes

Tool workspace

Ready

Loading tool...

  1. Paste text.
  2. Enable per-line mode if needed.
  3. Click Analyze and inspect the totals.
  4. Copy the summary or clear the input.

Measure text length and encoding size

Click Analyze to count Unicode code points, words, lines, estimated sentences, paragraphs and byte sizes. Counts do not update automatically while typing. Characters are code points rather than grapheme clusters: combined emoji or combining accents may count as several. The no-spaces total excludes whitespace, including tabs and newlines.

Check the units

A has one UTF-8 byte and two UTF-16 bytes. 😀 counts as one code point and has four bytes in either encoding. UTF-16 size excludes a BOM. Words use whitespace boundaries; this is not language-aware Chinese segmentation. Sentence estimates use punctuation and can split decimals or abbreviations. Paragraphs use blank lines.

Compare rows

Per-line mode shows characters, words and UTF-8 bytes for each line. Copy Results copies the overall summary, not the table. There are no social-media limit gauges or grammatical checks. Large inputs may take longer. Calculations use browser memory; shared website services are covered by the privacy policy.

Frequently asked questions

Are characters and bytes the same?

No. Characters here are Unicode code points; UTF-8 and UTF-16 encode them into different byte counts.

Does it count visible emoji as one character?

Not always. Combined emoji can contain several code points, which are counted separately.

Does Copy Results export every row?

No. It copies the overall summary. The per-line table is displayed separately.