Sample & Dummy File Generator — Any Size, Any Format
Create valid test files of an exact size in 22 formats — text, data, code, images, audio, PDF and ZIP.
A sample file generator creates valid, openable test files at a size you choose. Pick a format — text, CSV, JSON, XML, SQL, code, PNG, GIF, WAV, PDF or ZIP — set the target size and how many files you need, and each one is built in your browser to that exact byte count.
Runs in your browser- Formats
- 22 — TXT, MD, LOG, CSV, TSV, JSON, NDJSON, XML, YAML, SQL, HTML, JS, TS, PY, ENV, PNG, BMP, GIF, WAV, PDF, ZIP and raw BIN
- Size range
- 1 byte to 64 MB per file, up to 256 MB per batch
- Batch size
- Up to 200 files per run, optionally varied around the target
- Validity
- Real encoders — every image, audio file, PDF and archive opens normally
- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Are the generated files actually valid?
Why is my ZIP not exactly the size I asked for?
What are the three content options for?
Is anything uploaded?
How to use the sample file generator
- 1Choose the file format.
- 2Set the how many files.
- 3Choose the size driven by.
- 4Set the pages per document.
- 5Set the target size.
- 6Choose the size unit.
- 7Set the size variance.
- 8Choose the content.
- 9Choose the archive contents.
- 10Enter or paste your file name pattern.
- 11Enter or paste your seed.
- 12Turn "Download batch as one ZIP" on or off as needed.
- 13Press Run, then download the result when it is ready.
Embed this tool
Put the working sample file generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Sample File LibraryDownload a ready-made ladder of 15 sample files: size steps, page counts, aspect ratios, durations or row counts.Mock Data GeneratorGenerate realistic fake test data in 14 formats from 100+ field types, with reproducible seeds.Sample Dataset GeneratorDownload ready-made sample datasets — users, orders, products, transactions — as CSV, JSON, SQL or Excel-ready TSV.CSV Column ExtractorPull selected columns out of a CSV by name or position, and reorder them.Wrap Lines in Quotes or BracketsAdd a prefix and suffix to every line and join them — build SQL IN lists, arrays and CSV rows.PDF to CSV ConverterExtract PDF tables into properly quoted CSV, one row per table row.
Last updated
More samples & mock data