The complete Image Processing API toolkit
Transform, convert between 7 formats, optimize for web, generate placeholders, and analyze metadata — all via base64 in/out.
curl -X POST "https://image.toolkitapi.io/v1/image/resize" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"image": "BASE64...", "width": 800, "maintain_aspect": true}'
import httpx, base64
with open("photo.jpg", "rb") as f:
b64 = base64.b64encode(f.read()).decode()
resp = httpx.post(
"https://image.toolkitapi.io/v1/image/resize",
headers={"X-API-Key": "YOUR_KEY"},
json={"image": b64, "width": 800, "maintain_aspect": True},
)
print(resp.json())
const fs = require("fs");
const img = fs.readFileSync("photo.jpg").toString("base64");
const resp = await fetch(
"https://image.toolkitapi.io/v1/image/resize",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_KEY",
},
body: JSON.stringify({ image: img, width: 800, maintain_aspect: true }),
}
);
const data = await resp.json();
console.log(data);
Browse by Category
Everything you need for image processing, generation, and analysis.
Transform
5 toolsResize, crop, rotate, flip, and pad images.
Convert
1 toolsConvert between PNG, JPEG, WebP, GIF, BMP, TIFF, and ICO.
Optimize
1 toolsCompress images with configurable quality for web delivery.
Generate
3 toolsPlaceholder images, solid colors, gradients, and text overlays.
Analyze
2 toolsImage metadata, dimensions, dominant colors, and histogram.
Built for Developers
Designed to simplify your workflow, not complicate it.
Base64 In/Out
Send base64 image in, get base64 image out. No multipart uploads or file storage.
12 Endpoints
Transform, convert, optimize, generate, and analyze — full image pipeline in one API.
Smart Sizing
Resize with aspect ratio preservation, fit, fill, or exact dimensions.
7 Formats
PNG, JPEG, WebP, GIF, BMP, TIFF, and ICO — convert between any pair.
Start processing images in minutes
One API key. 26 endpoints. No image storage required.
Get an API Key →