Data

SQL test files, any size.

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

0bytes
Exact size

SQL, built to spec.

Each file is a runnable dump with a CREATE TABLE and an INSERT. The size you ask for is reached with a block comment, so the result opens in psql, mysql, DBeaver and TablePlus. Most people generate these for testing database import limits and migration tooling.

Questions.

How small can an SQL file be?

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

Will the file open normally?

Yes — it opens in psql, mysql, DBeaver and TablePlus, because the padding lives in a block comment.

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 →