Home › Text tools › Text Cleaner
🔧

Text Cleaner

Clean text in bulk: trim spaces, drop blank lines, remove line breaks and HTML tags

清理选项(可多选)

勾选需要执行的清理操作,输入即实时处理。可组合多种清理操作。

输入文本
清理结果

About this tool

The text cleaner removes the stray characters that pile up in copied and exported text, with eight cleanup modes in one place:

  • Trim edges: remove spaces at the start and end of every line
  • Remove all spaces: strip every space in the text
  • Drop blank lines: delete all empty lines
  • Collapse blank lines: turn runs of empty lines into one
  • Remove line breaks: join multiple lines into one
  • Strip HTML tags: remove markup from the text
  • Remove tabs: delete tab characters
  • Full-width to half-width: turn full-width spaces into ordinary ones

When to use it

  • Cleaning text copied from a web page
  • Tidying OCR output
  • Repairing badly formatted text data
  • Formatting code pasted from elsewhere