Text Cleaner
Remove extra spaces, blank lines, HTML tags, and more from any text.
Cleaning Options
0
Original chars
0
Clean chars
0
Lines removed
0
Chars removed
Last updated:
Clean up messy text
This text cleaner removes the clutter you get when you copy text from a PDF, an email, a web page or a spreadsheet. Paste your text, tick the cleanup options you want, and the cleaned version appears right away, ready to copy.
How to use it
- Paste your text into Input Text.
- Tick the options you need under Cleaning Options.
- Read the result in Cleaned Text. It updates as you change options.
- Click Copy, or Clear to empty the input.
The options
| Option | What it does | Default |
|---|---|---|
| Remove extra spaces | Turns runs of spaces and tabs inside a line into one space | On |
| Remove blank lines | Deletes empty lines and lines with only spaces | Off |
| Trim each line | Removes spaces at the start and end of every line | Off |
| Remove special characters | Keeps letters, numbers and marks of any script, spaces, tabs, new lines and . , ! ? ' " _ - | Off |
| Remove HTML tags | Strips tags and comments such as <p> or </div> | Off |
| Normalize line endings | Converts Windows and old Mac line breaks to a single new line | On |
| Convert to lowercase / uppercase | Changes the case. Only one of the two can be on | Off |
Statistics
Below the output, the tool shows the original and cleaned character counts, how many lines were removed and how many characters were removed.
Limits
- Removing HTML tags only strips the tags. The text between them stays, and entities such as
&are not decoded. - Remove special characters also removes symbols such as @, #, $, % and brackets, so do not use it on emails or code.
- Nothing is stored. The cleaning happens in your browser.
Frequently asked questions
How do I remove empty lines from text?
Tick Remove blank lines. Lines that contain only spaces count as blank and are removed too.
Does it remove emojis?
Yes, if you tick Remove special characters, because emojis are not letters, numbers or the allowed punctuation.
Can I use several options together?
Yes. They are applied in a fixed order, from line endings and HTML tags through to case, so the combination always gives the same result.
Related Text Tools
Browse all tools from the same category.
Word Counter
Words, characters, sentences, and paragraphs
Open toolText Case Converter
Upper, lower, title, and sentence case
Open toolShowing 1-2 of 27