How do you clean up a text?
Paste your text into the box and tick the fixes you want. They can be combined; the table compares the number of characters and lines before and after. “Apply cleanup” replaces the text, and the Undo button steps back as many times as needed. The same text can then be counted, converted to capitals or compared with its original version without any copy and paste, then copied or downloaded as a text file.
Removing line breaks from text copied from a PDF
Text taken from a PDF is often cut at the end of every line. This option joins the lines of each paragraph. Paragraphs separated by an empty line, items of a bulleted or numbered list, and a clearly shorter line that ends a sentence stay apart. In Chinese and Japanese, lines are joined without a space.
What each fix removes
- Spaces: double spaces between words, spaces at line edges, tabs and empty lines.
- Invisible characters: zero-width characters, byte order marks, text direction marks and control codes; non-breaking spaces become ordinary ones.
- HTML tags: they disappear along with scripts and styles, and entities such as “&” are decoded.
- Typography: curly or angled quotes, apostrophes, long dashes and accents can be simplified.
Sorting a list and removing duplicates
Put one item on each line. Removing duplicates keeps the first occurrence and the order of the list, with or without case sensitivity. Alphabetical sorting follows the rules of the page language and places “2” before “10”. Numeric sorting reads the first number on each line; lines without a number come last.
Fixes always run in the same order: tags, characters, line joining, spaces, empty lines, duplicates, sorting, then numbering.
Frequently asked questions
Is my text sent anywhere?
No. Everything happens in your browser: the text is never sent. It is kept in this browser so you find it again when you come back, along with the options you ticked; the Clear button removes it.
Why was a hyphenated word glued together?
When a line ends with a hyphen and the next one starts with a lowercase letter, the tool assumes the word was split and drops the hyphen. For a word like “well-known”, untick “Rejoin words split by a hyphen”.
What are invisible characters?
Characters with no visible shape, such as the zero-width space, that break searches or make a form reject your input. Joiners needed by combined emoji, Persian or Indian scripts are kept.
Will a less-than sign in my text be deleted?
An expression like “a < b” stays: only known tag names, or names containing a hyphen or a colon, are removed. Still, check any text that talks about code.
Does the tool format a text perfectly?
No. Line joining relies on clues, so a heading, a poem or a table copied from a PDF may be merged wrongly. Read the result before using it.