Document Format Converter — Markdown, HTML & Text
Pricing
from $5.20 / 1,000 document converteds
Document Format Converter — Markdown, HTML & Text
Convert Markdown, HTML, plain text, JSON, and CSV-style documents into clean automation-ready formats with downloadable output files.
Pricing
from $5.20 / 1,000 document converteds
Rating
0.0
(0)
Developer
junipr
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Convert documents between Markdown, HTML, EPUB, DOCX, PPTX, PDF, and more — powered by Pandoc, the universal document conversion engine.
What does Document Format Converter — Markdown, HTML & Text do?
This actor wraps the Pandoc document converter to provide a simple, API-accessible way to convert between dozens of document formats on Apify. No need to install Pandoc locally or manage command-line arguments — just provide your source text (or a URL to fetch from), pick your input and output formats, and get the converted document back.
Supported input formats: Markdown, HTML, reStructuredText, LaTeX, Textile, Org Mode, MediaWiki
Supported output formats: HTML, Markdown, EPUB, DOCX (Word), PPTX (PowerPoint), PDF, reStructuredText, LaTeX, Plain Text
Key Features
- Universal conversion — 7 input formats × 9 output formats = 50+ conversion pairs
- Real Pandoc engine — not a JS polyfill. Full Pandoc binary with LaTeX support for PDF output
- Fetch from URL — provide a URL and the actor fetches the source content automatically
- Table of contents — auto-generate TOC for HTML, EPUB, and DOCX output
- Standalone or fragment — get a complete document or just the converted body
- Advanced mode — pass custom Pandoc CLI arguments for full control
- Binary output support — EPUB, DOCX, PPTX, and PDF files saved to key-value store with correct MIME types
- Cost controls — source content defaults to a 250,000 character cap and can be raised to 1,000,000 characters per run
How to Use
Basic: Convert Markdown to HTML (zero config)
Run with no input to convert a built-in Markdown document to HTML.
Convert HTML to Markdown
{"sourceUrl": "https://example.com/page.html","inputFormat": "html","outputFormat": "markdown"}
Convert Markdown to EPUB
{"sourceText": "# My Book\n\n## Chapter 1\n\nOnce upon a time...","inputFormat": "markdown","outputFormat": "epub","tableOfContents": true}
Convert to Word Document
{"sourceText": "# Report Title\n\n## Summary\n\nKey findings...","inputFormat": "markdown","outputFormat": "docx"}
Input Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
sourceText | string | Built-in Markdown | Source document text to convert |
sourceUrl | string | — | URL to fetch source content (overrides sourceText) |
inputFormat | enum | markdown | Source format: markdown, html, rst, latex, textile, org, mediawiki |
outputFormat | enum | html | Target format: html, markdown, epub, docx, pptx, pdf, rst, latex, plain |
standalone | boolean | true | Produce a complete standalone document |
tableOfContents | boolean | false | Include auto-generated table of contents |
customArgs | string | — | Additional Pandoc CLI arguments for advanced users |
maxSourceCharacters | integer | 250000 | Maximum source characters per run, capped at 1,000,000 |
Output
Text formats (HTML, Markdown, RST, LaTeX, Plain): Output is included directly in the dataset and saved to the key-value store.
Binary formats (EPUB, DOCX, PPTX, PDF): Output is saved to the key-value store. The dataset entry contains metadata including the key-value store key to access the file.
Example Output (Markdown → HTML)
{"inputFormat": "markdown","outputFormat": "html","inputLength": 842,"outputType": "text","outputLength": 1456,"outputKey": "OUTPUT.html","output": "<!DOCTYPE html>...","standalone": true,"tableOfContents": false,"convertedAt": "2026-03-11T12:00:00.000Z"}
Use Cases
- Documentation pipelines — Convert Markdown docs to HTML, EPUB, or PDF for distribution
- Content migration — Transform HTML pages to Markdown for static site generators
- Report generation — Convert Markdown reports to Word or PowerPoint
- E-book creation — Build EPUB files from Markdown manuscripts
- Format standardization — Convert MediaWiki, RST, or Org Mode content to Markdown
How much does it cost?
This actor uses pay-per-event pricing with the document-converted event. Each successful document conversion is one billable event in the live Store pricing entry.
Can I convert very large documents?
The actor defaults to 250,000 source characters and supports up to 1,000,000 characters per run. Conversion timeout is 300 seconds. For very large or complex LaTeX documents, split the source into smaller runs.
What version of Pandoc is used?
The actor uses the Pandoc version available in the Debian repositories (typically 2.x+). For most conversions this is fully sufficient. If you need a specific Pandoc version or feature, mention it in the customArgs field.
Pricing
This actor uses Pay-Per-Event (PPE) pricing with the document-converted event: $5.20 per 1,000 documents converted ($0.0052 per document) in the live Store pricing entry.
Apify platform usage follows the live Store pricing entry.
Related Actors
- Markdown to HTML Converter — Specialized Markdown→HTML with syntax highlighting and themes
- PDF to HTML Converter — PDF→HTML with layout preservation
- PDF to Text Extractor — Extract text from PDFs
- PDF OCR Tool — OCR extraction from scanned PDFs
- JSON to CSV Converter — Convert JSON data to CSV