
Sample Document Files for Download — PDF, DOCX, XLSX, PPTX, ODT, RTF, TXT
14 formats · 42 files · direct links · no ads · free for any use
Choose a format
Sample PDF files
Portable Document Format7 files · 2 KB – 670 KBSample DOCX files
Microsoft Word (Office Open XML)4 files · 38 KB – 178 KBSample DOC files
Microsoft Word 97–2003 binary3 files · 28 KB – 67 KBSample RTF files
Rich Text Format2 files · 18 KB – 23 KBSample ODT files
OpenDocument Text (LibreOffice Writer)2 files · 4 KB – 4 KBSample XLSX files
Microsoft Excel (Office Open XML)4 files · 12 KB – 1.3 MBSample XLS files
Microsoft Excel 97–2003 binary3 files · 22 KB – 1.6 MBSample ODS files
OpenDocument Spreadsheet (LibreOffice Calc)2 files · 5 KB – 29 KBSample PPTX files
Microsoft PowerPoint (Office Open XML)3 files · 36 KB – 229 KBSample ODP files
OpenDocument Presentation (LibreOffice Impress)2 files · 2 KB – 2 KBSample EPUB files
Electronic Publication (e-book)2 files · 6 KB – 18 KBSample TXT files
Plain text (UTF-8)6 files · 1 KB – 100 MBSample Markdown files
Markdown (.md)1 file · 3 KBSample HTML files
HTML5 web page1 file · 4 KB
These are realistic business documents, not lorem ipsum: headings, paragraphs with Unicode and smart quotes, bullet and numbered lists, a data table, embedded images, page breaks, and document properties. Spreadsheets contain fictional orders with working formulas; presentations include speaker notes. All content is deterministic, so a file you download today is byte-identical to the one in your fixtures next year.
Use them to test document previewers, text extraction, conversion services, virus scanners, email attachments, and upload size limits. PDF variants cover the cases that break parsers: many pages, a fillable AcroForm, an A4 landscape page, and a password-protected file (password: test).
Frequently asked questions
Are the DOC, RTF and ODT files real, or renamed DOCX files?
They are real. The DOCX files are generated with python-docx and then converted to the legacy Word binary format, RTF and OpenDocument Text with macOS's built-in converter, so each file has the correct internal structure and magic bytes for its type. Note that the converted formats keep text and tables but drop embedded images.
What is the password for the protected PDF?
The user password is test (lower-case). It is encrypted with AES-256, which is what a modern PDF library will produce, so it is a fair test of whether your viewer or extraction service handles encrypted input.
Other sample file categories
Found a problem, or something that could be better? We read every message and we fix things quickly.