Skip to content
app.shubraj.com

Test File Generator

Create files of an exact byte size to test uploads and limits. PDFs, images, ZIPs and audio are valid files that open normally.

A real one-page PDF that opens in any viewer.

Type a different extension, like invoice.docx, to test type checks.

5,242,880 bytes

Dummy Files for Upload and Limit Testing

Testing a 5 MB upload limit needs files at exactly 5 MB, one byte under and one byte over. Pick a type and size, and the file is built in your browser with its size accurate to the byte. Valid formats stay valid, with padding hidden in comments or metadata.

What you can do

  • Exact sizes from 0 bytes to 256 MB in bytes, KB, MB or GB.
  • Valid PDF, PNG, JPG, ZIP, WAV, CSV and JSON files, plus text and raw binary.
  • Boundary test: limit −1 byte, exactly the limit, and limit +1 byte in one click.
  • Random or zero-filled content, and an editable file name to test extension checks.

Good to know

  • Choose whether 1 KB means 1024 or 1000 bytes. Many limits use 1024, and cloud storage often uses 1000.
  • Rename a raw file to .docx or .mp4 to check how your app handles files whose contents don’t match their extension.
  • Files are created in memory in your browser. Very large sizes need free RAM.
  • Nothing is uploaded or stored.

Frequently asked questions

How do I create a file of exactly 5 MB?

Pick a type, enter 5 and MB, and press Generate. The result is exactly 5,242,880 bytes, or 5,000,000 if you choose the 1000-based option.

Will the PDF or image open normally?

Yes. PDFs, PNGs, JPGs, ZIPs and WAVs are valid files, padded in hidden areas so their size is exact.

What is the boundary test?

It makes three files at one byte under, exactly at, and one byte over your limit, which is the classic way to test an upload limit.

What is the largest file I can make?

256 MB, because files are built in your browser’s memory.