Count characters, words, sentences and bytes as you type, with reading time, readability, keyword density and post limits
Paste or type text, or open a text, Word or OpenDocument file, to see its characters, words, sentences and lines, the counts code uses (code points, JavaScript’s length, UTF-8 and UTF-16 bytes), reading time, readability and the words used most. Set a limit, or pick one such as an X post, to see how many are left.
How to use it
Paste or type the text, or open a text, .docx or .odt file. Read every count at once; each has its own Copy. Optional: pick a limit (an X post, an Instagram caption, a YouTube title…) or enter your own in characters, UTF-8 bytes or words to see how many are left or how far over it is. Read the words used most under Keywords, with stop words such as “the” and “of” left out in the language you pick.
Example
One emoji, four counts
👨👩👧👦
Characters: 1 Code points: 7 UTF-16 units (JavaScript length): 11 UTF-8 bytes: 25
A family emoji is four people joined by three zero-width joiners.
Which count does a limit use?
| Where | Counts in |
|---|---|
JavaScript, Java and C# string length | UTF-16 units: an emoji outside the basic plane is 2 |
SQL VARCHAR(n) | Code points in MySQL and PostgreSQL: n characters, whatever their bytes |
Cookies, HTTP headers, many API fields | Bytes, usually UTF-8: é is 2, an emoji 4 |
A DNS label (one part of a domain name) | 63 bytes |
Sources: MDN: String length, PostgreSQL: character types, RFC 1035 §2.3.4
What counts as one character
Sources: Unicode UAX #29
Readability and keywords
Limits you can pick
| Preset | Limit |
|---|---|
X post | 280 characters |
Bluesky post | 300 characters |
Threads post, Mastodon post | 500 characters (a Mastodon server can set its own) |
Instagram caption | 2,200 characters |
LinkedIn post | 3,000 characters |
YouTube title, description | 100 and 5,000 characters |
Reddit title | 300 characters |
Git commit subject | 50 characters, a convention, not a limit Git sets |
DNS label | 63 bytes |
Sources: X: counting characters, YouTube Help: add video details, Pro Git: commit guidelines
Sentences, paragraphs and reading time
Sources: Brysbaert (2019), How many words do we read per minute?
Questions
- Is the text uploaded?
No. Everything runs in your browser, so your text stays on your device. Nothing you paste is uploaded unless you share it. - Can I count the words in a Word document?
Yes: open a .docx or .odt file and its body text is counted, paragraphs a blank line apart. Headers, footers, footnotes and deleted tracked changes are left out, as Word’s own count does by default. For a PDF, take its text out with TuckPDF’s PDF to Text (tuckpdf.com/pdf-to-text), our PDF site, and paste it here. - Are spaces counted as characters?
Yes: Characters counts spaces, tabs and line breaks. Characters without spaces leaves all of them out. - Why does JavaScript say my text is longer?
JavaScript’s length counts UTF-16 units. Emoji and some rare characters take two units each, and a joined emoji such as a family takes many, while a person sees one character. - How are lines counted?
Each line break (Windows CRLF, LF or CR) starts a new line, so text that ends with a line break has an empty last line. “Lines with text” leaves out empty lines and lines of spaces only. - Why is the UTF-8 count larger than the character count?
UTF-8 writes English letters, digits and ASCII punctuation in 1 byte, accented Latin, Greek, Cyrillic and Arabic letters in 2, most other scripts, Bangla and Chinese included, in 3, and emoji in 4. - What does “lone surrogate” mean?
Half of a UTF-16 pair with no other half, usually from text cut in the middle of an emoji. It can’t be written in UTF-8, so encoders replace it with �, which is 3 bytes.