← All posts

Markdown to Image (PNG / WebP) for Social Posts and Docs

Sometimes you do not need a PDF or a Word file — you need a picture of the Markdown: a README snippet for Slack, a changelog card for social, a formula block for a slide.

A markdown to image (PNG / JPEG / WebP) export captures the live preview as a shareable bitmap.

When image export wins

  • Social posts and chat previews that hate raw Markdown
  • Docs snippets where “looks like the preview” matters more than editable text
  • Quick shares of KaTeX formulas or Mermaid diagrams without shipping a whole PDF

For editable handoff use Markdown to DOCX. For print packages use Markdown to PDF.

Workflow

  1. Open Markdown to Image.
  2. Paste Markdown or bring a draft from the Editor.
  3. Confirm the live preview (tables, code, math, Mermaid).
  4. Pick format and size:
    • PNG — sharp default for UI and docs
    • JPEG / WebP — smaller files when you can trade lossless detail
    • Width (about 320–1600px), scale (1× / 2× / 3×), padding and background
  5. Download — or reopen the last result in a new tab when you need another save.

The capture runs in your browser from the on-page preview. Your draft does not need to be uploaded for the default path.

Practical settings

Goal Suggestion
Retina / crisp UI PNG + 2× scale
Smaller share file WebP or JPEG, quality ~90%
Narrow social card Width ~720 or less, tighter padding
Light theme share Keep a light background unless the post is dark

Scale increases file size roughly with the square of the factor — 3× looks sharp and can get heavy.

Clean, then capture

AI chat paste often looks noisy in a screenshot. Run Clean Markdown first so blank-line runs do not dominate the image.

Related tools

Write once in Markdown; ship a PNG or WebP when the channel wants a picture.