Use this free character counter to get an accurate character count for any text. The counter tracks characters with and without spaces, byte size, and more — entirely in your browser with no data sent to any server.
How the Character Counter Works
Every character you type or paste — letters, numbers, spaces, punctuation, line breaks, and emoji — is counted individually. The "characters with spaces" total is the raw length of your text string. The "characters without spaces" count removes all whitespace (spaces, tabs, and newlines) and counts what remains.
Why platforms have different character limits: Twitter's 280-character cap originated in 2017 as a doubling of the original 140-character limit, which itself was derived from SMS. SMS is capped at 160 characters because German researcher Friedhelm Hillebrand established in 1985 that most messages, questions, and directives fit within that length — a finding that became the GSM standard adopted by every carrier worldwide. Instagram allows 2,200 characters in captions because longer text supports storytelling and hashtag strategies. LinkedIn allows 3,000 characters per post to accommodate professional-length commentary and thought leadership content.
ASCII vs. Unicode: In ASCII encoding, every character is exactly one byte. Unicode (UTF-8), which handles every language, symbol, and emoji, uses 1–4 bytes per character. The letter "A" is 1 byte; "é" is 2 bytes; "中" is 3 bytes; and most emoji are 4 bytes. When this tool shows byte count, it uses UTF-8 — the encoding standard of the web.
Emoji and platform counting: Most platforms count standard emoji as 2 characters because of how Unicode stores them in memory. Compound emoji — family groups or combinations assembled with Zero Width Joiners — can register as 6 or more characters on platforms using older Unicode handling. This counter shows the raw Unicode character count, which matches what modern platforms report.
Example: Fitting a Post Across Six Platforms
A social media manager drafts a product launch announcement for Twitter. Her first version runs 312 characters — 32 over the 280-character limit. She pastes it into the character counter and sees the breakdown: 312 characters with spaces, 261 without spaces, 3 sentences.
The fix is straightforward: two filler openers ("We are excited to announce" and "We hope you will join us") consume 44 characters without adding meaning. She rewrites the opening as direct copy and checks again: 274 characters, with room for a hashtag.
The same announcement needs to reach six platforms. Checking all limits at once:
- Twitter/X (280): Core message fits at 274 characters.
- Instagram caption (2,200): Full version fits; she adds three hashtag lines.
- LinkedIn post (3,000): Full version fits; she expands with a paragraph of context.
- Facebook post (63,206): No practical constraint.
- TikTok caption (2,200): Full version fits.
- SMS marketing (160): Requires a stripped-down version with a short URL.
Using the Platform Limits tool below surfaces all these comparisons at once, so she can identify which platforms need a separate, shorter version before she starts writing them.
Key Factors in Character Counting
Invisible characters sometimes enter your text when pasting from formatted documents or rich text editors: zero-width spaces, non-breaking spaces, soft hyphens, and smart quotes all have character values and are included in the count. If your character total seems unexpectedly high for a short piece of text, hidden formatting characters from the source document are a common cause.
URL treatment varies by platform. Twitter automatically shortens all URLs to 23 characters via its t.co shortener, regardless of the original URL length — a 10-character URL and a 200-character URL both count as 23 characters in a tweet. On Instagram, links in captions are not clickable, so URLs count at full character length but serve no navigational purpose; most creators write "link in bio" instead.
Newlines count as characters. A line break is one character on Unix-based systems, or two characters (carriage return + newline) in Windows line endings. On Twitter, line breaks count toward the 280-character limit. In SMS, they consume bytes in the message payload and can push a message into multi-part territory, doubling the delivery cost.
Byte count vs. character count matters when working with databases, APIs, or systems that impose byte limits rather than character limits. A database field with a 255-byte limit can hold 255 ASCII characters but only about 63 characters if each is a 4-byte emoji. The byte count shown here helps identify cases where text that looks short may exceed a byte-based constraint.