POST /v1/convert and to: "md". Doconda returns Markdown with headings, paragraphs, lists and
tables rebuilt from the page, and reads scanned pages with OCR. It uses no AI, and the first 1,000 conversions each month
are free.
Convert a PDF to Markdown
- Store your API key in
DOCONDA_API_KEYand install the SDK:pip install docondaornpm install @doconda/sdk. - Call
convertwith the file and"md". The file can be a local path, a public URL, bytes, or afile_…ordoc_…ID. - Pass
textto your model.
text: the Markdown. Repeated headers, footers and page numbers are left out.pages: the pages of the PDF you sent.outputisnullfor text formats; it holds a download link only for file formats such asdocx.
Time, limits and price
Past the free conversions with no balance, the call fails with
402 insufficient_balance. Conversions count toward the
limit of 120 documents per minute.
FAQ
Does Doconda keep the PDF or the text?
Does Doconda keep the PDF or the text?
No. For text formats nothing is kept once you have the result. A file you send by URL, base64 or
multipart is
deleted after 15 minutes.Which other formats can become Markdown?
Which other formats can become Markdown?
Word, PowerPoint, Excel (also
.doc, .ppt and .xls), .odt, HTML, CSV and pictures (PNG, JPEG). PowerPoint
gives one section per slide with its notes; Excel, one table per visible sheet.Can I turn the PDF into an editable Word file instead?
Can I turn the PDF into an editable Word file instead?
Yes, with
to: "docx". The result comes back in output.url, valid 5 minutes.