TextCraftHub logo

Text Cleaner

Remove extra spaces and exact copy/paste artifacts, normalize selected punctuation, and keep your Unicode text private in your browser.

Cleaning stays in this browser. Press Escape, then Tab, to move focus out of the editor.

0 / 100,000 characters

Presets and cleanup options

Named presets have fixed definitions. Editing any checkbox creates a temporary Custom selection.

Presets
Whitespace cleanup

Uses Text Cleaner’s exact horizontal-whitespace rules.

Copy/paste artifacts

Removes only the four explicitly documented artifact characters.

Typography cleanup

Optional one-way conversion toward ASCII punctuation.

Advanced cleanup

Destructive exact-set operations that no preset enables.

Each tab becomes this fixed number of spaces. The editor’s Tab key inserts five spaces independently.

Summary and result

Review exactly what changed before copying or applying the complete cleaned text.

Your result

Your cleaned text will appear here

Enter or paste text, then choose a preset or individual cleanup operations.

What Text Cleaner Does

Text Cleaner applies only the operations you select, in a fixed deterministic order. It is designed for copied text from PDFs, rendered webpages, spreadsheets, email, documents, content systems, logs, captions, and generated drafts.

The source remains editable and undoable. The complete cleaned result stays in browser memory for review, copying, or confirmed application back to the source.

Safe Whitespace Cleanup

Whitespace options are deliberately narrow and do not remove line breaks or infer document layout.

Outer and trailing cleanup

Remove the exact Text Cleaner horizontal-whitespace set only at the source boundaries or physical line endings.

Tabs and NBSP

Replace each tab with one through eight fixed spaces and convert only U+00A0 NBSP to a normal space.

Repeated spaces

Collapse runs of ordinary U+0020 spaces after selected tab and NBSP conversion.

Exact Horizontal-Whitespace Rules

Text Cleaner horizontal whitespace is TAB, U+0020, U+00A0, U+1680, U+2000–U+200A, U+202F, U+205F, and U+3000. The product does not use ECMAScript \s or a broad Unicode whitespace category.

Vertical Tab and Form Feed are handled exclusively by Remove Control Characters. CR, LF, NEXT LINE, Unicode line and paragraph separators, and U+FEFF are also excluded from horizontal-whitespace cleanup, which prevents overlapping summary attribution.

Artifacts, Typography, and Controls

Copy/paste artifacts

Remove only zero width space, word joiner, soft hyphen, and U+FEFF while retaining language and emoji shaping characters.

Typography normalization

Optionally convert the documented curly quotes, typographic dashes, and ellipsis toward ASCII punctuation.

Advanced controls

Deliberately remove the documented C0, DEL, and C1 ranges while always preserving TAB, LF, and CR.

Unicode and Multilingual Safety

Default cleanup preserves Hindi, Arabic, Persian, Hebrew, CJK, accented text, combining marks, mathematical Unicode, emoji sequences, ZWJ, ZWNJ, variation selectors, modifiers, and bidirectional controls.

No custom selection is universally safe for every document. Review destructive artifact, control, and typography choices when exact source semantics matter.

Text Cleaner vs. Remove Line Breaks

Text Cleaner handles character-level whitespace, selected hidden artifacts, exact controls, and optional punctuation normalization. It preserves physical line structure.

Remove Line Breaks owns structural work: joining lines, removing or collapsing blank lines, trimming every line, and normalizing line endings. Keeping these responsibilities separate avoids hidden transformations.

Source Limit and Complete Results

The editable source accepts up to 100,000 Unicode code points. The cleaning engine has no matching output ceiling, so replacing many tabs can legitimately produce a much larger complete result.

An oversized result still receives a grapheme-safe preview and can be copied completely. Apply Result is disabled instead of truncating or partially replacing the source.

Deliberate Exclusions

Text Cleaner does not repair grammar, spelling, OCR, encoding, markup, or document layout. It does not strip HTML, decode entities, or remove content by script or character class.

Literal HTML, Markdown, BBCode, URLs, email addresses, numbers, symbols, and other punctuation remain unchanged unless one exact selected operation documents otherwise.

Text Cleaner content review

Last reviewed: July 2026

Technical review: Lalit Giani

Horizontal-whitespace membership, artifact removal, control removal, typography mappings, and preset memberships are explicit TextCraftHub product definitions. They are intentionally narrower than broad Unicode or ECMAScript character categories.

Verified facts

  • Distinct spacing characters: Unicode contains spacing characters with different semantics; U+00A0 NO-BREAK SPACE inhibits an ordinary line-breaking opportunity and is not interchangeable with U+0020 in every context. [1] [2]
  • Control cleanup: Text Cleaner classifies Vertical Tab and Form Feed only under its explicit control-removal operation, keeping them outside horizontal-whitespace cleanup. [5]
  • Language and emoji shaping: Joiners, non-joiners, combining marks, variation selectors, and emoji modifiers can affect shaping or presentation, so the default and preset operations preserve them. [1] [4]
  • Bidirectional text: Bidirectional marks and controls can affect display ordering, so Text Cleaner preserves them rather than offering a broad invisible-character filter. [3]
  • Local processing: Text entered into Text Cleaner is processed in the browser and is not stored or transmitted by the utility. [6]

Sources

  1. 1. The Unicode Standard, Version 17.0 - Unicode ConsortiumReferenced July 2026
  2. 2. Unicode Standard Annex #14: Unicode Line Breaking Algorithm - Unicode ConsortiumReferenced July 2026
  3. 3. Unicode Standard Annex #9: Unicode Bidirectional Algorithm - Unicode ConsortiumReferenced July 2026
  4. 4. Unicode Technical Standard #51: Unicode Emoji - Unicode ConsortiumReferenced July 2026
  5. 5. ECMAScript lexical grammar: white space and line terminators - Ecma InternationalReferenced July 2026
  6. 6. TextCraftHub Privacy Policy - TextCraftHubVerified July 2026

Editorial Policy · Sources and References

Text Cleaner FAQ

Is my text uploaded or stored?

No. Text Cleaner processes the source and result locally in your browser. It does not upload your text, put it in a URL, or save persistent history.

What does Basic Cleanup change?

Basic Cleanup trims the documented horizontal whitespace at the outer boundaries, collapses repeated normal spaces, replaces tabs, replaces U+00A0 non-breaking spaces, and removes trailing horizontal whitespace from physical lines.

What counts as horizontal whitespace?

Text Cleaner uses an exact product-defined set: TAB, normal space, NBSP, Ogham Space Mark, U+2000 through U+200A spacing characters, narrow NBSP, medium mathematical space, and ideographic space. It does not use a broad whitespace expression.

Why are Vertical Tab and Form Feed not horizontal whitespace?

They are control characters in Text Cleaner’s explicit model and are handled only by Remove Control Characters. Keeping the operations separate makes behavior and summary attribution predictable.

Does Text Cleaner remove line breaks?

No. It preserves CRLF, LF, and lone CR line structure. Use Remove Line Breaks to join lines, remove or collapse blank lines, or normalize line endings.

Which invisible copy/paste artifacts can it remove?

The option removes exactly U+200B ZERO WIDTH SPACE, U+2060 WORD JOINER, U+00AD SOFT HYPHEN, and U+FEFF. It is not an all-invisible-character filter.

Are ZWJ, ZWNJ, emoji, and multilingual text preserved?

Yes by default. ZWJ, ZWNJ, variation selectors, emoji modifiers, combining marks, bidirectional marks, and multilingual text are preserved. Exact destructive options still change only the documented characters.

What does Remove Control Characters remove?

It removes C0 controls except TAB, LF, and CR, plus DELETE and the C1 control range. It is an advanced destructive option and no preset enables it.

How do presets and Custom selections work?

Named preset definitions never change. Editing a checkbox switches the displayed preset to Custom. Selecting any named preset again discards temporary Custom selections and restores that preset’s exact canonical operations.

Does typography cleanup create curly punctuation?

No. It works one way toward ASCII: four curly quote characters become straight quotes, U+2010 through U+2014 become hyphen-minus, and the ellipsis character becomes three periods.

Does it strip HTML or decode entities?

No. Literal markup and entities remain unchanged. Text Cleaner does not use innerHTML, DOMParser, or regex-based tag stripping.

Why can Apply Result be temporarily disabled?

Apply waits until the current source and options have finished cleaning. After confirmation, the result is recomputed synchronously from the latest source and options before it can replace the editor text.

Why can a result be copied but not applied?

The editable source accepts at most 100,000 Unicode code points, but cleanup can expand output—for example when tabs become multiple spaces. Oversized results remain complete and copyable but cannot be applied to the limited editor.

Does Copy use the shortened preview?

No. Large results show 500 complete grapheme clusters by default, while Copy Result always uses the complete in-memory output.

TextCraftHub uses cookies and similar technologies for analytics and advertising, including Google AdSense, according to your choices. You can accept all, reject all, or manage your preferences. Privacy Policy