A professional, browser-based image compression tool that uses intelligent algorithms to reduce image file sizes while maintaining optimal quality. All processing happens locally in your browser - no uploads to servers, ensuring complete privacy.
- Smart Compression Algorithm - Advanced compression technology that intelligently reduces file size
- Multiple Format Support - Compress JPEG, PNG, and WebP images
- Quality Control - Adjustable quality settings from minimum file size to best quality
- Precise Size Control - Set target file sizes with iterative compression
- Real-time Preview - Side-by-side comparison of original and compressed images
- Lightning Fast - Optimized algorithms for quick compression
- Privacy Protected - 100% local processing, no server uploads
- Completely Free - No registration required, no hidden costs
- Modern UI - Clean, intuitive interface built with Tailwind CSS
- Node.js 18+ or higher
- pnpm (recommended) or npm
- Clone the repository:
git clone <repository-url>
cd image-compressor-pro- Install dependencies:
pnpm installpnpm devThe application will start at http://localhost:5173
pnpm buildThe production-ready files will be generated in the dist directory.
pnpm preview-
Upload Image
- Drag and drop an image file onto the upload area
- Or click to select a file from your computer
- Supports JPEG, PNG, and WebP formats (max 10MB)
-
Configure Settings
- Target File Size (Optional): Enter a desired output size (e.g., 1.5MB, 500KB)
- Image Quality: Adjust the quality slider (10% = smallest file, 100% = best quality)
- Output Format: Choose between JPEG, PNG, or WebP
-
Start Compression
- Click "Start Compression" to begin
- Watch the real-time progress bar
-
View Results
- See detailed compression statistics
- Compare original vs compressed images side-by-side
- Download your compressed image
| Format | Description | Best For |
|---|---|---|
| JPEG | Smallest file sizes, lossy compression | Photos, complex images |
| PNG | Lossless compression with transparency support | Icons, graphics with transparency |
| WebP | Modern format with high compression rates | All-purpose, best compression |
Maximum file size: 10MB
- React 18.3.1 - UI framework
- TypeScript 5.6.2 - Type-safe JavaScript
- Vite 6.0.1 - Build tool and dev server
- Tailwind CSS 3.4.16 - Utility-first CSS framework
- Radix UI - Accessible component primitives
- browser-image-compression - Client-side image compression library
- Lucide React - Beautiful icons
This tool processes all images locally in your browser. Your images are:
- ✅ Never uploaded to any server
- ✅ Never stored or logged
- ✅ Completely private and secure
All compression happens on your device using JavaScript Web Workers for optimal performance.
Simply upload an image and click "Start Compression" to reduce file size while maintaining good quality.
If you need a specific file size (e.g., for email attachments):
- Enter the target size in the input field (e.g., "1MB")
- The tool will iteratively adjust quality to match your target
Switch between JPEG, PNG, and WebP formats:
- Use WebP for maximum compression
- Use PNG for images with transparency
- Use JPEG for best compatibility
- Header - Application title and feature highlights
- ImageUploader - Drag-and-drop file upload interface
- CompressionSettings - Quality, format, and size controls
- CompressionResult - Results display with comparison view
- CompressionStats - Detailed statistics (ratio, savings, final size)
- DownloadButton - Download compressed image with "_compressed" suffix
- ProgressBar - Real-time compression progress
- Footer - Information about features, privacy, and formats
After compression, you can view:
- Compression Ratio - Percentage of original size
- Size Reduction - Total bytes saved
- Final Size - Optimized file size
- Space Saved - Percentage reduction
src/
├── components/ # React components
│ ├── Header.tsx
│ ├── Footer.tsx
│ ├── ImageUploader.tsx
│ ├── CompressionSettings.tsx
│ ├── CompressionResult.tsx
│ ├── CompressionStats.tsx
│ ├── ImagePreview.tsx
│ ├── DownloadButton.tsx
│ └── ProgressBar.tsx
├── utils/ # Utility functions
│ ├── formatters.ts # File size and number formatting
│ └── imageCompression.ts # Core compression logic
├── App.tsx # Main application component
└── main.tsx # Application entry point
pnpm dev # Start development server
pnpm build # Build for production
pnpm preview # Preview production build
pnpm lint # Run ESLintContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with React
- Icons by Lucide
- Compression powered by browser-image-compression
- UI components from Radix UI
- Styled with Tailwind CSS
Made with ❤️ Gravirei
© 2025 Smart Image Compression Expert. All rights reserved.

