Skip to content
>_ TrueFileSize.com

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 browser

sample-1kb.txt

1 KB

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

10 KB

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

100 KB

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

1 MB

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

10 MB

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

2.6 KB

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

40.0 KB

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

28.0 KB

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

0 KB
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

EncodingUTF-8
Line endingsLF (Unix-style)
Content typesLorem ipsum, word lists, number sequences
Size range0 KB (empty) to 10 MB
Line counts0 to ~500,000 lines

Frequently Asked Questions

Why do you include an empty text file?
Empty files (0 bytes) are a common edge case that breaks many file processing systems. They're useful for testing that your upload handler, parser, or preview component doesn't crash on empty input.
What encoding are these text files?
All files use UTF-8 encoding with Unix-style line endings (LF). UTF-8 is the universal standard supported by all modern systems, editors, and programming languages.
What is in the words-list.txt file?
A list of 5,000 common English words, one per line. Useful for testing search indexing, autocomplete, spell-checking, and text analysis tools.
What does the numbers.txt file contain?
2,000 lines of number sequences — integers, decimals, and formatted numbers. Useful for testing numeric parsing, CSV-like processing, and data validation.
Can I use the 10MB file for performance testing?
Yes. The 10MB file has ~500,000 lines of text. It's large enough to stress test text editors, file readers, line-by-line parsers, and streaming file processors.

Other document formats

Related reading