Sample Document Files for Download — PDF, DOCX, XLSX, PPTX, ODT, RTF, TXT
14 formats · 40 files · direct links · no ads · free for any use
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).
Choose a format
Sample PDF files
Portable Document Format
Sample DOCX files
Microsoft Word (Office Open XML)
Sample DOC files
Microsoft Word 97–2003 binary
Sample RTF files
Rich Text Format
Sample ODT files
OpenDocument Text (LibreOffice Writer)
Sample XLSX files
Microsoft Excel (Office Open XML)
Sample XLS files
Microsoft Excel 97–2003 binary
Sample ODS files
OpenDocument Spreadsheet (LibreOffice Calc)
Sample PPTX files
Microsoft PowerPoint (Office Open XML)
Sample ODP files
OpenDocument Presentation (LibreOffice Impress)
Sample EPUB files
Electronic Publication (e-book)
Sample TXT files
Plain text (UTF-8)
Sample Markdown files
Markdown (.md)
Sample HTML files
HTML5 web page
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.