Document Conversion API â Free Tier + Pay-As-You-Go
Convert Word, Excel, PowerPoint, OpenDocument, RTF, Markdown, and 60+ document formats. LibreOffice + Pandoc backed.
What it does
The Document Conversion API converts between 70 document formats backed by a dual LibreOffice + Pandoc pipeline. LibreOffice handles Office Suite interop â DOC/DOCX/XLS/XLSX/PPT/PPTX/ODT/ODS/ODP â including formula recalculation, embedded chart re-rendering, and font fallback for missing typefaces via a curated 200-font bundle. Pandoc handles markup formats â Markdown, AsciiDoc, reStructuredText, Org-mode, DocBook, Textile, MediaWiki, and TWiki â with custom Lua filters for typography, code-block syntax highlighting via Pygments, and footnote/citation handling via citeproc.
PDF output is rendered via LibreOffice for Office sources and weasyprint for markup sources, with both pipelines emitting tagged PDF/UA-compliant documents when `accessible=true` is set. EPUB and HTML output are produced with embedded CSS, semantic landmarks, and table-of-contents metadata. Per-job options control margins, page size, header/footer text, password protection, watermarks, font embedding, and language tag (essential for hyphenation in non-English content).
Large workbooks â Excel files with >100 sheets or 1M+ cells â are processed via the slower batch queue with extended timeouts.
Supported formats
Source formats (36)
- doc
- docx
- xls
- xlsx
- ppt
- pptx
- odt
- ods
- odp
- rtf
- txt
- csv
- tsv
- md
- rst
- tex
- org
- html
- htm
- epub
- mobi
- azw3
- fb2
- djvu
- ps
- wps
- wpd
- pages
- key
- numbers
- xhtml
- xml
- json
- yaml
- toml
Target formats (14)
- docx
- doc
- html
- epub
- txt
- rtf
- odt
- md
- tex
- csv
- xlsx
- pptx
- fb2
Quick start
All three SDK languages show the same conversion: a single POST to /v1/convert with your API key in the X-Api-Key header.
curl -X POST https://api.convertintomp4.com/v1/convert \
-H "X-Api-Key: ck_your_api_key" \
-F "file=@input.docx" \
-F "target=pdf"
-F "pageSize=A4"import { ConvertIntoMP4 } from "@convertintomp4/sdk";
import fs from "node:fs";
const client = new ConvertIntoMP4({ apiKey: process.env.CIM4_API_KEY });
const job = await client.convert({
file: fs.createReadStream("input.docx"),
target: "pdf",
});
const result = await client.waitForJob(job.id);
console.log("Output URL:", result.outputUrl);from convertintomp4 import Client
client = Client(api_key="ck_your_api_key")
with open("input.docx", "rb") as f:
job = client.convert(file=f, target="pdf")
result = client.wait_for_job(job.id)
print("Output URL:", result.output_url)Features
- 70 source formats, 14+ target formats
- LibreOffice for Office, Pandoc for markup
- PDF/UA-compliant tagged output via accessible=true
- Per-job page size, margins, watermark, font embed
- 200-font fallback bundle for missing typefaces
- EPUB output with semantic landmarks + TOC
- Async batch queue for large workbooks (>100 sheets)
Pricing
From $9.99/mo (Pro) or $24.99/mo (Business) â or pay-as-you-go on the API plan.
Free tier: 5 conversions/day, 100 MB file size, no API key required (IP-gated). Pro $9.99/mo: 100/day (2,000/month), 2 GB files. Business $24.99/mo: 1,000/day (20,000/month), 10 GB files, GPU encoding, dedicated support.
See full pricing breakdown âBuilt for production
99.9% uptime SLA
Multi-region failover, transparent status page, 60-second response-time guarantee on Business.
Encryption + auto-delete
TLS 1.2+ in transit, AES-256 at rest. Files deleted after 1h / 24h / 7d depending on plan, or instantly via DELETE endpoint. See the security page.
~7s median latency
Most sub-100 MB jobs complete in 6-9 seconds. Webhook-driven async for heavier workloads; waitForJob for synchronous flows.
Frequently Asked Questions
How accurate is DOCX â PDF rendering compared to Microsoft Word?
LibreOffice renders DOCX with ~99% fidelity for native Word documents. Complex layouts using SmartArt, ActiveX controls, or VBA macros may not render identically. Use `pdfEngine=word365` on the Business plan for Microsoft-rendered PDFs at full fidelity.
Can the API process password-protected DOCX or PDF files?
Yes. Pass `password=<secret>` in the request body â it's not logged or persisted, only forwarded to the underlying engine. For PDFs, owner and user passwords are both supported.
Does Markdown â PDF support code-block syntax highlighting?
Yes, via Pygments. Pass `highlightStyle=monokai` (or any Pygments theme) to customise. Default is `pygments` style for light-mode PDFs.
Are tables and charts preserved across XLSX â PDF?
Yes. Excel charts re-render via LibreOffice's chart engine; pivot tables flatten to static values; conditional formatting is preserved. Embedded images and shapes pass through unchanged.
Can I generate accessible (tagged) PDFs?
Yes. Pass `accessible=true` and the output PDF is structured per PDF/UA-1 with proper heading levels, alternative text from image captions, and reading-order metadata. Required for WCAG 2.1 compliance.
Related APIs
- File Conversion APIOne unified file conversion API for video, audio, image, document, ebook, archive, and font formats â 255 formats, 2,290+ conversion pairs.
- Convert APIProduction-grade file conversion API with 9 language SDKs, async webhooks, and cloud-to-cloud workflows. Free tier available.
- Media Conversion APIVideo and audio conversion API in one endpoint. 27 video + 21 audio formats, FFmpeg-backed, GPU-accelerated.
Or browse the full catalogue of 23 API products â
Get an API key
Start integrating the Document Conversion API in five minutes. Read the docs, grab a key, and ship your first conversion before the trial coffee cools.