# MarkdownToPDF — Complete Documentation > Free, privacy-first Markdown to PDF converter that runs entirely in your browser. Website: https://markdowntopdf.in Author: Yogendra Singh (https://yogendrasingh.in) --- ## What is MarkdownToPDF? MarkdownToPDF is a modern web application that converts Markdown documents into beautifully formatted PDF files. It runs entirely in your browser — your documents never leave your device. There are no uploads, no servers processing your content, and no accounts required. ## Who is it for? - Developers writing technical documentation - Students formatting research papers with math equations - Writers who prefer Markdown for drafting content - Anyone who needs to convert Markdown to PDF quickly and privately ## Key Features ### Live Preview Real-time split-pane editor with resizable panels. See your Markdown rendered as you type with a side-by-side view. The panels can be resized to your preference. ### PDF Export Generate print-ready PDF documents using the browser's native print dialog. The exported PDFs include proper page breaks, styled headings, code blocks, tables, and more. ### KaTeX Math Support Full LaTeX math equation rendering via KaTeX. Supports both inline math ($E = mc^2$) and block equations. Perfect for academic papers, technical documentation, and scientific writing. ### Mermaid Diagrams Create visual diagrams directly in Markdown using Mermaid syntax. Supports flowcharts, sequence diagrams, Gantt charts, class diagrams, and more. ### Syntax Highlighting Code blocks are automatically highlighted with language-aware coloring. Supports 100+ programming languages including JavaScript, Python, TypeScript, Go, Rust, and more. ### GitHub Flavored Markdown (GFM) Full support for GFM extensions including: - Tables with alignment - Task lists (checkboxes) - Strikethrough text - Autolinked URLs - Line breaks ### Theme Support Three-mode theme support: Dark, Light, and System. The editor, preview, and exported PDFs all respect the selected theme. ### Copy for AI One-click copy of your Markdown content to clipboard, optimized for pasting into AI tools like ChatGPT, Claude, or Gemini. ### Drag & Drop Upload Upload existing Markdown files by dragging and dropping them onto the editor. Supports .md, .markdown, .mdx, and .txt file formats. ### Fullscreen Mode Toggle fullscreen mode for a distraction-free editing experience. The editor expands to fill the entire viewport. ### Local Storage Persistence Your content is automatically saved to the browser's local storage. Close the tab, come back later — your work is still there. ### Formatting Toolbar Built-in toolbar with buttons for common Markdown formatting: bold, italic, headings, links, images, code blocks, lists, and more. Includes undo/redo support. ## Privacy MarkdownToPDF is built with privacy as a core principle: - **No Data Collection**: We don't collect, store, or track any of your content. - **No Server Processing**: All conversion happens in your browser. Nothing is uploaded. - **No Tracking**: We only use minimal analytics (Google Analytics) to understand page visits — never your content. - **No Sign-ups**: No accounts, no email collection, no personal data required. ## How It Works 1. **Write or Upload**: Type Markdown in the editor or drag-and-drop a .md file. 2. **Preview Live**: See your content rendered in real-time with full formatting. 3. **Export PDF**: Click "Download PDF" to generate a print-ready document. ## Technical Details - Built with Next.js (App Router, static export) - Written in TypeScript - Styled with Tailwind CSS - Uses react-markdown for Markdown rendering - Uses KaTeX for math equations - Uses Mermaid for diagram rendering - Uses highlight.js for syntax highlighting - Hosted on Cloudflare Pages - Fully static — no backend server required ## Supported File Formats - Input: .md, .markdown, .mdx, .txt - Output: PDF (via browser print dialog) ## Browser Compatibility Works in all modern browsers: - Google Chrome (recommended) - Mozilla Firefox - Apple Safari - Microsoft Edge ## Frequently Asked Questions ### Is my data secure? Yes. Your data never leaves your browser. Everything is processed locally using JavaScript. ### Is MarkdownToPDF free? Yes, completely free. No premium features, no sign-ups, no usage limits. ### Can I use this offline? Once loaded, the core editing and preview features work offline. PDF export also works offline. ### What about math and diagrams? Full KaTeX math support (inline and block) and Mermaid diagram support (flowcharts, sequence diagrams, etc.). ### How is the PDF generated? The PDF is generated using your browser's native print functionality, ensuring consistent and high-quality output. --- Website: https://markdowntopdf.in About: https://markdowntopdf.in/about