When you copy text from a PDF, web page, or log file, you often get unwanted whitespace: leading spaces on every line, trailing tabs, double blank lines between paragraphs, or inconsistent indentation.
Cleaning that text manually is tedious. Regex is overkill for simple cases. You need a straightforward tool that runs in your browser without sending anything to a server.
TextForge is a Chrome extension with built-in text cleaning functions that run locally:
- Trim whitespace โ Remove leading and trailing spaces from each line
- Clean blank lines โ Delete empty or whitespace-only lines
- Remove duplicate spaces โ Collapse multiple spaces into one
- Normalize line endings โ Convert mixed line breaks to consistent format
- Remove all whitespace โ Strip spaces entirely when you need compact output
All functions run in your browser. Your text never leaves your device.
Common Text Cleaning Scenarios
Cleaning PDF paste: When you copy from a PDF, each line often has leading spaces. Trim + Clean Blank Lines fixes it in one recipe.
Log file processing: Logs often have mixed indentation and blank lines. Remove duplicates + clean blanks makes logs readable for grepping or importing into analysis tools.
Data prep for scripts: If you're building a list of domains, IPs, or hostnames to pass to a shell script, removing extra spaces and blank lines is essential. Do it with one click instead of manual editing.
Email or CSV headers: Pasted headers from spreadsheets often have trailing spaces that break parsers. Trim whitespace catches those invisible problems.
How It Works
- Install TextForge from the Chrome Web Store (free)
- Open your text in the extension popup
- Chain cleaning functions: Trim โ Clean Blanks โ Deduplicate Spaces
- Copy the clean output
- Save the recipe for reuse on similar tasks
No upload. No server. No login. Your text stays on your device.
Why TextForge Over Other Tools?
Regex101 is powerful for complex patterns but overkill for basic whitespace cleanup.
Browser DevTools requires JavaScript knowledge and multiple commands.
Command line (sed, tr, awk) works great if you're already at the terminal, but TextForge is faster for quick ad-hoc cleaning without leaving your browser.
Online editors often send your text to a remote server. TextForge runs everything locally.
Frequently Asked Questions
Does TextForge send my text to a server?
No. TextForge is a Chrome extension and all operations run in your browser. Your text is never sent to Wendygo Studio servers or any third party.
Can I save my cleaning recipe for reuse?
Yes. TextForge lets you chain multiple cleaning functions together and save the recipe with a custom name. Reuse it the next time you need to clean similar text.
Is there a limit to how much text I can clean?
No hard limit. Your browser's memory is the limit. For most everyday text cleaning (log files, pasted content, CSV headers), you will not hit any practical constraint.
TextForge is free. All text cleaning functions are included โ no account required.
Install TextForge โ Free