Word to MarkdownКонвертер Word в Markdown

Developer API

Convert files to Markdown with one API

Automate document conversion in your scripts, workflows, and products. Upload a supported file and receive clean Markdown or plain text in a single request.

Authentication

Create an API key in your dashboard, then send it as a Bearer token or X-API-Key header. Keep keys server-side and never expose them in browser code.

curl -X POST https://www.word2md.net/api/v1/convert \
  -H "Authorization: Bearer sk-your-key" \
  -F "file=@./report.pdf" \
  -F "output_format=markdown"
Create an API key

Endpoints

POST /api/v1/convert

Convert a file

POST a multipart form with a file field (maximum 50 MB). Set output_format to markdown or text.

GET /api/v1/convert

Conversion capabilities

GET the endpoint to discover supported extensions, the file-size limit, and the current quota policy.

GET /api/v1/usage

Usage and quota

GET today’s API usage, plan, remaining allowance, and the next UTC reset time.

Supported file types

The API accepts common office documents, PDFs, spreadsheets, presentations, structured data, media, archives, and images.

.docx.doc.pdf.pptx.ppt.xlsx.xls.csv.tsv.html.htm.xml.json.txt.md.jpg.jpeg.png.gif.webp.bmp.tif.tiff.mp3.wav.mp4.mov.avi.zip

Quota and billing

Every account receives a daily API allowance. After the included allowance is used, successful conversions consume one credit from an active subscription balance or a one-time credit pack.

PlanDaily API allowanceOverage
Free50 / dayCredit pack
Pro500 / dayCredit pack
Pro+1,500 / dayCredit pack
UltimateIncludedIncluded

Response format

Successful conversions return the converted content, original filename, output format, credits charged, and updated usage.

{
  "success": true,
  "object": "conversion",
  "content": "# Report\n\n...",
  "format": "markdown",
  "filename": "report.pdf",
  "credits_charged": 0,
  "usage": { "tier": "free", "used": 1, "daily": 50, "remaining": 49 }
}

Errors and status codes

Errors are returned as JSON with a stable error code and a human-readable message.

401Missing or invalid API key
400Missing file, unsupported extension, or file too large
402Daily allowance and available credits are exhausted
500Conversion provider failed; paid credits are refunded automatically

Production best practices

  • Use HTTPS and store keys in environment variables
  • Validate file size before upload
  • Retry transient 5xx responses with exponential backoff
  • Read the usage object to track remaining quota
  • Remove sensitive files after processing

API frequently asked questions

What files can I convert?

Word, PDF, PowerPoint, Excel, CSV, HTML, XML, JSON, text, Markdown, images, audio, video, and ZIP files are supported where a compatible converter is available.

How does the free quota work?

Free accounts receive 50 API conversions per UTC day. Pro includes 500 per day, Pro+ includes 1,500 per day, and Ultimate is unlimited.

What happens after I reach my daily quota?

The API uses one credit per successful overage conversion from your subscription balance or credit pack. If no credits remain, it returns HTTP 402.

Are my API keys safe?

Treat keys like passwords: keep them on your server, use HTTPS, rotate them when needed, and revoke any key that may have been exposed.

Start building with Word2MD

Create a key, make your first conversion, and monitor usage from the dashboard.

Get started