T
Text Cleaner Unicode Normalizer and Whitespace Sanitizer
Published byForcom APIs
10/21/2026
The Text Cleaner API turns messy, copy-pasted, scraped, or user submitted text into clean, normalized strings ready for storage, search, or LLM input. Six toggleable transforms applied in a deterministic order: strip invisible control characters (zero-width spaces, BOM, direction overrides, format chars), normalize curly quotes and primes to ASCII, replace en/em-dashes and Unicode spaces with their ASCII
equivalents, collapse runs of whitespace, trim, and optionally lowercase.
Built specifically for the problems that break downstream systems — invisible Unicode that defeats deduplication, smart quotes that break SQL, zero-width spaces hidden in scraped HTML, BOM markers that confuse parsers, and the dozen flavors of dash that look identical but compare unequal. Returns the cleaned text plus before/after stats so you can see exactly what changed.
Handles up to 100,000 characters per request with zero I/O, zero external calls, and millisecond response times.
Last updated 2026-10-21