Sample TXT Files — Plain Text Files for Testing
Download free sample text files from 0 KB (empty) to 10 MB. Includes lorem ipsum, English word lists, and number sequences. Perfect for testing text processing, file uploads, and edge cases.
sample-1kb.txt
50 lines
sample-10kb.txt
500 lines
sample-100kb.txt
5,000 lines
sample-1mb.txt
50,000 lines
sample-10mb.txt
500,000 lines
lorem-ipsum.txt
100 lines
words-list.txt
5,000 lines
numbers.txt
2,000 lines
empty.txt
How to use these sample text files
- Testing plain text file upload and processing
- Verifying text encoding handling (UTF-8)
- Testing text editors and viewers with large files
- Stress testing with 10MB text file (500K lines)
- Edge case testing with empty file (0 bytes)
- Placeholder content for development and demos
Technical specifications
| Encoding | UTF-8 |
| Line endings | LF (Unix-style) |
| Content types | Lorem ipsum, word lists, number sequences |
| Size range | 0 KB (empty) to 10 MB |
| Line counts | 0 to ~500,000 lines |
Frequently Asked Questions
Other document formats
Related reading
PDF Parsing and Text Extraction — A Practical Guide
Extract text, metadata, and structure from PDF files with pdf.js and pdf-parse. Handle scanned PDFs with OCR. Sample PDFs from 1KB to 100MB for every test case.
Testing Word and Excel Uploads in Production
Validating DOCX and XLSX uploads — size limits, macro detection, corrupted files, and viewer compatibility. Sample office files for every edge case.
Audio Upload Validation and Server-Side Transcoding
Validate audio uploads, check real format, and transcode with ffmpeg on the server. Sample MP3, WAV, OGG, and AAC files for every edge case.