textcleanups

Clean up messy text in one paste

Fix the spacing, broken lines and stray characters left behind when you copy text from PDFs, emails, websites and AI chats.

Options
Blank lines

Your text stays in your browser. Nothing is uploaded or saved.

All text tools

AI-written text

ChatGPT text cleaner
Remove hidden characters, odd spaces and Markdown from AI answers.
Remove em dashes
Replace every — with a comma, period or hyphen.
Remove Markdown
Turn Markdown into plain text: no **, #, links or tables.
AI phrase finder
Highlight overused AI words and phrases.

Lines

Remove line breaks
Turn text broken across many lines back into clean paragraphs.
Remove duplicate lines
Keep the first copy of every line and delete the repeats.
Remove empty lines
Delete blank lines, or cut long gaps down to one.
Sort lines
Sort a list A to Z, Z to A, by length, reversed or shuffled.
Add line numbers
Number every line, your way.
Remove line numbers
Strip numbers and bullets from the start of lines.
Comma separator
Turn a list into comma-separated text, and back.

Spaces and characters

Remove extra spaces
Collapse double spaces, trim lines and replace tabs.
Remove special characters
Strip symbols and keep only letters, numbers and punctuation you choose.
Remove emojis
Delete every emoji, including skin tones, flags and combined emoji.
Remove accents
Turn é into e, ü into u and ß into ss.
Convert smart quotes
Turn curly quotes, long dashes and ellipses into plain text.

Formatting and counting

Case converter
Switch text to sentence case, Title Case, UPPERCASE, camelCase and more.
Find and replace
Replace words or patterns across your text, with regex support.
Strip HTML tags
Turn HTML into clean, readable plain text.
Word counter
Count words, characters, sentences and reading time as you type.
Text diff checker
Compare two texts and see what changed.
Word frequency counter
See which words you use most.
Reverse text
Flip text backwards, by letter, word or line.

Why pasted text gets messy

Text rarely survives copy and paste intact. PDFs end every line with a hard break because they store lines, not paragraphs. Web pages add non-breaking spaces and invisible characters for layout. Word processors swap straight quotes for curly ones. Emails wrap long lines. AI chats add Markdown symbols and sometimes unusual spaces. The result looks almost right but breaks in a document, a spreadsheet or a form.

What the cleaner fixes

  • Extra spaces: double spaces, tabs and spaces at line starts and ends.
  • Blank lines: long gaps are reduced to one blank line, or removed entirely.
  • Broken lines: lines split mid-sentence, like text copied from a PDF, are joined back into paragraphs, including words split with a hyphen.
  • Invisible characters: zero-width spaces and similar characters that break searches, formulas and code.
  • Odd spaces and quotes: non-breaking spaces become normal spaces, and curly quotes can be straightened.
  • AI chat leftovers: turn on the Markdown and em dash options to strip ** and ### symbols and replace em dashes in answers copied from ChatGPT, Claude or Gemini. For citation markers and more, use the ChatGPT text cleaner.

Need more control? Each fix has its own tool with more options in the list above.

Questions

Is textcleanups free?

Yes. Every tool is free to use with no sign-up and no limits on how often you use them.

Is my text private?

Yes. All the cleaning happens in your browser on your own device. Your text is never uploaded to a server or saved.

Can it clean text copied from ChatGPT or other AI chats?

Yes. Turn on the Markdown and em dash options above, or use the ChatGPT text cleaner, which also removes hidden characters and citation markers.

Does it work on my phone?

Yes. The tools work in any modern browser on phones, tablets and computers.

What's the difference between this cleaner and the single tools?

This page combines the most common fixes into one step. The single tools go deeper on one job, with more options, such as sorting lines or converting case.