📝

Markdown to HTML API

Convert Markdown to clean, sanitized HTML. Supports GitHub Flavored Markdown (GFM), syntax highlighting, tables, and task lists.

API Endpoint

POST /v1/markdown

Parameters

Name Type Required Description
markdownstringYesMarkdown text to convert
gfmbooleanNoEnable GitHub Flavored Markdown (default: true)
sanitizebooleanNoSanitize output HTML (default: true)

Quick Example

curl -X POST "https://api.toolcenter.dev/v1/markdown" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"markdown": "# Hello World\n\nThis is **bold** text.", "gfm": true}'

Features

  • GitHub Flavored Markdown (GFM) support
  • Code syntax highlighting
  • Tables, task lists, and footnotes
  • HTML sanitization for security
  • Custom CSS class injection

Use Cases

Render markdown content in web apps

Build documentation sites

Convert README files to HTML

Preview markdown in CMS editors

Start Using Markdown to HTML API for Free

500 free API calls per month. No credit card required.

Get Started Free