Free browser text tool

Free Text Cleaner

A text cleaner removes the formatting junk that rides along when you copy text: stray line breaks, extra spaces and tabs, invisible Unicode characters, HTML tags, emojis and Markdown symbols. This tool cleans pasted text from ChatGPT, Claude, PDFs and web pages in one click, shows exactly what changed, and never rewrites your words.

Runs locallyNo signupNever rewrites wordsShows every change

Runs entirely in your browser. Your text is never uploaded.

Presets

CustomChange any step below to build your own.

0 characters

0 characters

Cleaning steps

Steps run top to bottom. The number on each step is how many changes it made.

  1. Normalize line endings

    Always on. Converts Windows (CRLF) and old Mac (CR) line endings to plain LF.

    0
  2. Removes tags, drops script and style contents, turns & and ’ into real characters.

    0
  3. Deletes zero-width spaces, soft hyphens, BOMs and direction marks; turns non-breaking and odd spaces into normal spaces.

    0
  4. Removes **bold**, # headings, `code` ticks, > quotes, --- rules and list markers while keeping the words.

    0
  5. Straightens smart quotes and converts dashes, ellipses, bullets and PDF ligatures to plain characters.

    0
  6. Deletes emoji including skin tones, flags, keycaps and joined sequences.

    0
  7. Turns é into e and ß into ss for Latin letters. Other scripts are left alone.

    0
  8. Fix line breaks

    Rejoins hard-wrapped lines into paragraphs, or joins everything into one line.

    0
    Line break mode
  9. Turns runs of spaces between words into a single space. Tabs can become spaces too.

    0
  10. Removes spaces and tabs at the start and end of every line.

    0
  11. Remove empty lines

    Collapses repeated blank lines to one, or removes them all.

    1
    Empty line handling
  12. Keeps the first copy of each repeated line.

    0

Change report

Paste or load text to see what gets cleaned.

  • 1 empty line removed
Before
0 chars
After
0 chars

Hidden characters found

No invisible or unusual space characters in the input.

Before and after

See every removed or changed character in the original, with hidden characters shown as badges.

How to clean text in 3 steps

  1. 1Paste your textPaste text from ChatGPT, Claude, a PDF, a web page or an email into the input box, or load the sample.
  2. 2Pick a preset or stepsChoose a preset such as Fix text copied from PDF, or switch individual cleaning steps on and off.
  3. 3Copy or downloadReview the change report and Show changes view, then copy the clean text or download it as a .txt file.

What each cleaning step does

Steps run in a fixed order so results are predictable, and running the cleaner twice gives the same result as running it once.

StepWhat it doesExample
Strip HTML tags and decode entitiesRemoves tags and script or style blocks; turns &amp; and &#8217; into real characters<b>Hi</b> &amp; bye becomes Hi & bye
Remove invisible charactersDeletes zero-width spaces, soft hyphens, BOMs and direction marks; turns non-breaking spaces into normal spacesco[SHY]operate becomes cooperate
Strip Markdown formattingRemoves **, #, backticks, > quotes, --- rules and list markers while keeping the text**Note:** read this becomes Note: read this
Normalize punctuationStraightens curly quotes and converts long dashes, ellipses, bullets and PDF ligatures to plain ASCII“Hi”… becomes "Hi"...
Remove emojisDeletes emoji including skin tones, flags, keycaps and joined sequencesShip it 🚀 becomes Ship it
Fix line breaksJoins hard-wrapped lines into paragraphs or into one line, and can rejoin exam-/ple splitstwo\nlines becomes two lines
Collapse spaces, trim, empty linesTurns repeated spaces into one, trims each line, collapses or removes blank linesa b becomes a b

Hidden characters in AI and PDF text

Hidden characters can come from copy and paste, rich-text editors, word processors, PDFs, web pages and some chat interfaces. They are invisible on screen but still count as characters, so they quietly break code, CSV imports, search, spreadsheet formulas and word counts.

Zero-width space U+200B

An invisible break opportunity. It splits words for search and find, breaks code identifiers and JSON keys, and inflates character counts.

Non-breaking space U+00A0

Looks like a space but is a different character, so string matching, CSV parsing and word splitting can fail.

Soft hyphen U+00AD

An invisible hyphenation hint, common in PDFs and web pages. It hides inside words so co-operate and cooperate no longer match.

Byte-order mark U+FEFF

A marker at the start of some files. Pasted mid-text it can break the first CSV column name, shell scripts and config files.

Text cleaner FAQ

How do I remove line breaks from text?

Paste your text, then under Fix line breaks choose Keep paragraphs to join wrapped lines while keeping blank-line paragraph breaks, or Join all into one line to remove every line break. You can also replace joined breaks with a comma or nothing.

How do I remove hidden characters from ChatGPT text?

Choose the Clean ChatGPT / Claude output preset. It removes zero-width spaces, soft hyphens, byte-order marks and direction marks, converts non-breaking spaces to normal spaces, and strips leftover Markdown symbols. The Hidden characters panel lists everything it found.

Does this tool change my words?

No. Every step is deterministic cleanup: it removes or converts characters, symbols and whitespace, and never paraphrases, rewrites or reorders words. Show changes highlights each character that was removed or added.

Is my text uploaded?

No. Cleaning, copying and downloading happen entirely in your browser. Only your step settings are saved in local storage on your device; the text itself is never stored or sent anywhere.

How do I fix text copied from a PDF?

Use the Fix text copied from PDF preset. It rejoins hard-wrapped lines into paragraphs, merges words split with a hyphen at the end of a line, expands ligatures such as fi, and replaces odd spaces and smart quotes.

Automate it

Clean up AI output inside your workflows

Tornic runs deterministic, multi-step workflows through the AI coding CLIs you already use, so repetitive cleanup and formatting steps happen the same way every time.

Explore Tornic

Related free tools