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

# Convert Markdown to PDF API

Convert raw Markdown, uploaded files, or Markdown URLs into PDF. Get a downloadable file or a signed S3 URL back.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| 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 Uploads a Markdown file and returns a downloadable PDF file rendered from that input.… | 50 |
| POST | `/convert/md-file/pdf-url` | What it does Converts an uploaded Markdown file into a PDF and returns a signed S3 URL to the gener… | 50 |
| POST | `/md-raw-pdf-file` | What it does Converts raw Markdown content into a downloadable PDF file. You send the Markdown in t… | 50 |
| POST | `/md-raw-pdf-url` | What it does Converts raw Markdown content into a PDF and returns a signed S3 URL where the generat… | 50 |
| POST | `/convert/md-url/pdf-file` | What it does Converts a Markdown file available at a URL into a PDF and returns the generated PDF a… | 50 |

## About

## What it does
Markdown to PDF converts Markdown content into a PDF and gives you either a downloadable file or a signed S3 URL, depending on the endpoint you choose.

Send raw Markdown text, a Markdown file upload, or a URL that points to a Markdown resource. For URL-based conversion, the remote file must respond with `text/markdown` or `text/plain` and stay under 5 MB. For file uploads, the input must be `text/markdown`, `text/plain`, or a `.md` file, with a 3 MB limit. Raw Markdown accepts up to 5 MB.

Use Markdown to PDF when you need to render docs, README files, release notes, invoices, or generated reports into a shareable PDF format. The response is either a binary PDF download or a JSON object containing `data`, a signed S3 URL valid for 5 minutes.

Choose the output mode that fits your workflow: direct file download for immediate delivery, or a temporary URL when you want to store, forward, or process the generated PDF downstream.

## Usage

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