Sample PDF Files
Download pre-generated PDF files or generate a custom-sized one — instantly, no sign-up required.
What is sample-pdf.com?
A free tool for developers, testers, and QA engineers who need PDF files of a specific size to test file uploads, APIs, storage systems, or email attachments. Choose a pre-generated file or generate any size up to 50 MB on demand. Nothing is stored on our servers.
Pre-generated files
Generate custom size
PDF Tools
HTML to PDF
Convert any HTML document to a PDF file — paste your code or upload an
.html file, preview the result live, and download a print-ready PDF. Supports CSS3, custom fonts, tables, flexbox and grid layouts.
PDF to Markdown
Extract text from any PDF and convert it to clean, structured Markdown. Detects headings, paragraphs, and page breaks. Download the result as a
.md file — ready for docs, wikis, or AI ingestion.
For developers & AI assistants
MCP Server
Works with Claude Desktop & Cursor
Use all PDF tools directly from Claude conversations — generate, convert, and download PDFs without opening a browser.
REST API
OpenAPI 3.0 — ChatGPT Actions compatible
Integrate PDF generation and HTML-to-PDF conversion into any app, AI agent, or automation workflow.