Skip to content
Home / Tools / Text Formatting Cleaner

Text Formatting Cleaner

Fix broken line breaks, spacing, invisible characters and markup; remove links, numbers, emoji or listed words; and run find and replace with regex.

Presets
Advertisement
728 × 90Ad placeholder · tool-below-workbench

One place to clean, remove and replace

This tool combines three jobs that usually need separate tools: repairing formatting (line breaks, spaces, invisible characters, markup), removing unwanted content (links, emails, hashtags, numbers, emoji, bracketed text, listed words) and find and replace with optional regular expressions. Every option is a switch, so you can combine exactly what you need and see the character change instantly.

Why pasted text gets messy

Text copied from PDFs carries a hard line break at the end of every visual line. Web pages bring non-breaking spaces and zero-width characters; word processors bring curly quotes and long dashes; email threads bring quote markers; slide decks bring bullet symbols. None of it is visible until it breaks a search, a spreadsheet import or a content management system.

Presets

  • Web paste trims lines, collapses spaces, removes invisible characters and tidies blank lines.
  • Word paste does the same and also straightens curly quotes.
  • PDF paste additionally rejoins hard-wrapped lines inside each paragraph, repairs words split by a hyphen and removes bullet markers while keeping list items on separate lines.
  • Strip markup removes HTML tags and Markdown symbols.
  • Plain ASCII straightens punctuation, strips accents and drops non-ASCII characters, useful for legacy systems and filenames.
  • Clear all resets every switch.

Removal options

Remove links, email addresses, #hashtags and @mentions, numbers, emoji, all punctuation, line numbers at the start of lines, text inside brackets (round, square or curly), duplicate lines, and any list of words you type (whole words only, one per line or comma-separated). Broad options are powerful: removing all punctuation also removes apostrophes and decimal points, so scan the output before using it.

Find and replace

Enter what to find and what to put instead. Tick Regex to use JavaScript patterns with capture groups ($1, $2), for example (\d{2})/(\d{2})/(\d{4}) replaced by $3-$2-$1 converts 25/12/2026 to 2026-12-25. Use Match case when capitalisation matters. Leave the replacement empty to delete matches. The match count is shown so you know the rule did something.

Order of operations

Markup is stripped first, then characters are normalised, then removals run, then line structure is repaired, then find and replace, then trimming, de-duplication and finally case changes. This fixed order keeps results predictable when several options are active. If something looks wrong, switch options off one at a time. Do not use “rejoin hard-wrapped lines” on poetry, code or addresses, where line breaks carry meaning. You can open a file, download the result and copy it with one click.

Advertisement
728 × 90Ad placeholder · tool-in-article

Frequently asked questions

Does “Strip HTML” run any scripts?

No. HTML is parsed into inert text only, so scripts and styles in pasted markup are never executed.

Why did my paragraphs merge?

You probably ticked “Remove all line breaks”. Use “Rejoin hard-wrapped lines” instead; it keeps blank lines as paragraph breaks.

How do I remove several words at once?

Type them in the word list, one per line or separated by commas. Matching is whole-word and case-insensitive.

Can it fix text with strange symbols like ’?

That pattern is a character-encoding problem at the source (UTF-8 read as another encoding). Re-copy the text with the right encoding; the cleaner cannot reliably reverse it.

Is formatting such as bold preserved?

No. The output is plain text, which is the point: it behaves the same everywhere.

Related reading