Create a file of a specific size by entering an exact whole-number byte count from 1 through 52,428,800 bytes, choosing a content pattern, and downloading the browser-generated file.

A controlled size lets you reproduce upload-limit, storage-quota, progress-indicator, transfer, archive, checksum, and error-handling conditions without finding a real document of the same length. The Dummy File Generator creates that test artifact locally in the current browser tab.

Keep two distinctions in mind: byte length is not the same as disk allocation or compressed transfer size, and a file extension does not create a valid file format. The generated file contains raw test bytes, not a structurally valid image, PDF, archive, executable, or media stream.

create file of specific size
Create a File of Specific Size for App Testing

Choose the Content Pattern

The content mode determines how the bytes are produced. Choose it according to the behavior your test needs rather than by the requested extension.

Pattern Bytes Produced Best Fit Important Behavior
Zero bytes Every byte is 0x00 Predictable size and validation tests Compresses efficiently and creates a full logical file
Secure random bytes Browser-generated random data Transfer and checksum tests requiring difficult-to-compress content No seed is retained, so the output cannot be reproduced later
Repeated UTF-8 text The pattern encoded as UTF-8 and repeated toward the target Readable, patterned test content Ends at a complete Unicode code point and may use space padding

Zero mode writes only byte value 0x00. It is deterministic, easy to compress, and appropriate for checking size-based branches with predictable contents. It creates bounded zeroed parts rather than relying on a sparse-file feature, but the downloaded Blob still has the full requested logical length.

Secure random mode uses the browser Web Crypto getRandomValues API. The generator divides requests into chunks no larger than 65,536 bytes, fills every chunk, and then checks the assembled Blob. This mode is useful when transfer behavior or checksums should be tested with data that is difficult to compress. It has no retained seed, so a later run will not reproduce the same random file.

Repeated UTF-8 text mode encodes your pattern and repeats its bytes toward the target. The pattern must be nonempty, no longer than 10,000 UTF-16 code units, and contain no unpaired surrogates. Complete repetitions come first; a final partial repetition includes the longest prefix ending on a complete Unicode code point, with any remaining one-to-three bytes filled by ASCII spaces. For example, a one-byte request with an emoji-only pattern becomes one space rather than an invalid fragment of the emoji. No byte-order mark, newline, MIME header, or hidden metadata is added.

Generate the Exact-Size File

The browser workflow produces a downloadable normal file and verifies the result before publishing a download link.

  1. Enter the file name and byte count. Use a simple, safe name. For size, enter digits only: no sign, decimal point, exponent, comma, unit suffix, or surrounding whitespace. The accepted range begins at one byte and ends at exactly 52,428,800 bytes, which equals 50 MiB. That endpoint is accepted; one byte beyond it is rejected. An over-budget value remains visible so the generator can report the error explicitly.
  2. Select zero bytes, secure random bytes, or repeated UTF-8 text. In text mode, supply the pattern when prompted.
  3. Generate the Blob. The tool sums the constructed parts and checks the resulting Blob size against your requested value.
  4. Confirm the summary. Review the displayed logical byte count and the selected content policy before continuing.
  5. Download the file. Save the generated Blob and use it in the authorized upload, storage, archive, checksum, or transfer test.

Verify the File Before Testing

The summary is the quickest confirmation that the request produced the intended logical size. The generator performs both a part-total check and a final Blob-size check, and nothing is silently rounded, shortened, expanded, sampled, or capped.

  • The downloaded file is a normal Blob whose logical byte count matches the request.
  • A browser can rename a download when a same-named file exists or platform policy rejects the name; that does not change the generated bytes.
  • Editing the name, size, mode, or pattern clears the previous result and revokes its download URL.
  • Closing or editing the page revokes the in-memory URL, so regenerate the file if the link is no longer available.

Match the Mode to the Test

Use the same size but a different content mode to isolate a behavior:

  • Upload and attachment validation: Reproduce an accepted size, rejected size, progress update, or boundary error without placing personal information in the test file.
  • Storage quotas: Exercise quota checks and allocation paths with raw bytes that have no application-specific structure.
  • Download and transfer handling: Use random data when compression would hide the real transfer volume; use zeros or repeated text when deterministic content is more useful.
  • Archive behavior: Test how a workflow handles a file of a controlled logical length while remembering that an archive may compress long runs efficiently.
  • Checksum pipelines: Verify byte-reading and hashing paths with the selected content. A random run is appropriate for one-off hashing tests, but its output is not repeatable.
  • Application errors: Trigger size-specific error messages and validation states without pretending the payload is a valid business document.

Separate Logical Size from Stored Size

A Blob's size is the logical number of bytes in the file. That is the value the generator verifies and displays, not the number of filesystem allocation blocks or compressed bytes that may later be used.

Zero runs and repeated text can compress dramatically, so the file may occupy little physical space or transfer as a much smaller compressed payload. Random bytes are usually difficult to compress. The tool creates a normal logical file, but it cannot control how a file system, browser, transfer utility, or archive stores or compresses it. Keep this distinction when testing a requirement that concerns compressed transfer size rather than uncompressed file length.

Handle Names, Text, and File Types Carefully

Names are validated rather than silently changed. Empty names, leading or trailing whitespace, dot paths, forward or backward slashes, slash lookalikes, C0 and C1 control characters, zero-width or bidirectional formatting controls, Unicode line separators, punctuation reserved by common file systems, names ending in a dot, and Windows device names such as CON, NUL, COM1, and LPT1 are rejected. An accepted name is used unchanged in the download attribute, although it cannot guarantee that every operating system will accept every remaining Unicode name.

Text-mode length is measured in UTF-16 code units, while the output is encoded as UTF-8. ASCII, accented letters, CJK characters, and emoji do not all occupy the same number of bytes. Use the generator's reported result rather than estimating from character count.

Finally, keep the file type honest. Naming the download photo.png or document.pdf does not add PNG or PDF structures. Use raw dummy files only for size, storage, transfer, and error-path testing, and do not use them to bypass service limits or test systems without authorization.

Generate and Download Locally

Byte generation, Blob construction, object-URL creation, and downloading all happen in the current browser tab. The generated bytes, file name, and text pattern are not uploaded to Lizely or sent to another service. This local workflow avoids transferring a test pattern to a remote file-generation service.

Even with the 50 MiB ceiling, a generated file can consume memory and disk space. Avoid producing many large files across multiple tabs. Secure random mode is not encryption, password generation, secure erasure, or a guarantee that shared bytes remain secret; it simply supplies browser-generated random bytes for test data.