Generate a BAT script upload fixture

Choose a byte size for a batch-script test file. Filler follows an early exit; inspect the script before use and test extension handling separately from execution.

10,485,760 bytes
10 MiB · BAT · 111 B
Exact size

1 MB = 1,000,000 B · 1 MiB = 1,048,576 B

Advanced: test an upload limit

Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 10,485,760 B. Generate and download each file to test your endpoint.

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.

Choose a size here

Inside a generated BAT file

A 1 MiB sample we generated starts with @echo off, two echo lines and goto :eof, using Windows CRLF line endings. Everything after that is a single line of the letter x. The file utility labels it text/x-msdos-batch, so a filter that sniffs content sees a script whatever the extension says. Try renaming it .txt to learn whether your upload rule looks at names or bytes.

File structure and testing limits

A text batch-script fixture with filler after an early exit. Inspect it as script content before use; size does not establish safety.

Format reference: Microsoft goto documentation.

Questions

How small can a BAT file be?

About 111 bytes.

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