Feature Request: Add JSON Output Option
Summary
Currently, MarkItDown converts supported documents into Markdown format only. It would be useful to provide an optional JSON output format that preserves document structure, such as headings, paragraphs, tables, images, and metadata.
Motivation
Many developers use MarkItDown as part of automated processing pipelines and LLM workflows. Structured JSON output would allow easier integration with downstream applications without requiring additional parsing of Markdown.
Proposed Solution
Add a command-line option such as:
markitdown document.pdf --output-format json
Example output:
{ "title": "Sample Document", "sections": [ { "heading": "Introduction", "content": "..." } ] } Benefits Easier integration with AI pipelines Structured document representation Better support for data extraction workflows Reduced need for custom Markdown parsing
Yeah Sure
On Mon, 1 Jun 2026 at 01:15, Spandan Rajan Mhapsekar < @.***> wrote:
spandan11106 left a comment (microsoft/markitdown#2029) https://github.com/microsoft/markitdown/issues/2029#issuecomment-4587955606
Hi, I'd like to work on this issue. Could you assign it to me?
— Reply to this email directly, view it on GitHub https://github.com/microsoft/markitdown/issues/2029?email_source=notifications&email_token=BKX4GMADKFWJOHKPRYSXKBT45SHFJA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINJYG44TKNJWGA3KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-4587955606, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKX4GME4QEKENXPOBNFK2N345SHFJAVCNFSM6AAAAACZUTJV26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DKOBXHE2TKNRQGY . You are receiving this because you authored the thread.Message ID: @.***>