Resize Images to Any Dimension via API
Resize images to exact pixel dimensions via REST API. Specify width, height, fit mode (cover, contain, fill), and output format as multipart/form-data. Perfect for thumbnails, avatars, and responsive image pipelines.
# Resize an image to specific dimensions
curl -X POST \
https://api.convertfilefast.com/v2/image/resize \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@photo.jpg" \
-F "width=800" \
-F "height=600" \
-F "fit=cover" \
-F "format=jpeg" \
--output resized.jpg
# HTTP 200 OK — Content-Type: image/jpeg
# fit options: cover, contain, fill, inside, outsideAdvantages
Why use our API?
Complete and reliable solution for integration in any tech stack.
Exact Dimensions
Specify precise width and height in pixels. Get pixel-perfect output every time regardless of the source image size.
Flexible Fit Modes
Choose from cover, contain, fill, inside, or outside fit modes to control how the image fills the target dimensions.
Format Conversion
Resize and convert format simultaneously. Output as JPEG, PNG, or WebP with a single API call.
Thumbnail Generation
Generate thumbnails, avatars, and product image variants at scale. Automate image resizing in content pipelines.
n8n Workflow Support
Resize images in n8n workflows triggered by file uploads, webhooks, or scheduled tasks. No extra tools needed.
Zero Storage
Images are processed in memory and deleted immediately. Your originals and resized outputs are never stored.
Start Resizing Images via API
Get your API key and resize images to any dimension in seconds. Free plan includes 10 conversions per month.
No credit card. 10 free conversions on Free plan.