Searchlight
Tools
BlogAbout
Free SEO Audit
Back to home
๐Ÿ“ˆSEO & Analytics
๐Ÿ—‚๏ธText & Data
๐Ÿ”Encoders & Decoders
โšกGenerators
๐Ÿ”„Converters
๐Ÿ–ผ๏ธImage Tools
๐Ÿ“„PDF Tools
PDF Merge / SplitPDF CompressPDF RotatePDF to ImageMarkdown to PDFPDF MetadataPDF InspectorPDF WatermarkPDF PasswordPDF Page Extractor
๐Ÿ’ปCode Tools
๐Ÿ”Regex & Parsing
๐ŸงฎCalculators
๐Ÿ—บ๏ธDiagrams
๐ŸŒNetwork & Web
โœ๏ธText Utilities
๐ŸŽจColor Tools
๐Ÿ”€Diff & Compare
148+ tools. OAuth is read-only.
Searchlight

148+ free SEO, developer, image, PDF, and productivity tools - no account needed.

Free ยท all tools included
Company
  • Blog
  • About
  • Free SEO Audit
Legal
  • Privacy Policy
  • Terms of Service
  • Cookie Policy

ยฉ 2026 Searchlight. All rights reserved.

Read-only OAuth ยท No data reselling ยท Completely free

Markdown to PDF

Write in Markdown and export a clean, paginated PDF with headings, lists, code blocks, and page numbers.

Markdown
Preview

About this tool

Convert HTML content to PDF - paste HTML or a URL and download a clean PDF rendition. Useful for generating invoices, reports, and printable pages from web content. Controls include page size (A4, Letter), margins, orientation, and header/footer templates. Runs entirely in the browser using pdf-lib.

How to Convert HTML to PDF

  1. 1Paste your HTML code or enter a public URL.
  2. 2Select paper size (A4 or Letter) and orientation.
  3. 3Set margins and optionally add a header/footer template.
  4. 4Click 'Generate PDF' to preview the output.
  5. 5Download the PDF file.

Frequently Asked Questions

Can I convert a web page URL to PDF?+
Yes. Enter the URL and the tool fetches the page content and renders it as PDF. Note that pages requiring login or JavaScript-heavy SPAs may not render completely - for those, use Chrome's built-in Print to PDF.
How do I control page breaks in the PDF?+
Add the CSS rule page-break-before: always or break-before: page to elements where you want a new page to start. Avoid placing page breaks inside tables or complex layouts.
What is the difference between A4 and Letter paper size?+
A4 (210x297mm) is the standard in Europe, Asia, and most of the world. Letter (216x279mm / 8.5x11 inches) is the standard in the US and Canada. A4 is slightly narrower and taller.
Can I add a header or footer to every page?+
Yes. Enter HTML for the header and footer templates. Use template variables like {page} for page number and {totalPages} for total pages. Font size and margins are configurable.
Looking for a deeper guide on this topic? Browse the Searchlight blog.
Visit the blog โ†’

Related tools

View all PDF Tools โ†’
PDF Merge / SplitMerge multiple PDFs or split into pagesPDF CompressReduce PDF file sizePDF RotateRotate pages in a PDF documentPDF to ImageConvert PDF pages to PNG / JPEG