Create test files with an exact byte size: PDF, PNG, JPG, CSV, JSON, TXT, WAV, ZIP and binary, all structurally valid, to test uploads, limits and validation.
Files that pass validation, at the size you asked for.
The generator builds files with the exact number of bytes you request, not empty files with a renamed extension: every format has the structure a validator expects. The PDF is a PDF 1.4 with a catalog, A4 pages, a font and a correct xref table. The PNG is an 8-bit RGB image with a CRC on every chunk. The JPG is a baseline JPEG with Huffman and quantization tables, made of single-color 8x8 pixel blocks, so it looks like a mosaic. The ZIP uses the store method, with a central directory and a CRC-32 per entry. The WAV is 16-bit PCM. CSV and JSON carry fictitious data (names, e-mails on example.com, cities, amounts). The final size is closed with padding in the right place for each format: a stream object in the PDF, a private ancillary chunk in the PNG, comment segments in the JPG and the body of the files inside the ZIP. Mind the units: 1 MB is 1,000,000 bytes (SI) and 1 MiB is 1,048,576 bytes (IEC), so a 5 MB file is 4.77 MiB. That matters for real limits such as nginx client_max_body_size (default 1m, above it the error is 413) and PHP upload_max_filesize (default 2M) with post_max_size (default 8M). In Upload limit mode you get a file 1 byte under, exactly at, and 1 byte over the limit, and you see on which side the validation is wrong. Everything runs in the browser, in chunks, and no file is sent to a server.
How to use
Pick the format and the size, then download.
Pick the format (PDF, PNG, JPG, TXT, CSV, JSON, ZIP, WAV or BIN) and the size in bytes, KB, KiB, MB, MiB, GB or GiB. The file shows up ready, with its first bytes in hexadecimal.
In Several sizes tick 1 KB, 1 MB, 10 MB and others at once. In Upload limit enter your server's limit and generate limit minus 1 byte, the limit, and limit plus 1 byte.
In Format options adjust pages, dimensions, padding, seed, or generate a broken file (truncated or with swapped magic bytes). Download them one by one or all in a ZIP.
Embed
Use this tool on your site
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
1 MB is 1,000,000 bytes and 1 MiB is 1,048,576 bytes, a 4.86% difference. The same goes for KB (1,000) and KiB (1,024), GB (1,000,000,000) and GiB (1,073,741,824). NIST notes that memory makers often use megabyte for 1,048,576 bytes and storage makers for 1,000,000, so the tool shows the size in both systems and lets you pick the unit.