Word Counter

See words, characters and lines as you type.

Free to use · No account needed · Files stay on your device

Text editor

About Word Counter

For a word-limited abstract, read Words. For a character-limited form, check whether spaces count and use the corresponding number. All four totals update as you edit, so you can see what a change actually saves.

How to use this tool

  1. Type, paste or open a UTF-8 text file.
  2. Read the four counts below the editor.
  3. Edit the draft to meet your limit.

Formats, options and limits

Words
When available, the browser’s language-aware segmenter counts word-like segments, including numbers.
Characters
Characters includes spaces, punctuation and line breaks. Without whitespace excludes spaces, tabs and line breaks.
Lines
Each explicit line break starts another line, including a trailing empty line. Soft wrapping on screen leaves this count unchanged.
Input
Type or paste up to 256 KiB of text, or open a UTF-8 .txt, .md or .markdown file.

Count the version your recipient will read

A call for submissions may ask for a 250-word abstract while its submission form sets a character limit. Paste the abstract on its own and read both figures. Include the title, byline or references only if the submission instructions count them. For a social caption, paste the final version with its punctuation, emoji and intended line breaks. The totals update as you edit, so you can see whether removing a phrase gets you under the relevant limit.

You can type, paste or open UTF-8 text up to 256 KiB. A Markdown file is counted as source text. If the limit applies to a rendered article, paste the displayed passage so link destinations, table separators and formatting marks do not add characters the reader never sees.

Match the number to the rule

Characters includes visible marks and whitespace. Without whitespace excludes spaces, tabs and line breaks while retaining punctuation and symbols. Adding a blank line between two paragraphs therefore changes the character total and line count even when the words stay the same. Use both totals when the instructions mention a character budget but are unclear about spaces, then compare with the destination’s own counter when it provides one.

Lines counts explicit breaks. A single long paragraph can wrap across six lines on a phone while still contributing one line here. Adding a final line break starts a trailing empty line. That distinction matters when you are checking a list with one entry per line or trying to explain a difference between two counts.

Read multilingual and emoji counts

When the browser offers language-aware segmentation, the counter uses it to identify word-like units, including numbers. That matters for writing systems where words are not routinely separated with spaces. It also counts a displayed character made of several joined parts as one grapheme. An emoji with a skin tone can therefore be one character even though its underlying Unicode sequence contains multiple code points.

Browsers without that support group consecutive letters and numbers and count individual Unicode code points. The browser’s locale and the destination’s counting rules can affect results, especially with mixed scripts. When an editor enforces its own submission rule, its measurement ultimately determines what it will accept.

Reproduce a count or explain a discrepancy

The downloadable mixed-language fixture gives you the exact input and a separate record of the observed totals. Chromium reported four words, 17 characters, 12 characters without whitespace and three lines. Open the source in the counter, then remove one line break and observe which values change. This isolates a difference due to whitespace without changing the wording.

When checking your own draft, compare exactly the same passage on both sides, including a final newline or pasted sign-off. The four measurements are calculated locally in your browser, so you can use them on an unpublished excerpt without submitting its text to a converter.

Try a checked example

Open the UTF-8 text file and read the counts beside the editor.

The Chromium workbench showed 4 words, 17 characters, 12 characters without whitespace, and 3 lines.

Frequently asked questions

Do spaces and line breaks count as characters?

Yes in Characters. Without whitespace leaves out spaces, tabs and line breaks, while retaining letters, numbers, symbols and punctuation.

How does the word count work for Chinese and Japanese?

When the browser supports Intl.Segmenter, it finds word boundaries using its default locale, including in text without spaces. The fallback groups consecutive letters and numbers. Different editors or browser locales can give different totals.

Does an emoji count as one character?

Browsers with grapheme segmentation count a combined emoji, including a skin tone or joined sequence, as one visible character. The fallback counts Unicode code points, so one displayed emoji can contribute multiple characters.

Why does a final line break add a line?

It starts an empty line. A completely empty editor has zero lines. A single line of text followed by one line break has two.

Does the counter ignore Markdown formatting?

It counts the source you put in the editor. Punctuation such as Markdown markers contributes to the character total. Paste the rendered text if that is the version you need to measure.

Can I count a PDF or Word document?

Paste the passage you want to count, or open a UTF-8 text file. For a PDF, you can first extract its text and paste the result into the counter.

Do I need to upload my draft to see the counts?

The editor calculates the totals in your browser as you type, paste or open a text file. You can check a short passage without sending a document to a converter.

Extract text from a PDF before counting it