Document · sync
doc-converter
Markdown ↔ HTML ↔ DOCX ↔ EPUB ↔ LaTeX. The pandoc API you wanted.
Format picker
About
doc-converter exposes pandoc as a simple JSON API. Pick `from` and `to` from the supported format list, hand over your `content` (utf-8 string, or base64 when the source is binary like DOCX/EPUB), and get back the converted output.
Text outputs (md, html, latex, rst, org, plaintext) are returned as utf-8 strings. Binary outputs (docx, epub) are returned base64-encoded with `outputIsBase64: true`.
Use it for: turning user-submitted Markdown into DOCX for download, normalising mixed-format docs in a RAG ingest pipeline, generating HTML previews of LaTeX submissions, converting Org-mode notes to EPUB.
Limits: 5 MB input, 30-second timeout. Real mode requires `pandoc` on PATH plus `PANDOC_PIPELINE=real`. PDF *output* needs a TeX engine — use tex-press for that pipeline.
{
"type": "object",
"required": [
"from",
"to",
"content"
],
"properties": {
"from": {
"type": "string",
"enum": [
"md",
"html",
"docx",
"epub",
"latex",
"rst",
"org",
"plaintext"
]
},
"to": {
"type": "string",
"enum": [
"md",
"html",
"docx",
"epub",
"latex",
"rst",
"org",
"plaintext"
]
},
"content": {
"type": "string",
"description": "Source content (utf-8 or base64)."
},
"base64": {
"type": "boolean",
"default": false,
"description": "Required when from = docx or epub."
}
}
}These are descriptive previews. Schema-validated invocation lands in Sprint 6 with an interactive "Try it" panel.
Reviews (0)
No reviews yet — be the first to share your experience.