Word to HTML and Markdown, Markdown to Word
Turns a .docx into HTML and Markdown with its images, and makes a Word file from Markdown using a Word template's styles.
Updated November 13, 2026
What this example returns
The dataset’s “Files” view shows 12 columns: Download, File, Format, Pages, Size (bytes), Title, Source, Source type, Words, Notes, Status, and Error. See every output field.
What each setting does
The input this example runs Markdown & HTML to PDF / Word Converter with. “Try this input” opens it in the console, where you can run it as-is or change any field first.
- Markdown
markdown # Weekly summary - Revenue up 4% - Two new customers | Metric | Value | |---|---| | Orders | 312 |
Markdown to turn into a document: GitHub-style tables, task lists, code blocks with highlighting, footnotes, math ($...$), emoji and a YAML front matter title. Leave empty to convert only links, uploads or documents.
- Links to pages and files
urls https://raw.githubusercontent.com/jgm/pandoc/3.9/test/docx/image.docx
Web pages (opened in a real browser, JavaScript included) and links to Markdown (.md), Word (.docx), HTML or text files. GitHub, GitLab and Gist file pages, Google Docs shared publicly and Google Drive or Dropbox share links are read as files. One document per link.
- Output formats
outputFormats html, markdown, docx
Files to create from each document: PDF, Word (.docx), styled HTML or Markdown. Pick several to get each format; a format the source already has is skipped (a Word file is not turned into Word again).
Default: pdf → this example uses html, markdown, docx
- Document style
theme Minimal
GitHub: clean sans-serif like a README. Report: serif body text for reports and papers. Minimal: plain and compact. None: browser defaults.
Default: GitHub → this example uses Minimal
- Word template link
wordTemplateUrl https://raw.githubusercontent.com/jgm/pandoc/3.9/test/docx/metadata.docx
Link to a .docx file whose styles (fonts, colours, headings, margins) are used for the Word files.
{
"urls": [
"https://raw.githubusercontent.com/jgm/pandoc/3.9/test/docx/image.docx"
],
"markdown": "# Weekly summary\n\n- Revenue up 4%\n- Two new customers\n\n| Metric | Value |\n|---|---|\n| Orders | 312 |\n",
"outputFormats": [
"html",
"markdown",
"docx"
],
"theme": "minimal",
"wordTemplateUrl": "https://raw.githubusercontent.com/jgm/pandoc/3.9/test/docx/metadata.docx"
}What it costs
You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.
- File createdfrom $0.001464One created PDF, Word, HTML or Markdown file with its download link. Each output format of a document is its own file; documents that cannot be converted are free.
- Actor startfrom $0.001275Charged once per run.
When to use this example
From the Markdown & HTML to PDF / Word Converter readme:
What if an image or a page does not load?
The file is still created; the row's warning says which images were missing. A page that cannot be opened gives an error row and is not charged.
Can I use my company's fonts and colours?
Yes: use customCss for PDF and HTML, and wordTemplateUrl (a .docx with your styles) for Word files.
Other ways to run Markdown & HTML to PDF / Word Converter
- Markdown and Word files to PDF and WordPasted Markdown, a GitHub README and a .docx file as styled PDFs with a table of contents and a page footer, plus Word copies.
- Web pages to PDF, Markdown and HTMLPrints web pages as landscape PDFs with the address in the header and saves Markdown and static HTML copies.
- HTML invoice and a batch of documentsPrints an HTML invoice template and a list of HTML, Markdown and text documents as PDFs and Word files with a file name prefix.
About Markdown & HTML to PDF / Word Converter
Turn Markdown, HTML, web pages and Word files into polished PDF, Word (.docx), HTML or Markdown files. Tables, code highlighting, math, page numbers, headers and footers, table of contents and Word templates. Paste text, add links, upload files or convert a dataset.
- Price:
- From $1.46 / 1,000 results
- Developer:
- Toolwright
- Categories:
- Developer tools, Automation, Other
Markdown & HTML to PDF / Word Converter pageOutput fieldsPricing
Related actors
Latest articles
GuidesWeb Scraper Chrome Extensions: 4 Good Ones, and When to Use a Cloud Scraper
The best web scraper Chrome extensions in 2026 (Web Scraper, Instant Data Scraper, Data Miner and Evomi Web Data), what each is good at, where every extension stops, and how a cloud scraper takes over for schedules, thousands of pages and API access.
Read the article
AI agents12 Best MCP Servers in 2026: Web Data, Code, Docs and Browsers
The best MCP servers in 2026, grouped by job: web data, documentation, code, browsers, errors, databases and the official reference servers. Each with its hosted URL or install command, how it signs in, and the caveats its own README states.
Read the article
Guidesn8n Puppeteer Node: Puppeteer and Playwright in n8n Without Self-Hosting Chrome
The n8n Puppeteer node needs Chromium inside your n8n container and installs only on self-hosted n8n. How it and the Playwright nodes install, where they break, and how to run the same browser scrape on Scrape.ly from n8n instead, with a real tested run.
Read the article
The internet is full of data.
Start owning yours.
Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.