A simple, privacy-focused web application for cleaning text from unwanted formatting, special characters, and hidden artifacts commonly found when copying from AI tools, PDFs, websites, and documents.
This tool helps you quickly clean up messy text by removing:
- π§Ή Hidden and zero-width characters
- π Smart quotes and special punctuation
- π¨ Markdown formatting artifacts
- π» Invisible Unicode characters
- π Copy-paste formatting remnants
- π€ AI-generated text artifacts
Privacy-focused: All processing happens locally in your browser - no data is sent to any servers.
Created by @mopx
- GitHub: github.com/mopx
- Repository: github.com/mopx/text-cleanup
- Node.js (for development server)
- npm or Yarn package manager
- Clone the repository:
git clone https://github.com/mopx/text-cleanup.git
cd text-cleanup
- Install dependencies:
# Using npm
npm install
# Using Yarn
yarn install
# Using npm
npm run dev
# Using Yarn
yarn dev
This starts a Node.js http-server on http://localhost:3000
and automatically opens your browser.
# Using npm
npm run dev:vercel
# Using Yarn
yarn dev:vercel
Note: If you get a "recursive invocation" error, it means you're already in a Vercel environment. Use the primary method above instead.
# Install globally first
# With npm: npm install -g http-server
# With Yarn: yarn global add http-server
# Run the server
http-server -p 8000
# Install the Live Server extension in VS Code
# Right-click on index.html and select "Open with Live Server"
# Using Python 3 (if available)
python3 -m http.server 8000
# Using Python 2 (if available)
python -m SimpleHTTPServer 8000
- Install Vercel CLI:
# Using npm
npm install -g vercel
# Using Yarn
yarn global add vercel
- Deploy:
vercel
Follow the prompts to configure your deployment.
- Connect your repository to Vercel at vercel.com
- Import your GitHub repository
- Vercel will automatically build and deploy your app
- Any pushes to the main branch will trigger automatic redeployments
- Connect your repository to Netlify at netlify.com
- Set build settings:
- Build command: (leave empty or use
echo 'No build required'
) - Publish directory:
/
(root directory)
- Build command: (leave empty or use
- Go to your repository settings on GitHub
- Navigate to Pages section
- Select source branch (usually
main
) - Your app will be available at
https://username.github.io/text-cleanup
Since this is a static site, you can deploy it to any web server:
- Upload
index.html
,script.js
,styles.css
, and any other assets to your web server - Ensure the server can serve static files
- Access your domain to view the app
text-cleanup/
βββ index.html # Main HTML file
βββ script.js # JavaScript functionality
βββ styles.css # CSS styles
βββ package.json # Project configuration
βββ vercel.json # Vercel deployment config
βββ README.md # This file
We welcome contributions to the text-cleanup project! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- π Bug fixes
- β¨ New features
- π Documentation improvements
- π¨ UI/UX enhancements
- β‘ Performance optimizations
- π§ͺ Tests
- Keep the code simple and readable
- Test your changes thoroughly
- Follow existing code style and conventions
- Update documentation as needed
Feel free to open an issue if you have ideas, questions, or found a bug!
This project is licensed under the MIT License - see the details below:
MIT License
Copyright (c) 2025 text-cleanup
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Made with β€οΈ by the open source community. Contributions are always welcome!