Text Cleaners
Text copied from PDFs, spreadsheets, emails and web pages arrives with stray spaces, broken lines and duplicates. These tools each do one cleaning job, predictably, so you can chain them: paste, clean, copy the result into the next tool.
Every cleaner writes to a separate output box, reports how many lines or items it changed, and leaves your original input untouched.
18 tools
- Remove Duplicate Lines
Keeps the first copy of each line and removes the repeats.
- Remove Empty Lines
Deletes blank and whitespace-only lines.
- Remove Extra Spaces
Collapses runs of spaces and tabs into single spaces.
- Remove Line Breaks
Joins broken lines, optionally keeping paragraphs.
- Trim Lines
Strips whitespace at the start and/or end of every line.
- Sort Lines
Sorts lines A–Z, Z–A, naturally or by length.
- Reverse Lines
Puts the last line first without changing any line.
- Remove Punctuation
Strips punctuation, optionally keeping apostrophes and hyphens.
- Remove Numbers
Deletes numbers or individual digits from text.
- Extract Numbers
Lists every number in the text, with sum, min and max.
- Extract Emails
Lists every email address found in the text.
- Extract URLs
Lists every http(s) and www link in the text.
- Extract Hashtags
Lists every #hashtag in the text.
- Extract Mentions
Lists every @mention, ignoring email addresses.
- Add Prefix and Suffix
Adds text before and after every line.
- Number Lines
Adds 1., 2., 3. (or your format) before each line.
- Join Lines
Combines lines into one, separated by commas or any text.
- Split Text Into Lines
Puts each comma-, space- or custom-separated item on its own line.
Common cleaning jobs
Text pasted from a PDF usually needs Remove Line Breaks (with the hyphen-joining option) followed by Remove Extra Spaces. Lists exported from spreadsheets or mailing tools benefit from Trim Lines, then Remove Duplicate Lines, then Sort Lines.
To pull specific items out of a long document, use the extractors for emails, URLs, numbers, hashtags and mentions.