3 MB TXT sample

A TXT file of exactly 3,145,728 bytes. It is a valid Plain text file, generated by this site. Compare its checksum and test it with the parser used by your application. Use it wherever you need a 3 MB sample, test or dummy TXT file.

Download

sample-txt-3mb.txt

3 MB3,145,728 bytes

Download 3 MB TXT

Created in your browser in a few seconds, then checked against the SHA-256 checksum. No sign-up.

Type
text/plain
SHA-256
1ae86e1e2cf4884f87b7159b5ae13e2ba467093db174253775f37c2d5e9e0941
Delivery
Created in your browser from static generator assets (how it works).

What is in this file

30,951 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 lines30,951
EncodingUTF-8 (ASCII characters only)
Line endingsLF (Unix)

How the file begins

The opening lines of sample-txt-3mb.txt, exactly as they appear in the file.

00000000  53 61 6d 70 6c 65 54 65  73 74 46 69 6c 65 73 20 |SampleTestFiles |
00000010  73 61 6d 70 6c 65 20 74  65 78 74 20 66 69 6c 65 |sample text file|
00000020  20 28 33 20 4d 42 29 0a  45 6e 63 6f 64 69 6e 67 | (3 MB).Encoding|
00000030  3a 20 41 53 43 49 49 2c  20 77 68 69 63 68 20 69 |: ASCII, which i|

Preview

Creates the file in your browser and shows its first 64 KB.

Where 3 MB matters

A 3,145,728-byte file, 3 MB in the binary units that operating systems and upload limits use. It is useful wherever a form, an API gateway, a storage quota or a mail server is configured with a limit of about this size.

All 3 MB sample files

Use this file for

  • Finding out whether a 1 MB default has been raised
  • 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.

TXT format reference

Technical details

File namesample-txt-3mb.txt
FormatTXT (Plain text)
Extension.txt
MIME typetext/plain
Size3,145,728 bytes (3 MB)
KindText
SHA-2561ae86e1e2cf4884f87b7159b5ae13e2ba467093db174253775f37c2d5e9e0941
Created2026-10-23
ValidationSee the listed size and SHA-256. Small downloads are checked in the browser; verify streamed downloads manually. A hash match does not prove parser compatibility.
PreviewAvailable on this page
SourceGenerated in your browser by this site's generator; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryDocuments

Check the stated structure and checksum against your application requirements. As with any download, scan the file with your own security tools before opening it. How files are made and checked

Verify your copy

This file is created in your browser, so it has no direct URL for curl or wget. The generator is designed to produce reproducible bytes. After saving, compare the checksum with the SHA-256 value above.

sha256sum sample-txt-3mb.txt     # Linux
shasum -a 256 sample-txt-3mb.txt # macOS

On Windows, run Get-FileHash sample-txt-3mb.txt -Algorithm SHA256 in PowerShell. For scripts and pipelines, save the file once and keep your own copy.

Related files

Questions about this file

Is this file exactly 3 MB?
Yes. It is 3,145,728 bytes, which is 3 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
What is inside the 3 MB TXT file?
30,951 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.