🧹

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

About this tool

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

  1. Paste your text into Input Text.
  2. Tick the options you need under Cleaning Options.
  3. Read the result in Cleaned Text. It updates as you change options.
  4. Click Copy, or Clear to empty the input.

The options

OptionWhat it doesDefault
Remove extra spacesTurns runs of spaces and tabs inside a line into one spaceOn
Remove blank linesDeletes empty lines and lines with only spacesOff
Trim each lineRemoves spaces at the start and end of every lineOff
Remove special charactersKeeps letters, numbers and marks of any script, spaces, tabs, new lines and . , ! ? ' " _ -Off
Remove HTML tagsStrips tags and comments such as <p> or </div>Off
Normalize line endingsConverts Windows and old Mac line breaks to a single new lineOn
Convert to lowercase / uppercaseChanges the case. Only one of the two can be onOff

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 &amp; 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.

More to explore

Related Text Tools

Browse all tools from the same category.

Showing 1-2 of 27