Twitter Character Counter
Craft perfect tweets with our Twitter character counter. Since 2017, Twitter (now X) allows 280 characters per tweet—double the original 140-character limit. Understanding exactly what counts toward your limit helps maximize impact while staying within bounds.
What Counts Toward Twitter's Limit
| Element | Character Count | Notes | Letters & Numbers1 eachStandard ASCII Spaces1 eachYes, spaces count Punctuation1 eachIncluding @, #, etc. Most Emojis2 eachUnicode encoding Complex Emojis4-7 eachSkin tones, ZWJ sequences URLs23 charactersAll links shortened to t.co @MentionsFull lengthUsername + @ symbol | Hashtags | Full length | # + text |
Twitter Character Counter
``javascript
function countTwitterCharacters(tweet) {
let count = 0;
// URLs are always 23 characters on Twitter (t.co shortening)
const urlRegex = /https?:\/\/[^\s]+/g;
const urls = tweet.match(urlRegex) || [];
let processedTweet = tweet.replace(urlRegex, '');
// Count remaining characters (simplified - emojis need special handling)
for (const char of processedTweet) {
// Basic emoji detection (simplified)
if (char.charCodeAt(0) > 0x1F000) {
count += 2;
} else {
count += 1;
}
}
// Add URL counts (23 chars each)
count += urls.length * 23;
return {
characters: count,
limit: 280,
remaining: 280 - count,
urlCount: urls.length,
isValid: count <= 280
};
}
``
Twitter/X Premium Character Limits
Twitter Premium (formerly Blue) subscribers can post up to 25,000 characters, but only the first 280 characters display in the timeline—users must tap to expand. For viral potential, your hook must work within the standard limit even with extended posts.
Optimal Tweet Length for Engagement
Studies show tweets between 71-100 characters receive the highest engagement rates. Shorter tweets are easier to retweet with added commentary. When crafting tweets, front-load the most important information—many users scan timelines quickly.