To clean text, paste it into a browser-based cleaner, choose the character and whitespace rules to apply, run the cleanup, and review the per-rule change counts before copying.

For AI-generated or pasted writing, cleaning usually means normalizing typographic dashes, curly quotation marks, hidden Unicode, padded spaces, excessive blank lines, and inconsistent line separators while leaving the wording alone. The aim is text that behaves predictably in a CMS, document, email, or plain-text field, not a guarantee that an AI detector will classify the prose differently.

how to clean text
How to Clean Text: A Rules-First Workflow

Define the cleanup boundary

Begin by separating formatting cleanup from editorial revision. Formatting cleanup handles code points and whitespace: it can straighten quotation marks, normalize a dash, remove an invisible character, or repair spacing. Editorial revision handles grammar, tone, repetition, structure, and unsupported claims. Mixing the two makes review harder because an edited sentence can be mistaken for a mechanical character replacement.

For a formatting-only job, the AI Text Cleaner provides six independent switches and reports how many characters each enabled rule changed. It is intended to return the same words with formatting normalized to plain keyboard characters rather than silently rewriting the draft. Keep the source in another tab or document until you have checked the result.

A sound cleanup target is predictable text, not the destruction of every uncommon symbol. Legitimate quotation marks, mathematical signs, emoji sequences, and characters used by other languages can look unusual while still carrying meaning. Decide which problems you need to solve before choosing a rule.

Select only the rules you need

Choose rules by the artifact you can identify, then leave the others disabled. The available switches cover different character and whitespace problems.

Rule What it normalizes Important boundary
Dashes Converts a run of U+2013, U+2014, and U+2015 sentence dashes into one chosen replacement—a hyphen, comma, or single space—and repairs spacing around the run. U+2010, U+2011, and U+2012 always become an ordinary hyphen. The U+2212 minus sign remains unchanged.
Quotes Straightens U+2018–U+201F plus prime and double-prime marks into a straight apostrophe or straight double quote. Guillemets and CJK brackets remain unchanged because they can represent legitimate non-English quotation.
Ellipsis Changes one U+2026 ellipsis character into three ordinary full stops. The rule changes the ellipsis character rather than rewriting the surrounding sentence.
Invisible characters Removes the zero-width space, word joiner, byte order mark, soft hyphen, combining grapheme joiner, U+200E left-to-right mark and U+200F right-to-left mark, invisible mathematical operators, Unicode Tags, supplementary variation selectors, and bidirectional embedding, override, and isolate controls. Fixed-width and no-break spaces become ordinary spaces. The zero-width joiner, zero-width non-joiner, and U+FE00–U+FE0F variation selectors are deliberately kept.
Spacing Collapses runs of two or more spaces or tabs to one and trims trailing spaces at the end of every line. Horizontal spacing is controlled separately from paragraph spacing.
Blank lines Leaves at most one blank line between paragraphs and removes blank lines at the beginning and end. This rule does not reflow or rewrite the text.

Select by symptom rather than assumption. If the only visible issue is curly punctuation, enable the quote rule without touching dashes. If you need to remove zero-width code without changing paragraph layout, use the invisible-character rule while leaving the spacing and blank-line switches alone.

The dash replacement still calls for editorial judgment. A hyphen maintains a break without adding punctuation; a comma may suit a parenthetical phrase when the sentence permits it; a single space removes the dash punctuation but can make the relationship between two words less explicit. The tool applies the selected replacement mechanically rather than testing grammar. A run of several dashes collapses to one replacement, so inspect the affected sentence instead of assuming it will read naturally.

Clean a pasted draft in a controlled pass

  1. Paste the draft. Put the AI-generated text into the input box. To explore the controls first, select Load sample to see a typical example.
  2. Tick the relevant rules. Enable only the character and whitespace cleanup you want, such as quotes, ellipsis, invisible characters, spacing, or blank lines.
  3. Choose a dash replacement if needed. Select whether sentence dashes should become a hyphen, a comma, or a single space. Leave the setting alone if the dash rule is disabled.
  4. Run the cleanup. Select Clean text to apply the enabled rules.
  5. Check the per-rule counts. Review how many characters each rule changed. Use the reported activity to identify passages that deserve closer inspection.
  6. Copy the cleaned result. Copy the output only after checking the counts and proofreading the changed punctuation, spacing, and paragraph breaks.

Keep the source draft available during this process. A change count confirms that a rule acted on the text, but it cannot tell you whether the replacement fits the sentence. Proofreading remains necessary after the mechanical cleanup is complete.

Audit counts before copying

The change counts are an audit trail, not a quality score. They show how many characters each enabled rule changed. A dash or quote count therefore identifies an area for manual review, but it does not assess grammar, factual accuracy, or style. Compare the cleaned output with the source, especially in paragraphs associated with visible counts.

Line endings are folded to LF before the six rules run. This includes carriage returns from Windows applications and the U+2028 and U+2029 separators associated with PDFs, InDesign, and older Word documents. The six independently switchable rules then apply in a fixed order over Unicode code points. Every replacement is counted, so the reported totals match the output exactly, and the result always uses LF line endings.

Use the counts to decide where to look, not as proof that every part of the draft needs attention. Zero-width characters can be invisible on screen, while a seemingly minor punctuation change can affect meaning. The final review should combine the tool's numerical report with a normal reading of the affected text.

Protect characters that carry meaning

Invisible does not always mean disposable. The cleaner deliberately preserves several unusual characters because removing them could damage valid content:

  • Zero-width joiner: Holds multi-person emoji sequences together.
  • Zero-width non-joiner: Is grammatically required in Persian, Arabic, and several Indic scripts.
  • Variation selectors U+FE00–U+FE0F: Help emoji render with their intended presentation.
  • Minus sign U+2212: Functions as a mathematical operator, so replacing it could change the meaning of a number.
  • Guillemets and CJK brackets: Can be legitimate quotation marks in languages other than English.

The invisible-character rule still removes bidirectional embeddings, overrides, and isolates behind the Trojan Source vulnerability. It also removes the two hidden watermark carriers: the Unicode Tags block and supplementary variation selectors. The code-point lists were checked against the Unicode Character Database and cross-checked against a second authoritative source.

This selective behavior matters in multilingual drafts and emoji-heavy copy. It removes suspicious invisible code without flattening characters that perform a valid grammatical or display function. Pay particular attention to those passages after cleaning because retained characters may look identical to artifacts on screen.

Respect privacy and operating limits

The cleanup runs entirely inside your browser. The text is never uploaded, stored, sent to an API, or attached to an account. That makes the workflow suitable for client work, unpublished drafts, and other material that should remain local.

Input is capped at one million characters so a very large paste cannot freeze the tab. Larger text cannot be processed in a single run. The limit affects capacity, not privacy: processing remains local for inputs that fit within the cap.

The tool changes formatting only. It does not rewrite sentences, detect AI authorship, paraphrase, translate, improve style, or claim that cleaned text will pass an AI detector. Keep those editorial jobs separate from the cleanup so that mechanical replacements remain easy to identify and review.

Run a final destination check

After copying the cleaned text, paste it into the intended destination and confirm that it renders as expected. Check the result rather than assuming every application handles characters and whitespace identically.

  • Review the paragraphs and sentence breaks for spacing you did not intend.
  • Proofread punctuation around every dash that the tool changed.
  • Confirm that quotation marks and ellipses match your house style.
  • Inspect emoji sequences and any text in Persian, Arabic, Indic, or other scripts.
  • Check that the beginning and end do not contain unwanted blank lines.

This final pass keeps mechanical cleanup separate from editorial judgment. If a replacement reads badly, correct the source or result deliberately rather than accepting it solely because the change was automatic.

Related reading: How to Get Text Bubble: A Unicode Workflow.

Related reading: Case Converter Explained: Capitalization and Naming Rules.