TxT Sanitizer
A powerful, modern text cleaning and sanitization tool built with Next.js, designed to help users clean, format, and sanitize various types of text content efficiently.
🚀Features
Core Functionality
- • Smart Text Sanitization: Apply predefined or custom rules to clean and format text
- • Dynamic Preset Tabs: Swappable rules with the last-selected preset shown first and others in an overflow dropdown
- • Automatic Real-Time Sanitization: Toggle automatic processing to transform text instantly as you type
- • Preset Highlighting & Restore: Changed words are highlighted in amber. Hovering displays a floating button to restore individual segments
- • History Management: Review, copy, delete, and sort your last 50 manual sanitized operations
User Interface
- • Multi-Tab Workspace: Manage up to 5 concurrent tabs with independent state
- • Dynamic Tab Labels: Tab labels update in real-time using the first 12 characters of input text
- • Output Find & Replace: Slide-in tool (🔍 or Ctrl+Shift+F) to search and replace text in the output pane
- • Character & Word Count: Real-time counts for input character+word, output character, and matched words
- • Multi-Theme Toggle: 14+ gorgeous DaisyUI themes that instantly adjust accents and backgrounds
🎯How to Use
Basic Usage
- 1 Select a Preset: Choose a preset from tabs or the "More" dropdown.
- 2 Input Text: Type or paste your text in the active workspace tab.
- 3 Sanitize: Click "Sanitize" button or press Ctrl+Enter (in manual mode).
- 4 Copy Results: Use "Copy Text" button to copy the output.
- 5 Reinput: Click the "Reinput" icon to copy output back to input for further processing.
Workspace Settings
- 1 Custom Presets: Add, edit, delete, and drag-reorder custom preset rules in settings.
- 2 Toggle Real-Time: Switch between automatic real-time sanitization or manual sanitize mode.
- 3 Import & Export: Save your custom presets to a JSON file or restore backup configs.
- 4 Wipe Storage: Clear history entries or perform a complete application reset.
Advanced Workflow
- 1 Find & Replace: Toggle the 🔍 icon or Ctrl+Shift+F to search and replace.
- 2 Restore Highlights: Hover on amber preset highlights and click the popup button to restore text.
- 3 Workspace Tabs: Use the tab bar to run up to 5 parallel sanitization processes.
History Management
- 1 View: Navigate to History page for all manual operations (needs manual mode enabled).
- 2 Edit: Click the reload button to move a history entry back to the active tab.
- 3 Delete: Remove specific history entries to clean up your logs.
- 4 Sort: Reorder history entries by date (newest/oldest first).
💡Key Concepts & Use Cases
Fiverr Word Sanitizer
Freelancers working on platforms like Fiverr often run into restrictions regarding terms like email, skype, pay, WhatsApp, or phone numbers. The Fiverr Sanitizer preset allows you to automatically detect potentially problematic contact words and apply formatting bypasses (e.g. em-ail, pho-ne, sky-pe) to avoid platform restriction flags while maintaining legibility for clients.
Restriction Word Sanitizer
A restriction word sanitizer scans text documents to filter out terms that violate specific forum or marketplace platform guidelines. By configuring custom find-and-replace rules in this online text editor, you can automatically replace or sanitize restricted phrases, ensuring compliance with automatic automated submission filters.
🛠️Technical Details
Built With
- • Next.js 14: React Framework with App Router and SSR support
- • Tailwind CSS & DaisyUI: Utility-first responsive CSS styling with 14+ themes
- • Cloudflare D1: Serverless edge SQL database for preset configurations
- • Resend API: Edge-compatible email delivery for feedback forms
- • TypeScript: Type-safety across client code, API routes, and database models
Architecture
- • Component-Based: Modular, reusable React components
- • Local Storage: Client-side data persistence for user settings and custom presets
- • Device Isolation: Data remains private and secure on your specific device
- • Clean Code Principles: Highly readable, modular, and maintainable codebase
Key Components
-
•
PresetTabs: Preset selection interface with "More" dropdown -
•
WorkspaceTabBar: Managing multiple document tabs (up to 5) -
•
FindReplacePanel: Interactive slide-in search and replacement overlay -
•
RestoreOverlay: Cursor-tracking overlay for reversing specific preset matches -
•
NotificationAlert: Slide-in alert bar controlled via D1 configurations
🚧Future Features & Roadmap
NEAR TERMPlanned Features
📥 History Export/Import
Export your sanitization history to JSON files for backup, sharing, or importing on other devices.
- • Export entire history or selected entries
- • Import history from other TxT Sanitizer instances
- • Merge or replace existing history
🎯 Multiple Preset Selection
Apply multiple presets in sequence with custom prioritization and ordering.
- • Multi-select preset interface
- • Drag-and-drop preset ordering
- • Chain multiple sanitization rules
LONG TERMAdvanced Features
🔗 Public Sharing Links
Generate shareable public links for text content, presets, and settings.
- • Share processed text with custom URLs
- • Export and share custom presets
- • Collaborative text processing workflows
- • Optional password protection
☁️ Cloud Integration
Account creation with Google Drive sync for cross-device access and backup.
- • User accounts with secure authentication
- • Google Drive automatic sync
- • Cross-device history and settings
- • Cloud backup and restore
📋Development Status
Core sanitization engine, preset system, history management
Export/import functionality, multiple preset selection
Cloud integration, public sharing, collaborative features
💡Tips & Tricks
Keyboard Shortcuts
Ctrl+Enter - Sanitize text
Best Practices
- • Test rules before applying to important text
- • Use history feature to track changes
- • Keep original files as backup before processing
- • Lower priority numbers execute first
Performance
- • Payload capacity: Optimized to handle up to 1MB text
- • Designed for rapid large text processing
- • Real-time word and character counting
- • Efficient client-side storage management
🤝About the Creator
Created by Sano (Sanwar Hosen)
- • GitHub: @sanwar-hosen
- • LinkedIn: Connect with Sano
- • Repository: TxT-Sanitizer
Development Philosophy
- • Clean Code: Prioritizing readability and maintainability
- • User Experience: Intuitive interface design
- • Performance: Fast, responsive interactions
- • Accessibility: Following web accessibility guidelines
Version: 2.0.0 • Updated: May 2026
Available for personal and educational use under Non-Commercial License
TxT Sanitizer - Making text cleaning simple and efficient ✨