A modern, browser-based text difference checking tool that processes everything locally on your device. Compare code snippets, configuration files, or any text with syntax highlighting and intuitive visualization.
- 100% Client-Side Processing: All difference calculations happen entirely in your browser - no data is ever sent to any server
- Private & Secure: Your text never leaves your device, making it safe for sensitive information
- Syntax Highlighting: Supports multiple programming languages and file formats
- Line-by-Line Comparison: Clear visualization of additions, deletions, and modifications
- Word-Level Diffs: Highlights specific changes within modified lines
- Automatic Language Detection: Identifies programming language based on content
- Responsive Design: Works on desktop and mobile devices
Visit https://diff.pwp.sh to use the tool immediately without installation.
If you prefer to run the application on your local machine:
# Clone this repository
git clone https://github.com/alkinum/text-diff-checker.git
# Navigate to the project directory
cd text-diff-checker
# Install dependencies
npm install
# Start the development server
npm run devThe application will be available at http://localhost:5173 (or another port if 5173 is in use).
- Paste or type your original text in the left panel
- Paste or type your modified text in the right panel
- Click "Compare" to see the differences
- The syntax highlighting will automatically adjust based on the content
- You can manually select a different language using the dropdown menu
- Vite
- React
- TypeScript
- Tailwind CSS
- shadcn/ui
- diff - JavaScript library for calculating text differences
This application:
- Never sends your text data to any server
- Has no analytics or tracking
- Functions entirely in your browser
- Can even work offline after initial load
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request