Dummy Test File Generator

Need a 10 MB PDF or a file one byte over your upload limit? Pick a type and size and download a valid file made in your browser.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Pick the file type

    Choose PDF, PNG, JPG, MP4, MP3, WAV, CSV, JSON, TXT, ZIP or binary.

  2. 2
    Set the size

    Type an amount and unit or tap a quick size, and choose decimal or binary units.

  3. 3
    Choose how many

    Make one file, a list of sizes, or three files around a limit with the limit tester.

  4. 4
    Adjust the content

    Set image dimensions, noise, JPEG quality, video length, PDF pages, text kind, sound or padding bytes.

  5. 5
    Generate

    Press Make and download and wait for the progress message to finish.

  6. 6
    Check the result

    Compare the reported byte size, exact flag and SHA-256 checksum with what your server stored.

Sobre aquesta eina

Testing an upload form means testing its edges: does a 10 MB limit accept a file of exactly 10,000,000 bytes and reject one of 10,000,001; does the progress bar move on a 200 MB video; does the server check the real file type or only the extension; what happens with an empty CSV or a PDF with 500 pages. Finding sample files of the right size and type is tedious, and files padded with random bytes fail validation because they are not real PDFs or images. This generator makes files that are both exactly the size you ask for and genuinely valid. PDFs are written object by object with text pages and a cross-reference table, and the extra bytes go into an unused stream, so every viewer opens them and shows the page count you chose. PNG and JPG images are drawn on a canvas as a test card with colour bars, a grid and the dimensions and size printed on them, at any width and height up to 8,000 pixels, with optional random noise for large realistic images; padding goes into a PNG private chunk or JPEG comment segments, which decoders skip. MP4 videos are encoded in the browser as H.264 with a running timer, then padded with a free box. MP3 files are silent MPEG audio frames whose number follows the size, WAV files carry a tone, noise or silence, CSV and JSON contain realistic fake records with example.com emails, text files are wrapped at 80 characters, and ZIP archives are standard stored archives with a README and a filler file, with real CRC-32 checksums. You can choose zero, random or repeating-text padding, decimal or binary units, several sizes at once, or a limit tester that makes three files: one byte under, exactly at and one byte over your limit.

Decimal or binary megabytes

Storage makers and most web servers count 1 MB as 1,000,000 bytes, while Windows and some frameworks count 1,048,576. A 5 MB limit in PHP's upload_max_filesize or in Nginx's client_max_body_size uses binary units, so 5M there means 5,242,880 bytes. Switch on binary units when you test those settings.

Zero, random or text padding

Zero padding compresses to almost nothing, which matters if a proxy or the browser compresses uploads, or if you zip the file. Random padding does not compress, so the bytes on the wire match the file size. Repeating text is easy to spot in a hex viewer. For type checks, every option still produces a file whose header and structure are valid.

Very large files

Files are built in your browser's memory, so the limit is 2 GB per file, and a phone may refuse much smaller sizes. A SHA-256 checksum is shown for files up to 256 MB, which lets you confirm that the server stored exactly what you sent.

Limits

The MP4 option needs WebCodecs (Chrome, Edge, recent Safari and Firefox) or falls back to a slower encoder, and the video itself is limited to 30 seconds and 1920 by 1080 pixels; the padding makes up the rest. The MP3 is silent because encoding sound to MP3 is not done here. These are test files, not samples of real-world content.

Exemple resolt

To test a 10 MB upload limit counted in decimal units, choose PDF, 10 MB and the limit tester. Three downloads arrive: 9,999,999, 10,000,000 and 10,000,001 bytes, each a three-page PDF that opens normally. A 5 MB MP3 made the same way holds 313.21 seconds of silence, a 1 MB CSV contains 12,726 fake rows with 8 columns, and a 10 MB WAV with a 440 Hz tone plays for 113.38 seconds.

En resum

Preguntes freqüents

Are the files real files or just renamed random data?

They are real. Each format is written with its proper header and structure, so image viewers, PDF readers, media players, spreadsheet programs and unzip tools open them. Only the extra bytes needed to hit the exact size are filler, placed where the format allows ignored data.

Why is the size sometimes not exact?

A few formats need a minimum number of bytes for the padding container, for example 12 bytes for a PNG chunk. If you ask for a size within a few bytes of the bare image, the file lands slightly over and the result says so. Very small targets below the smallest valid file are also reported.

Can I make a file bigger than my upload limit to test the error message?

Yes. That is what the limit tester is for: it makes files at your limit minus one byte, exactly at the limit, and one byte over, so you can confirm the boundary behaves as intended.

Do the CSV and JSON files contain real personal data?

No. Names, cities and amounts are combined at random from short built-in lists, and every email address uses example.com, a domain reserved for documentation, so no real person can be contacted.

How do I test a server that checks MIME types?

Download the file in the type you want and, if needed, rename a copy with a wrong extension. Because the content is valid, you can see whether the server checks the extension, the declared type or the actual file signature.

Is anything uploaded while generating?

No. Every byte is created by code in your browser and handed straight to your downloads folder.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes