Text Cleaner

Trim lines, collapse whitespace, strip HTML tags, remove blank lines, normalize line endings, and run find/replace on messy text.

Files and content are processed locally in your browser and are not uploaded to our server.

About this tool

Clean pasted content from the web, PDFs, or spreadsheets with configurable options: trim each line, merge repeated spaces, delete empty lines, strip HTML markup, normalize CRLF/LF endings, and apply custom find/replace including regex.

How to use

  1. Trim leading and trailing whitespace per line
  2. Collapse multiple spaces or tabs into one
  3. Remove blank lines or HTML tags
  4. Normalize Windows/Mac/Unix line endings
  5. Find and replace with plain text or regex
  6. Paste or import: Add messy text or load a local .txt file.
  7. Select cleaners: Check the operations you need—options stack together.
  8. Apply and copy: Run Apply, review the output, then copy or download.

Examples

Limitations

FAQ

Can I combine multiple cleaning options?
Yes. Enabled options run in sequence on each Apply click.
Does regex replace support capture groups?
Yes. Use standard JavaScript replacement patterns like $1 for groups.
Will HTML stripping keep link text?
Tags are removed; inner text content is preserved unless you also strip specific patterns.