About this tool
Clean up text by ticking the filters you need: remove digits, punctuation and symbols, non-ASCII characters or emoji; collapse runs of spaces and tabs; trim spaces at the start and end of each line; delete blank lines; or remove every whitespace character. The Line breaks setting keeps line breaks as they are, joins all lines into one, joins lines while keeping paragraph breaks (empty lines), or replaces each line break with text of your choice, such as a comma. Filters combine, and everything runs in your browser, so your text is never uploaded.
Frequently asked questions
What does collapse spaces do?
It replaces runs of spaces and tabs with a single space and trims leading and trailing whitespace per line.
Can I combine filters?
Yes, any mix of the checkboxes is applied together to produce the cleaned result.
How do I remove line breaks but keep paragraphs?
Set Line breaks to keep paragraph breaks. Single line breaks inside a paragraph become spaces, while paragraphs separated by an empty line stay separate. To put everything on one line, choose remove all; to put something else in place of each break, such as a comma, choose the custom option and type it in the replacement box.
What does remove ALL whitespace do?
It deletes every space, tab and line break, so the remaining characters are joined together. It overrides the other space and line-break options.
More tools