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

File details and verification
Filename
sample-1kb.txt
Exact size
1,024 bytes
Displayed size
1 KB
Catalog status
Valid catalog fixture
SHA-256
2fb0355c02d601b9e549106a0a49d230f58ceb97f980a88b4819992f384a34d0
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
text/plain
Lines
50
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/txt/sample-1kb.txt

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-10kb.txt

10 KB

500 lines

File details and verification
Filename
sample-10kb.txt
Exact size
10,240 bytes
Displayed size
10 KB
Catalog status
Valid catalog fixture
SHA-256
54ab8bb5508b24502445dc5e4180b15c2f506e01775715b13208eb381b486001
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
text/plain
Lines
500
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/txt/sample-10kb.txt

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-100kb.txt

100 KB

5,000 lines

File details and verification
Filename
sample-100kb.txt
Exact size
102,400 bytes
Displayed size
100 KB
Catalog status
Valid catalog fixture
SHA-256
f6688eb1c989f2e953730165d408cce4b29a95681e7df941a31c5d858aec60dc
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
text/plain
Lines
5,000
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/txt/sample-100kb.txt

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-1mb.txt

1 MB

50,000 lines

File details and verification
Filename
sample-1mb.txt
Exact size
1,048,576 bytes
Displayed size
1 MB
Catalog status
Valid catalog fixture
SHA-256
1543ae4dcb6be154633ace1d28147faa9a873f28f411322272087cd738b5496d
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
text/plain
Lines
50,000
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/txt/sample-1mb.txt

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-10mb.txt

10 MB

500,000 lines

File details and verification
Filename
sample-10mb.txt
Exact size
10,485,760 bytes
Displayed size
10 MB
Catalog status
Valid catalog fixture
SHA-256
57ea00ca18b491d67135d53d92d79119c6d66f351ce9ed198d8e866df40289ff
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
text/plain
Lines
500,000
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/txt/sample-10mb.txt

See how TrueFileSize generates and measures sample files, or review the editorial policy.

lorem-ipsum.txt

2.9 KB

100 lines

File details and verification
Filename
lorem-ipsum.txt
Exact size
2,949 bytes
Displayed size
2.9 KB
Catalog status
Valid catalog fixture
SHA-256
9a403ced14686474a1f73b4b02aa88e2da046a72e1789960588877817c8367a5
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
text/plain
Lines
100
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/txt/lorem-ipsum.txt

See how TrueFileSize generates and measures sample files, or review the editorial policy.

words-list.txt

39.8 KB

5,000 lines

File details and verification
Filename
words-list.txt
Exact size
40,737 bytes
Displayed size
39.8 KB
Catalog status
Valid catalog fixture
SHA-256
88a2341e04ba167153f18c4d28941b44522f86ddc62f49935d858008298bba1b
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
text/plain
Lines
5,000
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/txt/words-list.txt

See how TrueFileSize generates and measures sample files, or review the editorial policy.

numbers.txt

28.0 KB

2,000 lines

File details and verification
Filename
numbers.txt
Exact size
28,657 bytes
Displayed size
28.0 KB
Catalog status
Valid catalog fixture
SHA-256
f0eb364947ec6ae73f8ec89b7c5136e5a1140df5063e8682b738d51662d4a13b
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
text/plain
Lines
2,000
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/txt/numbers.txt

See how TrueFileSize generates and measures sample files, or review the editorial policy.

empty.txt

0 KB
File details and verification
Filename
empty.txt
Exact size
0 bytes
Displayed size
0 KB
Catalog status
Intentionally empty (zero-byte test)
SHA-256
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Header signature
zero-byte fixture verified
Verified on
2026-08-10
MIME type
text/plain
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/txt/empty.txt

See how TrueFileSize generates and measures sample files, or review the editorial policy.

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