DevTools Logo

Dummy File Generator

Dummy File Generator

Create exact-size files filled with zeros, random bytes, repeated text or a hex pattern — streamed locally.

Runs in your browser
Try an example

File settings

1,024 bytes exact
Size system

Generated file

No file generated yet

The exact byte count is shown before generation. Nothing is uploaded.

Set a size, unit and binary/decimal system to see the exact byte count before generation. Four fill modes are available: zeros, cryptographically random bytes from crypto.getRandomValues, a UTF-8 text pattern tiled byte-exactly, or a repeating hex pattern. Bytes are built in 64 KB chunks and assembled into a Blob, so memory stays bounded and the last chunk is sliced to the exact target size. A soft cap warns above 1 GB and a hard cap stops generation above 2 GB. The hex preview shows the first 32 bytes; download uses the chosen filename.

Upload limit fixture

10 MB · binary · zeros · upload-test.bin

Produces exactly 10,485,760 bytes for testing a platform's upload cap.

Parser text fixture

1 MB · repeating text 'lorem ipsum dolor sit amet'

Tiles the UTF-8 bytes of the phrase, truncating the last tile so the file size is exact.

Hex pattern

DE AD BE EF repeated

Useful for checking alignment and endian handling in binary readers; the preview shows 'de ad be ef …'.

    Examples

    Upload cap fixture

    Input
    10 MB binary · zeros
    Output
    10,485,760 bytes · upload-test.bin

    A compact, exact payload for testing a 10 MB upload limit.

    Text pattern

    Input
    1 KB · 'é' repeated
    Output
    c3 a9 c3 a9 … (last byte truncated to hit 1024 exactly)

    UTF-8 tiling counts bytes, not characters, so multi-byte text stays size-exact.

    About this tool

    Dummy File Generator creates test files of an exact byte size without a terminal or an upload. Choose KB, MB or GB in binary (1024-based) or decimal (1000-based) units, pick a fill mode, and the tool shows the precise byte count before generating anything.

    Fills include zeros for upload-limit fixtures, WebCrypto random bytes for transfer benchmarks, repeating UTF-8 text for parser fixtures and repeating hex patterns for binary alignment tests. Generation tiles 64 KB chunks and slices the last one exactly, so the resulting Blob size matches the target. The file is assembled and downloaded entirely in the browser.

    What this tool does not do

    • Hard cap is 2 GB; some browsers cannot allocate Blobs that large.
    • Random fill is significantly slower than zeros because each chunk is filled by the CSPRNG.
    • Checksums are not computed; verify the exact byte count shown after generation instead.
    • Generated files are held in memory until downloaded or the page is closed.

    How to use this tool

    1. Choose the size

      Enter a value, a unit and whether KB means 1024 or 1000 bytes; the exact count updates immediately.

    2. Pick a fill

      Zeros, random bytes, repeating text or a hex pattern; provide the pattern when needed.

    3. Generate

      Press Generate file and check the exact byte count and first-bytes preview.

    4. Download

      Use the download button with your chosen filename; no file contents leave the tab.

    Use cases

    Test upload limits

    Generate boundary-size files for QA around a platform's maximum upload size.

    Benchmark transfers

    Use incompressible random bytes to measure real network throughput.

    Probe parsers

    Fill a file with a known text or hex pattern to verify alignment and chunk handling.

    Fill modes

    ModeBytes
    Zeros0x00 throughout — compresses well and is fastest to generate.
    RandomFresh crypto.getRandomValues bytes per chunk; incompressible, slower.
    TextUTF-8 encoding of the phrase tiled to exact byte length; multi-byte characters are handled byte-wise.
    HexA repeating byte pattern such as DEADBEEF; separators and whitespace are ignored.

    1 MiB = 1,048,576 bytes while 1 MB decimal = 1,000,000 bytes; the UI always displays the exact target before generation.

    Common mistakes

    Mistake:Confusing MiB with MB.

    Fix:Use the binary/decimal toggle and read the exact byte count before generating.

    Mistake:Using random bytes as secrets.

    Fix:The bytes are cryptographically random but are generated for transfer tests; never reuse them as keys.

    Mistake:Requesting a multi-gigabyte file on a mobile browser.

    Fix:The tool warns above 1 GB and caps at 2 GB because browser Blob limits vary.

    Frequently asked questions

    How do I create a file of an exact size?

    Choose the numeric size, a unit and the binary or decimal system, then press Generate. The panel shows the exact byte count before and after generation; the last chunk is sliced so the Blob size matches the target exactly.

    What is the difference between binary MB and decimal MB?

    In binary mode 1 MB means 1,048,576 bytes (a MiB); in decimal mode it means 1,000,000 bytes. The exact byte readout removes the ambiguity, so pick whichever convention your test requires.

    Why use random bytes for speed tests?

    Zeros compress extremely well, so a transfer of zeros can report unrealistic throughput if any layer compresses. Random bytes are incompressible and exercise the real bandwidth. They come from WebCrypto but should never be reused as secrets.

    What is the maximum file size?

    The tool warns above 1 GB and refuses sizes over 2 GB because browser Blob limits vary by platform. For larger fixtures use operating-system tooling such as dd or sparse files.

    Are the random bytes cryptographically random?

    Yes — each chunk is filled with crypto.getRandomValues. They are suitable for benchmark and fixture work, but generated files are not managed as secret material; do not use them as keys or passwords.

    References & standards