System

BAT test files, any size.

Set a size and generate a structurally valid BAT immediately. Nothing is uploaded and nothing is stored.

0bytes
Exact size

BAT, built to spec.

Each file is a Windows batch script with a real @echo off header. The size you ask for is reached with unreachable text after a goto :eof, which cmd.exe never parses, so the result opens in Notepad, VS Code and cmd.exe. Most people generate these for testing script upload handling and text-file size limits.

Questions.

How small can a BAT file be?

About 111 bytes. Below that the format cannot carry its mandatory structure, let alone padding.

Will the file open normally?

Yes — it opens in Notepad, VS Code and cmd.exe, because the padding lives in unreachable text after a goto :eof, which cmd.exe never parses.

Can I ask for an unusual size?

Any byte count above the minimum works, including values like 3,145,728 or 27.5 MB. Drag the caliper or type the number.

Noticed an issue with this test file? Report an issue →