SwitchPDF

Markdown to PDF & Word

Paste Markdown, see a live preview, and export to .pdf (matches the preview exactly) or .docx (editable in Word). Tables, code blocks, lists, GFM supported.

Markdown
123 words · 759 chars

Files are processed on our server, deleted after 15 minutes, and never shared.

How Markdown to DOCX works

Markdown is the lingua franca of developer documentation. README files, blog posts, technical docs, design briefs, and meeting notes are almost always written in Markdown because the source is readable and the format renders well in every modern tool. But the rest of the world — clients, executives, lawyers, HR — wants finished documents: PDFs for sharing or Word files for editing. SwitchPDF's converter bridges that gap in one step.

The live preview on the right pane uses react-markdown with the remark-gfm extension, rendering as you type with the exact CSS that the PDF output will use. So what you see is what you'll get. When you click Convert to PDF, the server takes your Markdown, parses it through the same GFM pipeline, applies the same stylesheet (violet headings, bordered tables, dark code blocks, violet-accented blockquotes), and prints the result with headless Chrome. The PDF you download is visually identical to the preview, page-break-aware, A4-sized, and ready to send to anyone.

When you click Convert to DOCX, the server runs Pandoc — the gold-standard open-source document converter — against a custom reference template. The template defines style appearances for every Markdown construct: Heading 1–6 in violet with proper spacing, Body Text in Calibri 11pt, Source Code in Consolas with a light-gray background and violet left border, Block Text (blockquote) italicized in violet with a left accent bar, inline code in pink monospace. The result is a Word document that looks designed, not auto-generated.

Common use cases: converting a README to a styled PDF brief for a client; turning a blog post draft into a Word doc for an editor; sending technical documentation to non-technical stakeholders who want one file they can comment on; producing a printable report from internal Markdown notes; archiving documentation in a long-term-stable format.

How to use Markdown to DOCX

1

Paste Markdown or upload a .md file

Paste your Markdown directly into the editor, or drag-drop a .md file. A sample is pre-loaded so you can see the rendering working immediately.

2

Pick PDF or DOCX

PDF gives you a share-ready document that matches the preview exactly. DOCX gives you a styled Word file you can edit in Word, Google Docs, or LibreOffice.

3

Convert and download

Click Convert. PDF renders via headless Chrome; DOCX renders via Pandoc with a styled reference template. Both finish in a few seconds.

Frequently Asked Questions

What Markdown features are supported?
+
GitHub-Flavored Markdown: headings, bold/italic, code blocks (fenced and inline), tables, task lists, strikethrough, blockquotes, ordered/unordered lists, links, images, footnotes, and horizontal rules.
PDF or DOCX — which one should I pick?
+
PDF for sharing or printing — it matches the live preview exactly, opens everywhere, and looks the same on every device. DOCX for documents that need to be edited downstream in Word, Google Docs, or LibreOffice.
Does the PDF really match the preview exactly?
+
Yes. The server uses the same GFM parser and the same CSS, then renders via headless Chrome. The PDF is a pixel-faithful copy of what you see in the preview, sized to A4.
Does the DOCX output look styled or plain?
+
Styled. We ship a custom Pandoc reference template that defines violet headings, bordered tables, gray-background code blocks with violet left accents, and italic blockquotes. The result is far more polished than default Pandoc output.
Can I edit the DOCX in Word or Google Docs?
+
Yes. The output is a standard .docx file fully editable in Microsoft Word, Google Docs, LibreOffice Writer, and Pages. Our styles use built-in Word style names so they show up in the Styles pane.
How are code blocks rendered in DOCX?
+
Code blocks use a monospace font (Consolas), light gray background, and a violet left border. Inline code is pink monospace with a light gray highlight. Syntax highlighting itself is not preserved (Word lacks color tokens), but the visual treatment makes code blocks easy to spot.
What's the maximum input size?
+
5 MB of Markdown text. That's a massive document — even the longest README files rarely approach this.
Is the converter free?
+
Yes, completely free. No sign-up, no watermarks. Rate-limited to 20 DOCX conversions and 10 PDF conversions per 15 minutes per visitor.