Markdown, GFM & Custom CSS

Convert Markdown to Beautiful PDFs

Transform Markdown documents into professionally styled PDFs. Full GitHub Flavored Markdown support with tables, code blocks, task lists, and custom CSS styling.

cURLPythonNode.jsn8n
# Convert Markdown to PDF
curl -X POST \
  https://api.convertfilefast.com/v2/convert/markdown-to-pdf \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "# Project Report\n\n## Summary\n\n| Metric | Value |\n|--------|-------|\n| Users | 1,234 |",
    "css": "body { font-family: Georgia, serif; line-height: 1.6; }",
    "options": {"page_size": "A4"}
}' \
  --output report.pdf

# HTTP 200 OK — Content-Type: application/pdf
Conversion completed in <2s

Advantages

Why use our API?

Complete and reliable solution for integration in any tech stack.

GitHub Flavored Markdown

Full GFM support: tables, task lists, strikethrough, code blocks with syntax highlighting.

Custom CSS Styling

Apply your own CSS to control fonts, colors, spacing, and layout of the output PDF.

Multiple Input Methods

Send raw Markdown string, upload a .md file, or fetch from URL.

Code Block Rendering

Syntax-highlighted code blocks preserve formatting perfectly in PDF output.

Page Configuration

Set page size, orientation, and margins for professional document output.

Batch Processing

Convert multiple Markdown files in automated workflows with n8n or scripts.

Start Converting Markdown to PDF

Get your API key and convert Markdown documents to PDF in seconds. Free plan includes 10 conversions per month.

No credit card. 10 free conversions on Free plan.