File Conversion
OperationalConvert documents between DOCX, PDF, HTML, Markdown, and more
API Overview
The File Conversion API handles bi-directional document format conversion across a broad matrix of input and output types. Submit your file as a base64-encoded payload and specify the target format. The service preserves headings, tables, lists, images, and basic formatting as faithfully as possible across conversion boundaries. Supports DOCX, PDF, HTML, Markdown, plain text, RTF, and ODT. Perfect for normalizing document inputs in AI pipelines or building self-service document portals.
Broad Format Matrix
Convert between DOCX, PDF, HTML, Markdown, RTF, ODT, and plain text in any direction.
Structure Preservation
Headings, tables, lists, and inline formatting survive the conversion with high fidelity.
Base64 Transport
Files are sent and received as base64 strings — no multipart uploads or presigned URLs needed.
Up to 20 MB
Handles large documents with async mode for files that exceed the synchronous threshold.
terminal API Playground
Live Simulationimport requests
import base64
with open("document.docx", "rb") as f:
encoded = base64.b64encode(f.read()).decode()
url = "https://api.picopayd.codefission.co.uk/files/api/convert"
headers = {
"Content-Type": "application/json",
"X-PAYMENT": "<402-payment-token>"
}
payload = {
"fromFormat": "docx",
"toFormat": "pdf",
"content": encoded
}
response = requests.post(url, json=payload, headers=headers)
print(response.json()) {
"success": true,
"toFormat": "pdf",
"content": "JVBERi0xLjQK...",
"encoding": "base64",
"sizeBytes": 48210
}