Modern Markdown and HTML to PDF converter with smart formatting and Notion export support. 100% free, open source, unlimited conversions.
- Dual Mode – Convert Markdown or HTML to PDF
- Smart Page Breaks – Intelligent layout to minimize white space
- Notion Support – Direct API import and nested ZIP export handling
- Live Preview – Real-time rendering as you type
- Custom Formatting – 11+ fonts, custom margins, line height, and footer text
- File Import – Drag & drop support for .md, .html, .txt, and .zip files
- Dark Mode – Full dark/light theme support
- GitHub Flavored Markdown – Tables, task lists, syntax highlighting
- Next.js 16 + TypeScript
- Tailwind CSS
- Puppeteer (PDF generation)
- React Markdown + GitHub Flavored Markdown
git clone https://github.com/Sterbweise/md2pdf.git
cd md2pdf
npm install
npm run devdocker-compose up -dSee DOCKER.md for details.
- Write or paste Markdown/HTML content
- Preview updates in real-time
- Click "Options" for formatting (fonts, margins, page size)
- Click "Export PDF"
Notion Import: Click "Import" and upload Notion HTML exports (ZIP files supported with nested archives)
MIT License - see LICENSE file for details
Free to use. Open source. Made with ❤️