Clean Up Text
Remove extra spaces, blank lines and duplicates, rejoin lines broken by a PDF, sort lines.
Processed in your browserFree
Related tools
- Word CounterCount words, characters, sentences and paragraphs, with an estimated reading time.
- Change Text CaseConvert a text to UPPERCASE, lowercase, Sentence case, Title Case, snake_case, kebab-case or camelCase.
- Compare Two TextsHighlight the differences between two texts, by lines, words or characters.
- Extract text from a PDFGet all the text of a PDF as TXT or Markdown, page by page.
About this tool
Clean up a text pasted from a PDF, an email or a web page: trim spaces at the start and end of lines, collapse multiple spaces, remove blank or duplicate lines, repair words split by a hyphen, rejoin broken lines, natural alphabetical sorting and quote normalization. Each option can be enabled separately and the result updates live.
How to use this tool
- 1Paste the text to clean up.
- 2Tick the operations you want; the result updates live.
- 3Copy or download the cleaned text.
Limits to know
- Rejoining lines keeps paragraphs that are separated by a blank line; a text with no blank lines will be rejoined into a single paragraph.
- Sorting uses French natural order (item2 before item10, accents ignored).
- Accepted formats
- Text
- Maximum size
- 2 MB
Privacy and file processing
The text is processed instantly in your browser: nothing is sent to a server, nothing is kept.
Read our privacy policyFrequently asked questions
A PDF stores positioned lines, not paragraphs. When you copy, each visual line becomes a line break. The "Rejoin broken lines" option rebuilds the paragraphs, and "Repair split words" removes hyphenation dashes.
