$ WebP to PNG, WebP Conversion API
Convert WebP Images to PNG via API
Turn WebP images into PNG with one REST call. Send the file or a public URL and get a lossless PNG back with transparency intact. Built for pipelines that feed editors, design tools and clients that don't read WebP.
Free: 10 conversions a month, no card. Pro: $9/month. Compare plans
# Convert WebP image to PNG
curl -X POST \
https://api.convertfilefast.com/v2/convert/webp-to-png \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@banner.webp" \
--output banner.png
# HTTP 200 OK — Content-Type: image/pngimport requests
response = requests.post(
"https://api.convertfilefast.com/v2/convert/webp-to-png",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files={"file": open("banner.webp", "rb")}
)
with open("banner.png", "wb") as f:
f.write(response.content)const formData = new FormData();
formData.append("file", fs.createReadStream("banner.webp"));
const response = await fetch(
"https://api.convertfilefast.com/v2/convert/webp-to-png",
{
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY" },
body: formData,
}
);
fs.writeFileSync("banner.png", Buffer.from(await response.arrayBuffer()));// n8n HTTP Request Node
{
"method": "POST",
"url": "https://api.convertfilefast.com/v2/convert/webp-to-png",
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{ "name": "file", "parameterType": "formBinaryData", "inputDataFieldName": "data" }
]
},
"options": { "response": { "responseFormat": "file" } }
}// Advantages
Why use our API?
Complete and reliable solution for integration in any tech stack.
Transparency Kept
Alpha channels carry over, so logos, icons and cut-out product shots keep their see-through background.
Lossless Output
PNG doesn't compress away detail when you save it, so the result is ready to edit and re-save as many times as you need.
Opens Everywhere
PNG is read by every browser, design tool and operating system, including the tools that don't support WebP.
Upload or URL
Send the WebP as multipart/form-data or point the url field at a public image. No SDK, no file handling.
Fits Image Pipelines
Convert whole asset libraries, or convert on upload, with a single HTTP call. Works in n8n with the HTTP Request node.
Built for AI Agents
The same conversion is one MCP tool call, so an agent can turn a WebP into a PNG with no HTTP client.
// How it works
4 steps to run this conversion
- 01
Create an API key
Sign up at convertfilefast.com/signup and copy your cff_ API key from the dashboard. The free plan includes 10 conversions per month.
- 02
POST the WebP to the endpoint
Send a multipart/form-data POST to https://api.convertfilefast.com/v2/convert/webp-to-png with header X-API-Key: cff_your_key (Authorization: Bearer also works) and the image as a .webp file in the file field, or a public link in the url field.
- 03
Receive the PNG image
The response body is the PNG image, streamed back with a Content-Disposition filename. Save it or pass it straight to the next step of your pipeline.
- 04
Or invoke it from an AI agent
Add the MCP server to Claude, Cursor or any MCP-compatible client using https://mcp.convertfilefast.com/mcp, then call convert_file({ target_format: 'png', source_url: '...' }) as a single tool call, with no HTTP client and no file handling.
// For AI agents
Or call this from Claude, Cursor, or any MCP client
Convert File Fast ships a native Model Context Protocol server. Give this conversion to an AI agent as a single tool call — no HTTP client, no binary handling, per-user API keys.
npx -y convertfilefast-mcpconvert_file({ target_format: "png", source_url: "https://example.com/file.webp" })// FAQ
Frequently Asked Questions
How do I convert WebP to PNG with an API?
Send a POST request to https://api.convertfilefast.com/v2/convert/webp-to-png with your image as a multipart/form-data upload in the file field. The response body is the PNG image. See the cURL and Python examples above for ready-to-run code.
Does the conversion keep WebP transparency?
Yes. When the WebP has an alpha channel, the PNG keeps it.
Do I need to set a quality?
No. PNG output is lossless, so there is no quality setting to tune. Just send the file.
Can I send an image URL instead of uploading the file?
Yes. Pass a public link in the url form field instead of file.
How do I convert PNG back to WebP?
Use the reverse endpoint, https://api.convertfilefast.com/v2/convert/png-to-webp. It takes the same file or url field, returns a WebP, and lets you set quality from 1 to 100.
Can I call it from n8n or an AI agent?
Yes. It is a standard REST endpoint, so any HTTP client works, including the n8n HTTP Request node (see the n8n tab above). AI agents can call it through the MCP server with convert_file and target_format png.
// Related Tools
// Try free or subscribe
Start Converting WebP to PNG
Get your API key and convert WebP images to PNG in seconds. Free plan includes 10 conversions per month.
Compare plans- Free$0/mo10 conversions per monthStart Free
- Pro$9/mo5,000 conversions per monthSubscribe Pro
- Scale$59/mo50,000 conversions per monthSubscribe Scale