Convert Images to PDF via API
Combine multiple images into a single, professionally formatted PDF document. Supports JPG, PNG, HEIC, WebP, and more. Configure page size and send all images in one API request.
# Convert multiple images to a single PDF
curl -X POST \
https://api.convertfilefast.com/v2/convert/images-to-pdf \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "files=@photo1.jpg" \
-F "files=@screenshot.png" \
-F "files=@iphone_photo.heic" \
-F "page_size=A4" \
--output album.pdf
# HTTP 200 OK — Content-Type: application/pdfimport requests
image_files = ["photo1.jpg", "screenshot.png", "iphone_photo.heic"]
files = [("files", open(f, "rb")) for f in image_files]
response = requests.post(
"https://api.convertfilefast.com/v2/convert/images-to-pdf",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files=files,
data={"page_size": "A4"}
)
with open("album.pdf", "wb") as f:
f.write(response.content)const formData = new FormData();
// Append multiple image files
const imageFiles = ["photo1.jpg", "screenshot.png", "iphone_photo.heic"];
imageFiles.forEach((fileName) => {
formData.append("files", fs.createReadStream(fileName));
});
formData.append("page_size", "A4");
const response = await fetch(
"https://api.convertfilefast.com/v2/convert/images-to-pdf",
{
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY" },
body: formData,
}
);
fs.writeFileSync("album.pdf", Buffer.from(await response.arrayBuffer()));// n8n HTTP Request Node
{
"method": "POST",
"url": "https://api.convertfilefast.com/v2/convert/images-to-pdf",
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{ "name": "files", "parameterType": "formBinaryData", "inputDataFieldName": "data" },
{ "name": "page_size", "value": "A4" }
]
},
"options": { "response": { "responseFormat": "file" } }
}Advantages
Why use our API?
Complete and reliable solution for integration in any tech stack.
Multiple Formats
Accepts JPG, PNG, HEIC, WebP, AVIF, SVG, BMP, and TIFF images in a single request.
Multi-Image to One PDF
Send 2 or more images and receive a single PDF with each image on its own page.
Page Size Control
Choose page size: fit (matches image dimensions), A4, or Letter for each conversion request.
Ordered Pages
Images appear in the PDF in the exact order they are uploaded. Full control over the final document.
Fast Processing
Combine dozens of images into a PDF in seconds. Infrastructure optimized for high-throughput.
Zero Storage
All uploaded images are processed in memory and deleted immediately after PDF generation.
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-mcpimages_to_pdf({ source_urls: ["https://example.com/1.jpg", "https://example.com/2.jpg"] })Start Converting Images to PDF
Get your API key and combine images into PDF in seconds. Free plan includes 10 conversions per month.
No credit card. 10 free conversions on Free plan.