{"uid":"cap_iqih7--X_r0UNXEYIc0NM","slug":"document-to-markdown-converter-pdf-docx-xlsx-odt-csv-xml-e934786e","name":"Document-to-Markdown Converter (PDF, DOCX, XLSX, ODT, CSV, XML)","description":"Convert a document at a URL to Markdown for an LLM: PDF, Word (DOCX), Excel (XLSX, XLS), OpenDocument (ODT, ODS), CSV and XML, up to 20 MB. Returns the Markdown with character, word and token counts.","url":"https://onchaincheck.dev/doc/markdown?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","pattern":"^\\S+$","maxLength":2000,"description":"Public URL of the document"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_H0eg9OpnUo8Z74TPPuVsq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a document at a public URL and converts it to Markdown, returning the text along with character, word, and token counts.","exampleAgentPrompt":"Can you grab the PDF at https://example.com/report.pdf and convert it to Markdown so I can feed it into my LLM pipeline — and also tell me the word and token count?","exampleUseCases":[{"title":"LLM context from PDF report","prompt":"Fetch the annual report PDF at https://company.com/annual-report-2024.pdf and convert it to Markdown so I can pass it as context to my language model — include the token count so I know if it fits in the context window."},{"title":"Extract spreadsheet data as Markdown","prompt":"There's an Excel file at https://data.example.com/financials.xlsx — can you convert it to Markdown so I can analyze the contents with an LLM?"},{"title":"Readable contract from DOCX URL","prompt":"Convert the Word document at https://legal.example.com/contract.docx to Markdown and tell me how many words and tokens it contains."}],"resultDescription":"Returns the full Markdown representation of the document, plus metadata including character count, word count, and token count. Supports documents up to 20 MB.","failureModes":["URL is not publicly accessible or returns a non-200 status","Document exceeds the 20 MB size limit","File format is not supported (e.g. PPT, image-only PDF)","URL contains whitespace or is malformed","Document is password-protected or encrypted","Parsing fails for corrupted or malformed files"],"whenToPreferThis":"Use this endpoint when you need to convert a remotely hosted document (PDF, DOCX, XLSX, ODT, CSV, or XML) into clean Markdown suitable for LLM ingestion, especially when you also need character, word, and token counts. It is well-suited for agentic pipelines that need to ingest arbitrary document formats from URLs without handling file downloads or format-specific parsing libraries themselves.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T18:46:24.140Z","isFirstParty":false,"canonicalSlug":"document-to-markdown-converter-pdf-docx-xlsx-odt-csv-xml-e934786e"}