Markdown to PNG
A full capture of the document at A4 width — double resolution on request — for places a PDF won't open.
How it works
- Write or paste Markdown in the studio, or send it from a terminal or your agent.
- The md2 engine reads the document once and detects each paragraph's direction.
- A PNG file is built and downloads right away.
When to use it
- Share a table or formula in a chat
- A social image of an article
- Preview a document in an app without PDF support
Right-to-left Arabic
The capture is taken after right-to-left layout, so Arabic lines are never cut at the start.
Try it now
curl
curl -X POST https://md2.dev/v1/convert \
-H "Content-Type: application/json" \
-d '{"markdown":"# Report\n\nHello from md2","format":"png"}' \
-o document.png MCP tool
{
"tool": "convert",
"arguments": {
"markdown": "# Report\n\nHello from md2",
"format": "png"
}
} Common questions
- How wide is the image?
- 794 px by default (A4 width), adjustable from 320 to 2400 with 2× scale.
- Does it include the whole document?
- Yes, up to the browser's 16,384 px capture limit.
- Do diagrams show up?
- Yes, Mermaid is drawn before the capture.