🖼️ Image Converter

Convert images to WebP or AVIF with optional resizing

Convert Your Image

Upload an image and convert it to WebP format with optional resizing

Choose output format. AVIF offers better compression, WebP wider compatibility.

Leave empty to keep original size. Aspect ratio will be preserved.

Converting image...

API Documentation

Learn how to integrate the Image to WebP Converter API into your application

Endpoint

POST https://webp.abrir.xyz/api/convert-image

Optional: Add format=avif parameter (default: WebP)

Usage Examples

📁 File Upload

curl -X POST \ https://webp.abrir.xyz/api/convert-image \ -F "[email protected]" \ -F "format=webp" \ -o result.webp

🔗 From URL

curl -X POST \ https://webp.abrir.xyz/api/convert-image \ -H "Content-Type: application/json" \ -d '{"imageUrl":"...","format":"webp"}' \ -o result.webp

📊 Base64 Data

curl -X POST \ https://webp.abrir.xyz/api/convert-image \ -H "Content-Type: application/json" \ -d '{"imageBase64":"...","format":"webp"}' \ -o result.webp