{"uid":"cap_InoBEqucpxy-hRIEQECfl","slug":"boring-api-convert-docx-to-text-0dbcc929","name":"boring-api · convert: DOCX to Text","description":"Document and data format conversions via Pandoc, Chromium-headless, and pure-JS libs. Text inputs/outputs are JSON-fielded; binary inputs/outputs use base64 in JSON for uniformity.","url":"https://convert.boring-api.com/docx-to-text","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"content_base64":{"type":"string"}}},"responseSchema":{"type":"object"},"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_3YCp8rn9Y2MPdGfuv2pAm","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":"Converts a base64-encoded DOCX file into plain text by extracting its textual content","exampleAgentPrompt":"I have a Word document I need to read as plain text — here's the base64-encoded DOCX: [base64string]. Can you extract all the text from it?","exampleUseCases":[{"title":"Extract text from contract for AI review","prompt":"I just received a Word document contract from a vendor and need to quickly pull out all the plain text so I can feed it to my analysis agent — can you decode this base64 DOCX and give me just the raw text content? Here's the file: [base64string]"},{"title":"Batch process uploaded documents into database","prompt":"Users are uploading Word documents through our app and I need to automatically extract the plain text from each one so we can index and search the content later — can you convert this base64-encoded DOCX to plain text for storage? [base64string]"},{"title":"Convert formatted reports to email-friendly text","prompt":"I have a beautifully formatted Word report with tables and styling, but I need to send just the plain text version to our team via email so it's readable on mobile — can you strip all the formatting and pull out the text from this base64 DOCX? [base64string]"}],"resultDescription":"A JSON object containing the extracted plain text content from the DOCX file, with formatting stripped away, ready for further processing or display.","failureModes":["Invalid or corrupted base64 content returns an error","Non-DOCX file encoded as base64 may fail to parse","Missing content_base64 field returns a validation error","Extremely large documents may time out","Payment not included or insufficient USDC results in 402 response"],"whenToPreferThis":"Use this endpoint when you need to programmatically extract plain text from a Microsoft Word DOCX file, especially in automated pipelines where you already have the file as base64. Prefer this over OCR-based solutions when the document is a native Word file (not a scanned image). At $0.005 per call it is cost-effective for one-off or moderate-volume conversions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:43:09.395Z","isFirstParty":false}