Skip to content

Markdown & HTML to PDF / Word Converter

Try for free

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.

📄 Markdown & HTML to PDF / Word Converter

Turn Markdown, HTML, web pages and Word files into polished PDF, Word (.docx), HTML or Markdown files in seconds. Paste text, add links, upload files or point it at a dataset: every document gets a download link, its page count and title. No login, no API keys, and the price is $4.88 per 1,000 files plus $0.00425 per run, platform usage included.

✨ Why use Markdown & HTML to PDF / Word Converter?

  • 🖨️ Print-quality PDFs — a real Chromium engine lays out every page: web fonts, CSS, SVG, emoji and right-to-left or Asian scripts print the way the browser shows them, with clickable links and a PDF outline (bookmarks) from the headings.
  • 📝 Markdown done right — GitHub-style tables, task lists, code blocks with syntax highlighting, footnotes, math ($...$), emoji, alerts and a YAML front matter title, styled with a clean GitHub, Report or Minimal look.
  • 📑 Word in and out — Markdown, HTML and web pages become editable .docx files with real headings, lists, tables and images; give it your own Word template for company fonts and colours. Word files become PDF, HTML or Markdown.
  • 🔢 Page numbers, headers and footers — Page {page} of {pages}, the title, the date or the address on every page, plus margins, paper size, landscape, scale and an optional table of contents.
  • 📦 Batches without code — many links, uploads, a JSON list of documents or a whole dataset (for example crawled pages in Markdown) in one run, converted in parallel.
  • 🛡️ Safe by design — pages and images are only fetched from the public internet; private and internal addresses are refused.

🎯 Use cases

  • 🧾 Invoices, quotes and reports — fill an HTML or Markdown template from your system and get one PDF per customer through the API.
  • 📚 Documentation to PDF — turn a GitHub README, a docs page or a changelog into a shareable PDF or Word file.
  • 🗄️ Archiving web pages — keep a dated PDF copy of a pricing page, a policy or an article.
  • 🤖 AI and content pipelines — save LLM-written Markdown as a branded PDF or Word document, or turn web pages and Word files into clean Markdown.
  • ✍️ Writers and students — write in Markdown and hand in a neatly formatted Word or PDF file with a table of contents.

🚀 How to use

  1. Paste your Markdown (or HTML), add links to pages and files, or upload files.
  2. Pick the output formats: PDF, Word, HTML and/or Markdown.
  3. Optional: set the paper size, margins, page numbers, header and footer, the document style or a table of contents.
  4. Click Start. Each created file appears as a row with a Download link.
  5. Export the list as JSON, CSV or Excel, or call the actor from the API, Make, Zapier or n8n.

📥 Input

FieldWhat it does
markdownMarkdown text to convert.
urlsWeb pages (rendered with JavaScript) and links to .md, .docx, .html or .txt files; GitHub, GitLab, Gist, Google Docs, Google Drive and Dropbox share links work too.
htmlHTML to print as it is, e.g. an invoice template.
filesUploaded Markdown, Word, HTML or text files.
outputFormatsAny of pdf, docx, html, markdown (default pdf).
pageSize, landscape, marginsPaper size (A4, Letter, Legal, A3, A5, A6, Tabloid, Ledger), orientation and margins such as 15mm or 20mm 15mm.
pageNumbers, headerTemplate, footerTemplatePage numbers and your own header and footer with {page}, {pages}, {title}, {date}, {url}.
theme, tableOfContents, customCssStyle of Markdown, Word and text documents, a table of contents and extra CSS.
wordTemplateUrlA .docx whose styles are used for the Word files.
documentsA JSON list of documents, each with a name and markdown, html, text, url or base64.
datasetId, datasetFieldConvert every row of one of your datasets.
{
  "markdown": "# Project Update\n\n| Task | Status |\n|---|---|\n| Design | Done |\n\n- [x] Requirements\n- [ ] Review",
  "urls": ["https://github.com/microsoft/playwright/blob/main/README.md"],
  "outputFormats": ["pdf", "docx"],
  "pageSize": "A4",
  "margins": "20mm 15mm",
  "footerTemplate": "Page {page} of {pages}",
  "tableOfContents": true
}

📤 Output

One row per created file:

FieldDescription
fileUrlDownload link of the file
fileNameFile name in the run's storage
outputFormatpdf, docx, html or markdown
pageCountNumber of pages (PDF)
fileSizeBytesFile size
titleFirst heading or page title
wordCountWords in the document
source, sourceTypeWhere the document came from (markdown, html, text, docx, webpage)
finalUrl, statusCodeAddress after redirects and HTTP status (links)
warningNotes, e.g. an image that could not be downloaded
status, error, errorCodeok, or why a document could not be converted
[
  {
    "index": 1,
    "source": "Markdown text",
    "sourceType": "markdown",
    "outputFormat": "pdf",
    "fileName": "project-update.pdf",
    "fileUrl": "https://api.scrape.ly/v2/key-value-stores/STORE_ID/records/project-update.pdf?signature=...",
    "mimeType": "application/pdf",
    "fileSizeBytes": 41446,
    "pageCount": 1,
    "title": "Project Update",
    "wordCount": 50,
    "finalUrl": null,
    "statusCode": null,
    "durationMs": 1482,
    "convertedAt": "2026-11-13T08:51:56Z",
    "warning": null,
    "status": "ok",
    "error": null,
    "errorCode": null
  },
  {
    "index": 2,
    "source": "https://github.com/microsoft/playwright/blob/main/README.md",
    "sourceType": "markdown",
    "outputFormat": "pdf",
    "fileName": "readme.pdf",
    "fileUrl": "https://api.scrape.ly/v2/key-value-stores/STORE_ID/records/readme.pdf?signature=...",
    "mimeType": "application/pdf",
    "fileSizeBytes": 240359,
    "pageCount": 7,
    "title": "🎭 Playwright",
    "wordCount": 1067,
    "finalUrl": "https://raw.githubusercontent.com/microsoft/playwright/main/README.md",
    "statusCode": null,
    "durationMs": 4238,
    "convertedAt": "2026-11-13T08:51:58Z",
    "warning": null,
    "status": "ok",
    "error": null,
    "errorCode": null
  }
]

💰 Pricing

  • $0.00488 per created file on the Free plan ($4.88 per 1,000), $0.00425 on Starter, $0.0033 on Scale and $0.00255 on Business.
  • $0.00425 per run start.
  • Platform usage (compute and proxy traffic) is included.
  • Each output format is its own file: one document as PDF and Word is 2 files. Documents that fail are free.

Example: 1,000 Markdown files to PDF on the Free plan ≈ $4.88 + $0.00425 ≈ $4.89.

❓ FAQ

Do I need a login or an API key? No. Pages and files must be public; private web apps that need you to sign in are not supported.

Is it legal? Converting your own documents is. For web pages, respect the site's terms and copyright when you store or share copies.

How many documents can I convert? As many as you like in one run: links, uploads, documents and dataset rows are processed in parallel and streamed to the results. At the default 2 GB a run makes about 3 small PDFs per second (1,000 in about 5 minutes); with 4 GB it makes about 7 per second.

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.

Can I schedule it or use the API? Yes. Start it from the API, a schedule or an integration, and read the file links from the dataset.

⚠️ Limits

  • Word to PDF keeps text, headings, lists, tables, images, links and footnotes, but not Word's exact page layout (text boxes, columns, page headers, table borders and colours).
  • Old .doc, .rtf, PowerPoint and Excel files are not supported; save them as .docx first. PDFs are not converted again; use the PDF Toolkit to merge, split or edit PDFs.
  • Web pages behind a login, paywall or CAPTCHA print what a visitor without an account sees.
  • A single PDF page can be at most 200 inches tall (a limit of the PDF engine); longer documents in "One long page" mode continue on more pages.
  • Files up to 100 MB each and images up to 25 MB each are read.
//From the blog\\

Latest articles

All articles

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.

No credit card. No setup calls.