Markdown to Text API - Free Plain Text Converter
Removes all Markdown syntax (headings, bold, italics, links, images, code blocks) and returns clean plain text. The output preserves paragraph structure and spacing.
Code examples
curl -X POST https://api.botoi.com/v1/markdown/to-text \
-H "Content-Type: application/json" \
-d '{"markdown":"# Hello\n\nThis is **bold** and [a link](https://botoi.com)."}'When to use this API
Index Markdown content for full-text search
Strip formatting before feeding content into Elasticsearch or Algolia so search queries match the visible text, not Markdown syntax.
Generate plain-text email previews
Convert Markdown email templates to plain text for the text/plain MIME part that email clients fall back to.
Frequently asked questions
Are link URLs preserved in the output?
No. Links are replaced with their display text only. The URL is stripped.
Does this handle HTML mixed into the Markdown?
Yes. Inline HTML tags within the Markdown are also stripped, leaving only the text content.
How are code blocks handled?
Fenced and inline code blocks have their backticks removed. The code content itself is preserved as plain text.
Is paragraph spacing preserved?
Yes. Paragraph breaks (double newlines) are kept in the output so the text remains readable.
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.