✍️ Writing & Text Guide

How to Count Characters, Words & Lines in Any Text

📅 May 2026⏱ 8 min read✍️ ToolLoom Editorial

Counting characters sounds trivial — until you hit a Twitter limit mid-thought, a meta description that's too long for Google, or an SMS that silently splits into two paid messages. This guide covers every platform limit, counting method, and edge case you need to know.

📋 In This Article
  1. Why character counting matters
  2. How to count characters manually and online
  3. Social media character limits by platform
  4. SEO: title tags, meta descriptions & URLs
  5. SMS character limits and message segments
  6. Does the counter include spaces?
  7. Common character-counting mistakes
  8. Frequently asked questions

Why Character Counting Matters

A single extra character can truncate your headline in Google search results, split your SMS into two billable messages, or get your tweet rejected mid-post. Here are the most common real-world situations where character counts are critical:

🐦
Social Media Posts
Twitter/X enforces a hard 280-character cap. Instagram captions truncate at 125 characters in the feed preview.
🔍
SEO & Search Snippets
Google displays ~60 characters for titles and ~155–160 characters for meta descriptions before cutting off.
📱
SMS & Messaging
A single SMS segment is 160 characters (GSM-7). Go over and you pay for two messages — or the text breaks unexpectedly.
💼
LinkedIn & Job Posts
LinkedIn headlines cap at 220 characters. Job descriptions and "About" sections have their own distinct limits.
📧
Email Subject Lines
Most email clients show 40–60 characters in the inbox view. Longer subjects get cut off — often at the crucial part.
📝
Forms & Databases
Database columns have character limits (e.g. VARCHAR(255)). Exceeding them causes errors or silent data truncation.

How to Count Characters — Manually and Online

There are three main ways to get a character count, each suited to different situations.

1

Use an online character counter (fastest)

Paste your text into a tool like ToolLoom's Character Counter and you instantly see characters (with and without spaces), word count, sentence count, and line count — all updated in real time as you type or edit.

2

Use your word processor's built-in count

In Microsoft Word, go to Review → Word Count. In Google Docs, go to Tools → Word Count (Ctrl+Shift+C). Both show characters with and without spaces, but neither gives you a real-time live count as you type in smaller snippets.

3

Count manually for short strings

For a short string (under ~30 characters), count each character one by one, including spaces, punctuation, and symbols. This is error-prone for anything longer — a single miscounted space throws off the total.

4

Use a formula in a spreadsheet

In Excel or Google Sheets, =LEN(A1) counts all characters in a cell, including spaces. =LEN(TRIM(A1)) removes leading/trailing spaces first. =LEN(A1)-LEN(SUBSTITUTE(A1," ","")) counts just the spaces in a string.

💡

Real-time is best: Platform limits apply the moment you submit or publish. An online counter that updates live as you type is the safest option — you see your count change with every keystroke and can trim before hitting a wall.

Social Media Character Limits by Platform

Every major social platform has its own limits — and some count characters differently (for example, Twitter counts every URL as exactly 23 characters regardless of the actual URL length).

PlatformLimitNotes
Twitter / X280 charactersURLs count as 23 characters. Twitter Blue subscribers get extended posts up to 25,000 characters.
Instagram Caption2,200 charactersOnly ~125 characters show before "more" in the feed. Hashtags count toward the limit.
Instagram Bio150 charactersHard limit; no overflow permitted.
Facebook Post63,206 charactersPractically unlimited for most content. Page posts may have different display truncation.
LinkedIn Post3,000 charactersFeed shows ~210 characters before "see more". Articles have no meaningful cap.
LinkedIn Headline220 charactersAppears in search results and connection requests.
YouTube Title100 charactersSearch results typically show ~60–70 characters.
YouTube Description5,000 charactersFirst ~120 characters appear before "show more" on mobile.
Pinterest Pin500 charactersOnly ~50 characters show in grid view before truncation.
TikTok Caption2,200 charactersFeed shows ~100 characters before "more".
⚠️

Platform limits change. Twitter raised its limit from 140 to 280 characters in 2017. Always verify the current limit in each platform's official documentation before building tools or workflows that depend on exact counts.

SEO: Title Tags, Meta Descriptions & URLs

Search engines do not use a strict character limit — they use a pixel width limit. But character counts are a reliable proxy since most characters are similar widths in Google's display font.

Title tags

Google typically displays up to about 600 pixels of title width, which corresponds to roughly 50–60 characters for a typical mix of uppercase and lowercase letters. Titles longer than this get truncated with an ellipsis in search results.

Meta descriptions

Google shows approximately 155–160 characters of meta description on desktop and around 120 characters on mobile. Going longer doesn't harm rankings, but the extra text won't be displayed.

SEO ElementRecommended CharactersHard Limit?
Page title tag50–60 charactersNo — pixel-based truncation
Meta description155–160 charactersNo — pixel-based truncation
URL slugUnder 75 charactersNo — but shorter is better for readability
H1 heading20–70 charactersNo — best practice only
Alt textUnder 125 charactersNo — screen reader best practice
Open Graph titleUnder 60 charactersNo — social card display limit

Pro tip: Write your title tag and meta description in a character counter tool first, keeping a live eye on the count. Aim to hit the upper end of the range without going over — a full, rich snippet attracts more clicks than a short one.

SMS Character Limits and Message Segments

SMS is where character counting has a direct financial consequence — going one character over a segment boundary doubles (or triples) the cost of your message without any warning.

GSM-7 vs Unicode (UCS-2)

Standard SMS uses the GSM-7 alphabet, which covers basic Latin characters, digits, punctuation, and a small set of symbols. If your message includes any character outside this set — emoji, accented letters like ñ or ü, Arabic, Chinese, or any non-Latin script — the entire message switches to Unicode (UCS-2), which has a smaller per-segment capacity.

EncodingSingle SMSMultipart SMS (per segment)
GSM-7 (standard Latin)160 characters153 characters per segment
Unicode / UCS-2 (emoji, non-Latin)70 characters67 characters per segment

Notice that multipart segments are smaller than single-segment messages — this is because the carrier uses some characters for a header that joins the parts together when they arrive at the recipient's phone.

Common GSM-7 special characters

A few characters in the GSM-7 extended table count as 2 characters each, not 1. These include: [ ] { } \ ^ ~ | €. A message containing only these special characters can have fewer characters than expected before it hits the segment boundary.

🚨

Emoji will switch your entire SMS to Unicode. A single emoji in a 159-character message doesn't just add a character — it changes the encoding of the whole message, dropping your single-segment capacity from 160 to 70, and instantly turning one message into three billed segments.

Does the Character Counter Include Spaces?

This is one of the most common questions — and the answer depends on which count you look at.

1

Characters with spaces (total characters)

Every character in the text is counted, including every space, tab, and newline. This is the number most platforms use for their limits — Twitter, Instagram, SMS, and meta descriptions all count spaces as characters.

2

Characters without spaces

Only non-space characters are counted. This is useful for measuring content density — for example, academic word count policies sometimes specify characters without spaces (known as "characters net" in European academic contexts).

3

Which one should you use?

Always check the platform's documentation. When in doubt, "characters with spaces" is the safer, more common default. Most online character counters display both figures side by side so you can use whichever applies.

💡

For platform limits, always use the "with spaces" count. A tweet with 280 non-space characters would actually be far longer than allowed — spaces between words are very much included in Twitter's limit.

Common Character-Counting Mistakes

1

Counting words instead of characters

A "500-word limit" and a "500-character limit" are completely different. A 500-word paragraph typically runs 2,500–3,000 characters. Confusing the two can mean submitting content that is five times too long or too short.

2

Forgetting that emoji are multi-character in some systems

A single emoji can be 2, 4, or even more bytes/characters depending on the encoding layer. In SMS (Unicode mode), an emoji counts as 2 characters. In some database systems, an emoji stored in UTF-8 uses 4 bytes — which matters if your VARCHAR column has a byte limit rather than a character limit.

3

Not accounting for the "see more" truncation point

Instagram and LinkedIn show far fewer characters before collapsing the text, even though the hard limit is much higher. If your key message appears after the truncation point, most people will never see it.

4

Using word count for Twitter

Twitter has no word limit — only a character limit. A single long word and 15 short words can have identical character counts. Relying on word count to estimate whether a tweet fits will frequently mislead you.

5

Ignoring trailing spaces and newlines

Invisible whitespace at the end of a text block still counts toward the character limit. A text that "looks" like 158 characters may actually be 162 because of trailing spaces or a newline character — enough to push an SMS into a second segment.

✍️ Count Characters Instantly — Free

Real-time character, word, sentence, and line counts. Paste any text and see your numbers update live. Works for tweets, meta descriptions, SMS, and more — no signup needed.

Open Character Counter →

Frequently Asked Questions

Every single symbol in your text counts as a character: letters, digits, punctuation marks, spaces, tabs, newlines, and emoji. Most character counters display two totals — "with spaces" (every character) and "without spaces" (everything except space characters). Platforms like Twitter and SMS systems use the "with spaces" count for their limits.
Standard Twitter/X accounts can post up to 280 characters. All URLs — regardless of how long or short the actual link is — are automatically shortened to 23 characters by Twitter's t.co system and count as 23 characters toward your limit. Twitter Blue / X Premium subscribers can post longer-form content.
Aim for 155–160 characters including spaces. Google does not use a strict character limit — it uses pixel width — but 155–160 characters is a reliable practical target for desktop search results. On mobile, snippets are often shorter (around 120 characters). Write the most important information in the first 120 characters to be safe on both devices.
Two common causes: (1) Your message contains an emoji or a non-Latin character, which switches the encoding to Unicode (UCS-2). In Unicode mode, a single SMS only holds 70 characters. (2) Your message contains an extended GSM-7 character such as [ ] { } \ ^ ~ | or €, which each count as 2 characters in the GSM-7 standard — silently pushing you over the 160-character single-segment boundary.
Yes. Every character in a hashtag — including the # symbol itself and all the letters — counts toward Instagram's 2,200-character caption limit. A long string of hashtags can easily consume 500–800 characters. To keep the caption clean, many creators post hashtags in the first comment instead of the caption itself.
Use the LEN function. =LEN(A1) returns the total number of characters in cell A1, including all spaces and punctuation. To remove leading and trailing spaces before counting, use =LEN(TRIM(A1)). To count only non-space characters, use =LEN(SUBSTITUTE(A1," ","")). These formulas work identically in both Excel and Google Sheets.

More from ToolLoom