Character Counter

Count characters, words, UTF-8 bytes, lines, and analyze character frequency in real time. Check limits for Twitter, SMS, meta tags, and more.

Real-timeUnicode-awareFrequency analysisNo signup
Characters
0
With spaces
No Spaces
0
Excl. whitespace
Words
0
Whitespace split
Bytes (UTF-8)
0
Actual size
Lines
0
Newline-split
Character Breakdown
Uppercase
0%
Lowercase
0%
Digits
0%
Special
0%
Whitespace
0%
Enter text to see breakdown
Character Density (Top 10)
Enter text to see frequency

Platform Limits · Encoding · Special Characters

You have entered 0 characters. Status against common limits:
PlatformLimitRemainingStatus
SMS (1 segment)160160OK
Twitter / X post280280OK
HTML <title> tag6060OK
Meta description160160OK
URL slug7575OK
Instagram caption2,2002,200OK
LinkedIn post3,0003,000OK
YouTube title100100OK
YouTube description5,0005,000OK

Complete Guide to Character Counting

What is a Character Counter?

A character counter is a tool that determines the number of characters in a piece of text. While this sounds straightforward, characters in the modern world are not uniform in size or meaning. An ASCII letter takes 1 byte, while an accented character might take 2–3 bytes in UTF-8 encoding. An emoji like 😀 takes 4 bytes but counts as just 1 Unicode character.

Modern character counters like this one use the Unicode standard to count accurately — each Unicode code point is counted as one character, regardless of its byte size. This is the same method Twitter, Facebook, and most modern platforms use. The byte count displayed separately is the actual UTF-8 storage size, which matters for databases, API payloads, and file size calculations.

Character Count for SMS and Social Media

Each platform imposes different character limits, and understanding them can make a meaningful difference in communication effectiveness:

  • SMS: A standard SMS segment holds 160 characters in GSM-7 encoding. If you include Unicode characters (emoji, accented letters, Vietnamese diacritics), the limit drops to 70 characters per segment. Longer messages are split into multiple segments and may be billed multiple times.
  • Twitter / X: Allows 280 characters per post. Some CJK characters count as 2. URLs are always shortened to 23 characters regardless of actual length.
  • Instagram: Captions allow up to 2,200 characters, but only the first 125 characters appear before the "More" button on most views.
  • LinkedIn: Personal posts allow 3,000 characters. Company page posts are capped at 700 characters.
  • YouTube: Titles support up to 100 characters (Google displays roughly 70 in search), descriptions up to 5,000 characters.

Character Encoding Explained

Character encoding is the system that maps text characters to binary data that computers can store and transmit. The three most relevant standards today are:

  • ASCII: The oldest standard, supporting 128 characters — basic Latin letters, digits, and common symbols. Each character is exactly 1 byte. ASCII cannot represent Vietnamese, Japanese, Arabic, or emoji.
  • UTF-8: The modern web standard. Uses variable-length encoding: ASCII characters remain 1 byte, extended Latin characters are 2 bytes, Vietnamese and CJK characters are 3 bytes, and emoji are 4 bytes. It is backward-compatible with ASCII. This is why a Vietnamese text file is larger than an equivalent English file when saved as UTF-8.
  • UTF-16: Most basic characters are 2 bytes, emoji use 4 bytes (surrogate pairs). Used internally by JavaScript, Java, and Windows. Less common on the web than UTF-8.

This tool displays the real UTF-8 byte size — the number you need when calculating database field capacity, HTTP header limits, or API payload sizes.

Character Count for SEO

SEO has specific character length recommendations that directly affect click-through rates in search results:

SEO ElementIdeal LengthMaximum
Title tag50–60 characters~600px (roughly 70 chars)
Meta description120–160 characters~920px (roughly 160 chars)
URL slugUnder 75 charactersNo technical limit
H1 heading20–70 charactersNo limit
Image alt text80–120 characters125 chars (screen reader standard)

Google measures pixel width, not character count. The letter "i" is much narrower than "W". But the rule of thumb — 60 characters for titles and 160 for meta descriptions — works well in practice for standard Latin text. For other scripts, aim for fewer characters.

Bytes vs Characters

A common mistake is confusing characters and bytes. Here is the practical difference:

  • Character limits (Twitter 280, SMS 160): Count Unicode code points — each letter, digit, or emoji is 1 code point (or 2 for some complex emoji using surrogate pairs).
  • Byte limits (MySQL VARCHAR(255), HTTP headers 8KB): Count actual bytes in the chosen encoding — a Unicode character can be 1–4 bytes in UTF-8.
  • Practical example: A 100-character Vietnamese sentence may occupy 200–300 bytes in UTF-8 because many diacritical characters require 3 bytes each.

When working with APIs, databases, or systems with byte-based limits (not character limits), always verify the actual UTF-8 byte size — that is the "Bytes (UTF-8)" number shown in this tool.

Writing Within Limits

Writing concisely while still conveying your full message is a valuable skill. Some practical tips:

  • Twitter/X: Lead with the hook in the first 140 characters (what appears before "Show more" on mobile). Use a thread if you need more space.
  • SMS marketing: Always include a clear CTA and a shortened link. Check character count before sending to avoid triggering multi-segment billing.
  • SEO meta description: Place your primary keyword in the first 120 characters. End with a soft CTA. Avoid cutting a sentence mid-way.
  • Email subject lines: Under 50 characters displays well on mobile. Under 30 characters is safe for all devices.
  • Push notifications: Title under 50 characters, body under 90 characters to avoid truncation on iOS and Android.

Frequently Asked Questions

About Text Tools

Text tools handle the daily grind of working with strings, paragraphs, and documents: counting words, reversing characters, transforming case, generating slugs, splitting long text, previewing Markdown. These replace separate desktop apps and complex CLI commands with a single URL you can bookmark and use without setup.

Why it matters

Writers, editors, and content teams work with text constraints everywhere — Twitter's 280-char limit, LinkedIn's 1,300-char optimal post, academic abstracts of 250 words, SEO meta descriptions capped at 155. A word counter that shows characters (with and without spaces), words, sentences, paragraphs, and reading time lets you hit platform specs without switching between tools.

Privacy and safety

Text tools process input entirely in your browser. Your blog draft, legal contract, or confidential email never leaves your device. Even the word counter doesn't transmit your text — it runs a simple counting function locally, which is actually all that's needed. If a text tool claims to 'process' your text on their server, the scope for data leakage is enormous and almost never justified.

Best practices

  • For SEO titles, aim for 50-60 characters including spaces (Google truncates longer titles)
  • Meta descriptions work best at 150-155 characters — Google has been showing ~160 on desktop, ~120 on mobile
  • When generating slugs, keep them short (3-5 words), all lowercase, hyphens-not-underscores, avoid stop words
  • Markdown preview is useful BEFORE publishing to verify headings, links, and lists render correctly on the target platform