Skip to main content
Convert documents between formats using SuperDoc’s high-fidelity conversion engine.

Usage

Parameters

ParameterTypeRequiredDescription
fileFileOne ofDocument file (multipart upload)
document_urlstringOne ofURL to fetch document from
document_base64stringOne ofBase64-encoded document content
fromstringYesSource format: docx, md, html
tostringNoTarget format: pdf, docx. Default: pdf

Supported conversions

FromToNotes
docxpdfFull fidelity conversion
mddocxConverts Markdown to Word
mdpdfMarkdown to PDF (via DOCX)
htmldocxHTML content to Word

Response

Returns the converted document as binary data with appropriate content type:
  • application/pdf for PDF output
  • application/vnd.openxmlformats-officedocument.wordprocessingml.document for DOCX output

Examples

Convert uploaded file

Generate Word doc from Markdown

Limits

LimitValue
Max file size25 MB
Concurrent requests10 per API key