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.
Generate custom TXT fileCreate up to 1GB locally in your browsersample-1kb.txt
50 lines
Verified file details
- Filename
- sample-1kb.txt
- Exact size
- 1,024 bytes
- Displayed size
- 1 KB
- MIME type
- text/plain
- Lines
- 50
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/txt/sample-1kb.txt
sample-10kb.txt
500 lines
Verified file details
- Filename
- sample-10kb.txt
- Exact size
- 10,240 bytes
- Displayed size
- 10 KB
- MIME type
- text/plain
- Lines
- 500
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/txt/sample-10kb.txt
sample-100kb.txt
5,000 lines
Verified file details
- Filename
- sample-100kb.txt
- Exact size
- 102,400 bytes
- Displayed size
- 100 KB
- MIME type
- text/plain
- Lines
- 5,000
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/txt/sample-100kb.txt
sample-1mb.txt
50,000 lines
Verified file details
- Filename
- sample-1mb.txt
- Exact size
- 1,048,576 bytes
- Displayed size
- 1 MB
- MIME type
- text/plain
- Lines
- 50,000
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/txt/sample-1mb.txt
sample-10mb.txt
500,000 lines
Verified file details
- Filename
- sample-10mb.txt
- Exact size
- 10,485,760 bytes
- Displayed size
- 10 MB
- MIME type
- text/plain
- Lines
- 500,000
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/txt/sample-10mb.txt
lorem-ipsum.txt
100 lines
Verified file details
- Filename
- lorem-ipsum.txt
- Exact size
- 2,708 bytes
- Displayed size
- 2.6 KB
- MIME type
- text/plain
- Lines
- 100
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/txt/lorem-ipsum.txt
words-list.txt
5,000 lines
Verified file details
- Filename
- words-list.txt
- Exact size
- 40,959 bytes
- Displayed size
- 40.0 KB
- MIME type
- text/plain
- Lines
- 5,000
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/txt/words-list.txt
numbers.txt
2,000 lines
Verified file details
- Filename
- numbers.txt
- Exact size
- 28,696 bytes
- Displayed size
- 28.0 KB
- MIME type
- text/plain
- Lines
- 2,000
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/txt/numbers.txt
empty.txt
Verified file details
- Filename
- empty.txt
- Exact size
- 0 bytes
- Displayed size
- 0 KB
- MIME type
- text/plain
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/txt/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
Why do you include an empty text file?
What encoding are these text files?
What is in the words-list.txt file?
What does the numbers.txt file contain?
Can I use the 10MB file for performance testing?
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.