Ultimate Character Counter

Remove extra spaces and line breaks

Text copied from a PDF, an e-mail or a web page comes with broken lines and double spaces. Paste it here and clean it in one click.

0Characters
0Without spaces
0Words
0Sentences
0Paragraphs
0Lines
0Reading time
0Speaking time
0Bytes (UTF-8)
0Pages
Text tools
All the numbers and settings
Characters, line breaks included0
Characters, without line breaks0
Characters without spaces or line breaks0
Letters0
Digits0
Punctuation and symbols0
Spaces and tabs0
Line breaks0
Invisible characters0
Unicode code points0
UTF-16 units (what many web forms count)0
Words0
Sentences0
Paragraphs0
Lines0
Pages0
Length of a post on X0
As a text message0
Bytes in UTF-80
Bytes in UTF-160
Where these limits come from

How it works

  1. Paste the text in the box.
  2. Under “Text tools” choose what to remove: extra spaces, line breaks or empty lines.
  3. Copy the clean text. “Undo” brings back the text as it was.

Good to know

“Remove extra spaces” turns two or more spaces or tabs into one and deletes the spaces at the start and end of each line. “Remove line breaks” joins all the lines into one paragraph, with one space between them. “Remove empty lines” keeps the lines and deletes only the blank ones.

The numbers above the tools change as you clean: it is the quickest way to see how many characters the extra spaces were costing you in a form with a limit.

Why this counter

Counts what you see

An emoji, a flag or a letter with an accent is one character, as a reader would count it. The numbers that programs use are shown next to it.

Right in every language

Words follow the rules of word processors. Japanese, Korean and Chinese get their own numbers: bytes, full-width characters, manuscript paper.

Limits ready to use

A post on X, a text message, a search snippet, an application form: pick the limit and see how much room is left.

Your text stays with you

Everything is counted by your browser. The text is not sent to a server and nobody else can read it.

Questions and answers

How do I fix text copied from a PDF?

Choose “Remove line breaks” to join the lines that the PDF broke, then “Remove extra spaces”. If the text has several paragraphs, do one paragraph at a time.

Does it remove the spaces between words?

No. One space is always kept between words. Only repeated spaces and the spaces at the ends of lines are removed.

Can I get my text back after cleaning?

Yes, “Undo” restores the text as it was before the last change.

Is my text sent anywhere?

No. The counting is done by your browser, on your device. The text is not sent to our server or to anyone else, and it is not saved unless you tick “Keep my text on this device”.

Is there a limit on the length of the text?

No fixed limit. A whole book can be pasted; with very long texts the numbers appear a moment after you stop typing.

Why does another counter show a different number?

Counters differ on three things: whether line breaks are characters, whether an emoji is one character or several, and what makes a word. This page shows each of these numbers separately, so you can find the one your form or program uses.

Share this tool