10 MB TXT sample file
A TXT file of exactly 10,485,760 bytes. It is a valid Plain text file, generated for this site and checked with an independent parser.
Download
sample-txt-10mb.txt
10 MB10,485,760 bytes
Download 10 MB TXTDirect download. No sign-up and no waiting.
- Type
- text/plain
- SHA-256
88ed4f6c7e8ab0ed41053330eed6a2ac5f8d33500e4ea018da4cb1edf0c8d0f2- Direct URL
https://sampletestfiles.com/downloads/txt/sample-txt-10mb.txt
What is in this file
105,488 numbered lines of plain English text, each prefixed with its line number and starting byte offset so truncation is easy to spot. A closing rule of "=" characters brings the file to the exact size.
| Numbered lines | 105,488 |
|---|---|
| Encoding | UTF-8 (ASCII characters only) |
| Line endings | LF (Unix) |
How the file begins
The opening lines of sample-txt-10mb.txt, exactly as they appear in the file.
SampleTestFiles sample text file (10 MB)
Encoding: ASCII, which is also valid UTF-8. Line endings: LF.
Each numbered line starts with its line number and the byte offset at which it begins.
0000001 000000191 This sample file exists so that software can be tested with realistic input.
0000002 000000286 Every line in this document was generated by a script and describes nothing confidential.
0000003 000000394 Use it to check that uploads, downloads and parsers behave the way you expect.
0000004 000000491 The file was built to an exact byte count, which makes size limits easy to verify.
0000005 000000592 If the last line of this file is missing, the transfer was cut short.
0000006 000000680 A good test fixture is boring, predictable and identical every time it is downloaded.
0000007 000000784 Compare the checksum published on the download page with the one you compute locally.Preview
Shows the first 64 KB of the file.
Where 10 MB matters
A 10,485,760-byte file: over the default limits of PHP, API Gateway and Spring Boot requests. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| Amazon API Gateway | 10 MB payload | A 10 MB file in a multipart or base64 body is over the limit. |
| Spring Boot multipart | 10 MB per request by default (max-request-size) | Exceeded once form overhead is added. |
| PHP | 8 MB POST body by default (post_max_size) | Rejected before the script runs. |
| Amazon S3 multipart upload | 5 MiB minimum part size | This file splits into exactly two minimum-sized parts. |
| Email attachments | Commonly 20 to 25 MB per message | 10 MB fits, at about 13.3 MB once encoded. |
Use this file for
- Exercising chunked and resumable uploads
- Checking encoding handling
- Testing line-ending normalisation
Testing notes for TXT
- Plain text compresses very well, so a 10 MB text file may travel as a fraction of that when gzip or Brotli is enabled. Use the BIN samples when you need incompressible bytes.
- Line endings change the byte count: converting LF to CRLF adds one byte per line, which breaks checksum comparisons.
Technical details
| File name | sample-txt-10mb.txt |
|---|---|
| Format | TXT (Plain text) |
| Extension | .txt |
| MIME type | text/plain |
| Size | 10,485,760 bytes (10 MB) |
| Kind | Text |
| SHA-256 | 88ed4f6c7e8ab0ed41053330eed6a2ac5f8d33500e4ea018da4cb1edf0c8d0f2 |
| Created | 2026-10-10 |
| Validation | Exact size, signature bytes and structure checked when the file was generated |
| Preview | Available on this page |
| Source | Generated for this site; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Documents |
Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked
Download from the command line and verify
Fetch the file with curl, then compare its checksum with the SHA-256 value above.
curl -o sample-txt-10mb.txt 'https://sampletestfiles.com/downloads/txt/sample-txt-10mb.txt'
sha256sum sample-txt-10mb.txt # Linux
shasum -a 256 sample-txt-10mb.txt # macOSOn Windows, run Get-FileHash sample-txt-10mb.txt -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.
Related files
Questions about this file
- Is this file exactly 10 MB?
- Yes. It is 10,485,760 bytes, which is 10 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 10 MB TXT file?
- 105,488 numbered lines of plain English text, each prefixed with its line number and starting byte offset so truncation is easy to spot. A closing rule of "=" characters brings the file to the exact size.
- Which encoding do the text samples use?
- The sized samples use only ASCII characters, which makes them valid UTF-8, ASCII and Latin-1 at once. A separate multilingual sample covers non-ASCII text.