file_copy

File Conversion

Operational

Convert documents between DOCX, PDF, HTML, Markdown, and more

api API Docs

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.

autorenew

Broad Format Matrix

Convert between DOCX, PDF, HTML, Markdown, RTF, ODT, and plain text in any direction.

table_chart

Structure Preservation

Headings, tables, lists, and inline formatting survive the conversion with high fidelity.

api

Base64 Transport

Files are sent and received as base64 strings — no multipart uploads or presigned URLs needed.

upload_file

Up to 20 MB

Handles large documents with async mode for files that exceed the synchronous threshold.

integration_instructions API Reference

terminal API Playground

Live Simulation
import 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())
Response Body 200 OK
{
  "success": true,
  "toFormat": "pdf",
  "content": "JVBERi0xLjQK...",
  "encoding": "base64",
  "sizeBytes": 48210
}