Dummy File Generator
Create exact-size files filled with zeros, random bytes, repeated text or a hex pattern — streamed locally.
File settings
1,024 bytes exactGenerated file
No file generated yet
The exact byte count is shown before generation. Nothing is uploaded.
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
10 MB binary · zeros10,485,760 bytes · upload-test.binA compact, exact payload for testing a 10 MB upload limit.
Text pattern
1 KB · 'é' repeatedc3 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
Choose the size
Enter a value, a unit and whether KB means 1024 or 1000 bytes; the exact count updates immediately.
Pick a fill
Zeros, random bytes, repeating text or a hex pattern; provide the pattern when needed.
Generate
Press Generate file and check the exact byte count and first-bytes preview.
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
| Mode | Bytes |
|---|---|
| Zeros | 0x00 throughout — compresses well and is fastest to generate. |
| Random | Fresh crypto.getRandomValues bytes per chunk; incompressible, slower. |
| Text | UTF-8 encoding of the phrase tiled to exact byte length; multi-byte characters are handled byte-wise. |
| Hex | A 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
Related tools
ABA Routing Number Generator
Generate 9-digit US ABA routing numbers with weighted Mod-10 checks.
Address Generator
Generate realistic addresses in the correct format for 21 countries — single-line, multi-line, JSON or HTML — plus a postcode validator. Test data only, runs in your browser.
API Key Generator
Generate realistic test API keys — custom prefixes, lengths, alphabets, optional checksum, bulk .env/CSV export. Locally in your browser.
Argentina CUIT / CUIL Generator
Generate and validate 11-digit Argentine CUIT and CUIL numbers with AFIP Mod-11 check digits.
ASCII Text Art Generator
Turn text into large ASCII art banners with multiple figlet fonts
Australia ABN Generator
Generate and validate 11-digit Australian Business Numbers (ABN) using weighted Mod-89.