First CHToolsFree web tools

FIRST CH TOOLS / Text / 04 CHARACTER COUNTER

Character Counter

Paste text to count characters with and without spaces, words, lines and bytes at once. Set a limit and the part past it turns red.

0
Characters (incl. spaces)
0
Without spaces
0
Words
0
Lines
0
Full-width (CJK etc.)
0
Half-width (ASCII etc.)
0 sheets
Genkō yōshi sheets (0 rows)
0
Bytes (UTF-8)
0 / 280
Length on X (weight)
Left on X 280 —

Check against a limit

Your text is never stored or sent anywhere (it is gone when you close the page).

How to Use

  1. Paste your textCharacters, characters without spaces, words, lines and the rest update the moment you type.
  2. Set a limitIf a form says “400 characters max”, enter 400. The part past the limit turns red and you see how many characters to cut.
  3. Posting on X? Use the X counterX counts weight, not characters. This page shows the weight, but the exact overflow point and the URL / hashtag breakdown are on the dedicated page.

About This Tool

One character is one visible character (grapheme). Emoji and combining sequences count as one even when they are made of several code points (👨‍👩‍👦, 🇯🇵 and 1️⃣ are each 1). Old browsers without Intl.Segmenter fall back to code points, so emoji-heavy text counts higher there.

Spaces and lines. “Without spaces & newlines” removes spaces, tabs and newlines, including the ideographic space (U+3000). Lines are newlines + 1, so a trailing newline adds an empty line.

Words come from the word segmentation of Intl.Segmenter. For English this matches splitting on spaces and punctuation; for Japanese and Chinese it is an estimate from the browser’s dictionary. Genkō yōshi is the Japanese 400-square manuscript sheet (20 × 20); each newline starts a new row, and line-start punctuation rules are not applied.

The same string, different counts (worked examples)

Whether a “max 400” field accepts your text depends on what unit it counts. These values come from this page’s own calculation — paste the same string and you get the same numbers.

StringVisible charactersUTF-16 (JavaScript length, maxlength)UTF-8 bytesX weight
Hello, world12121212
文字数カウント (Japanese)772114
👨‍👩‍👦 (family emoji)18182
ガ (one code point) / カ + combining mark1 / 11 / 23 / 62 / 2
https://tools.first-ch.com/moji/?utm_source=x45454523

An HTML maxlength is measured in UTF-16 code units, so one family emoji uses up 8 of it. A letter written with a combining mark looks identical to the precomposed one but takes twice the bytes (X normalizes posts to NFC before counting, so both weigh 2).

How X counts a post

The X limit is 280 weight, not 280 characters. CJK characters and full-width symbols weigh 2; Latin letters, digits and ASCII punctuation weigh 1; every URL weighs 23 whatever its length; an emoji weighs 2 however many code points it has. A Japanese-only post hits the limit at 140 characters. The “X weight” here uses the same calculation as the X (Twitter) Post Counter, which also shows the overflow point, the URL / mention / hashtag breakdown and a trim-to-limit button. The button that moves you there copies your draft to the clipboard instead of putting it in the URL. We checked the weights against twitter-text 3.1.0 (npm), X’s own counting library, on 25 strings — 140 vs 141 Japanese characters, long and scheme-less URLs, family and flag emoji, combining characters (NFC), mentions and hashtags — and all of them match (2026-11-01).

Sources

  • X Developer Platform, “Counting characters” — 280 limit, CJK = 2, URL = 23, emoji = 2, NFC normalization (checked 2026-11-01)
  • twitter/twitter-text, “config/v3.json” — weight-1 code point ranges (0–4351, 8192–8205, 8208–8223, 8242–8247) and URL length 23 (checked 2026-11-01)
  • MDN Web Docs, “HTML attribute: maxlength” — length is measured in UTF-16 code units (checked 2026-11-01; page last modified 2026-04-20)

Your text never leaves the browser — every count is computed locally. You can also open the page with parameters: /en/moji/?text=any%20text&limit=400 (text put in a URL reaches the server as part of the page request).

From AI Agents

Character counts (with and without whitespace), full-/half-width counts and lines are also available as the count_chars tool in our MCP (Model Context Protocol) server @first-ch/tools-mcp, callable directly by AI agents with no browser needed (words, manuscript sheets, bytes and the limit check are on this page only). Its x_weight uses the same calculation as the X (Twitter) Post Counter (version 0.63.0 and later). See Using These Tools from AI Agents for setup details.

Install

claude mcp add firstch-tools -- npx -y @first-ch/tools-mcp

Example call

# example input passed to the agent
count_chars(text="text to count")

Other Tools

Tools people often open after counting a draft

Browse all 86 other tools by category

Images20

Design14

Text13

SEO & AI8

Dev16

Other15

Advertisement