Optimize Images via API
Resize, compress, and convert images to WebP, JPEG, or PNG. Apply filters like blur, grayscale, and rotation. Up to 92% size reduction with one API call.
Try it Free
Enter an image URL, configure options, and see the optimized result instantly.
جرب مجاناً
Result
Enter an image URL and click Optimize
API Documentation
Resize, compress, convert, rotate, blur, and apply grayscale to images. Supports JPEG, PNG, WebP, and GIF. Input via URL or base64. Output as optimized base64 data URI.
Endpoint
Send an image URL or base64 data with transformation options. The API processes the image server-side and returns an optimized base64-encoded result with size comparison metrics.
Request Parameters
* Either url or base64 is required.
Response Fields
status "success" or "error"format Output format usedoriginal_size Original file size in bytesoriginal_size_human Human-readable original sizeoutput_size Optimized file size in bytesoutput_size_human Human-readable output sizesavings_percent Size reduction percentage (negative means larger)dimensions Output width and heighttook_ms Processing time in millisecondsimage Base64 data URI of the optimized imageCode Examples
Error Codes
Rate Limits
No API key required. Processing uses PHP GD. Max output 4096×4096px. Images fetched via URL have a 15-second timeout.