---
title: Convert Markdown to PDF API
slug: markdown-to-pdf
url: https://apyverse.com/apyhub/service/markdown-to-pdf
provider: ApyHub
categories: [File Conversion]
tags: [markdown, pdf-conversion, document-export, file-conversion, report-generation]
auth: api_key
---

# Convert Markdown to PDF API

Convert raw Markdown, uploaded files, or Markdown URLs into PDF. Get a binary download or a signed S3 URL for reports and document exports.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/convert/md-url/pdf-file` | What it does Converts a Markdown file available at a URL into a PDF and returns the rendered docume… | 50 |
| POST | `/convert/md-url/pdf-url` | What it does Converts a Markdown file available at a URL into a PDF and returns a signed S3 URL for… | 50 |
| POST | `/convert/md-file/pdf-file` | What it does Converts an uploaded Markdown file into a PDF and returns the generated PDF as a downl… | 50 |
| POST | `/convert/md-file/pdf-url` | What it does Converts an uploaded Markdown file into a PDF and returns a signed S3 URL for the gene… | 50 |
| POST | `/md-raw-pdf-file` | What it does Converts raw Markdown content into a PDF file and returns the rendered PDF as download… | 50 |
| POST | `/md-raw-pdf-url` | What it does Converts raw Markdown content into a PDF and returns a signed S3 URL for the generated… | 50 |

## About

## What it does
Markdown to PDF converts Markdown content into a downloadable PDF or a signed S3 URL. Send raw Markdown, a file upload, or a URL that points to a Markdown document, and you get the rendered PDF back in the format you choose.

Use the raw Markdown endpoints when your application already has the content in memory. The request body is the Markdown text itself, and the response is either a binary PDF download or a JSON object containing a `data` field with a signed S3 URL valid for 5 minutes. Use the file and URL endpoints when you want to convert an existing `.md` file or a remote Markdown resource instead.

The input limits are explicit: raw Markdown accepts up to 5 MB, URL-based conversion requires a remote resource served as `text/markdown` or `text/plain` and capped at 5 MB, and file uploads must be `text/markdown`, `text/plain`, or a `.md` file up to 3 MB. That makes Markdown to PDF a good fit for generating reports, documentation exports, or customer-facing handouts from content your system already stores as Markdown.

Choose the download response when you want to stream the PDF directly to a user, or the signed URL response when a downstream service needs to fetch the generated file later.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/markdown-to-pdf
