Convert HEIC Photos to PNG via API
Convert Apple HEIC images from iPhone and Mac to lossless PNG format via REST API. Preserve full image quality, batch process entire photo libraries, and automate with n8n workflows.
# Convert HEIC image to PNG
curl -X POST \
https://api.convertfilefast.com/v2/convert/heic-to-png \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@photo.heic" \
--output photo.png
# HTTP 200 OK — Content-Type: image/pngimport requests
from pathlib import Path
# Batch convert HEIC files to PNG
heic_files = Path("./photos").glob("*.heic")
for heic_path in heic_files:
response = requests.post(
"https://api.convertfilefast.com/v2/convert/heic-to-png",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files={"file": open(heic_path, "rb")}
)
out_path = heic_path.with_suffix(".png")
out_path.write_bytes(response.content)
print(f"Converted: {heic_path.name} → {out_path.name}")const formData = new FormData();
formData.append("file", fs.createReadStream("photo.heic"));
const response = await fetch(
"https://api.convertfilefast.com/v2/convert/heic-to-png",
{
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY" },
body: formData,
}
);
fs.writeFileSync("photo.png", Buffer.from(await response.arrayBuffer()));// n8n Workflow: Google Drive trigger → HEIC to PNG → Save back
// Step 1: Google Drive Trigger (new .heic file)
{
"node": "Google Drive Trigger",
"event": "fileCreated",
"fileExtension": "heic"
}
// Step 2: HTTP Request Node — Convert HEIC to PNG
{
"method": "POST",
"url": "https://api.convertfilefast.com/v2/convert/heic-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.
Lossless PNG Output
PNG uses lossless compression, preserving every pixel of your HEIC photos with no quality loss.
iPhone Photo Support
Convert HEIC images captured on iPhone, iPad, and Mac directly to PNG without local software.
Batch Processing
Convert entire folders of HEIC photos to PNG in one automated pipeline. Perfect for photo library migration.
Universal Compatibility
Output PNG files are compatible with every device, browser, and image editing application.
n8n & Automation Ready
Trigger conversions from Google Drive, Dropbox, or Gmail in n8n workflows. No complex code required.
Zero Storage
HEIC files are converted in memory and deleted immediately. Your photos are never stored on our servers.
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.heic" })Start Converting HEIC to PNG
Get your API key and convert HEIC photos to PNG in seconds. Free plan includes 10 conversions per month.
No credit card. 10 free conversions on Free plan.