1 KB sample files
The smallest practical test file: 1,024 bytes, small enough to travel in a single network packet. Available in 33 formats.
Download a 1 KB file
Each file is exactly 1,024 bytes and is a valid file of its format. Any of them works as a 1 KB dummy file or test file.
| File | Format | Size | Contents | Download |
|---|---|---|---|---|
| 1 KB TXT samplesample-txt-1kb.txt | TXT | 1 KB1,024 bytes | Lines: 7 | Download TXT |
| 1 KB CSV samplesample-csv-1kb.csv | CSV | 1 KB1,024 bytes | Data rows: 5 | Download CSV |
| 1 KB JSON samplesample-json-1kb.json | JSON | 1 KB1,024 bytes | Records: 2 | Download JSON |
| 1 KB XML samplesample-xml-1kb.xml | XML | 1 KB1,024 bytes | Records: 2 | Download XML |
| 1 KB PNG samplesample-png-1kb.png | PNG | 1 KB1,024 bytes | 14 × 21 px | Download PNG |
| 1 KB JPG samplesample-jpg-1kb.jpg | JPG | 1 KB1,024 bytes | 23 × 17 px | Download JPG |
| 1 KB ZIP samplesample-zip-1kb.zip | ZIP | 1 KB1,024 bytes | Entries: 2 | Download ZIP |
| 1 KB BIN samplesample-bin-1kb.bin | BIN | 1 KB1,024 bytes | Incompressible pseudo-random bytes | Download BIN |
| 1 KB JSONL samplesample-jsonl-1kb.jsonl | JSONL | 1 KB1,024 bytes | Lines: 2 | Download JSONL |
| 1 KB SQL samplesample-sql-1kb.sql | SQL | 1 KB1,024 bytes | INSERT statements: 1 | Download SQL |
| 1 KB LOG samplesample-log-1kb.log | LOG | 1 KB1,024 bytes | Lines: 5 | Download LOG |
| 1 KB GZ samplesample-gz-1kb.gz | GZ | 1 KB1,024 bytes | Expands to 0 bytes | Download GZ |
| 1 KB SVG samplesample-svg-1kb.svg | SVG | 1 KB1,024 bytes | Shapes: 9 | Download SVG |
| 1 KB HTML samplesample-html-1kb.html | HTML | 1 KB1,024 bytes | Sections: 0 | Download HTML |
| 1 KB Markdown samplesample-md-1kb.md | Markdown | 1 KB1,024 bytes | Sections: 2 | Download Markdown |
| 1 KB RTF samplesample-rtf-1kb.rtf | RTF | 1 KB1,024 bytes | Sections: 1 | Download RTF |
| 1 KB YAML samplesample-yaml-1kb.yaml | YAML | 1 KB1,024 bytes | Records: 2 | Download YAML |
| 1 KB TOML samplesample-toml-1kb.toml | TOML | 1 KB1,024 bytes | Records: 4 | Download TOML |
| 1 KB INI samplesample-ini-1kb.ini | INI | 1 KB1,024 bytes | Sections: 8 | Download INI |
| 1 KB CSS samplesample-css-1kb.css | CSS | 1 KB1,024 bytes | Rules: 8 | Download CSS |
| 1 KB JS samplesample-js-1kb.js | JS | 1 KB1,024 bytes | Records: 3 | Download JS |
| 1 KB SRT samplesample-srt-1kb.srt | SRT | 1 KB1,024 bytes | Cues: 7 | Download SRT |
| 1 KB VTT samplesample-vtt-1kb.vtt | VTT | 1 KB1,024 bytes | Cues: 6 | Download VTT |
| 1 KB ICS samplesample-ics-1kb.ics | ICS | 1 KB1,024 bytes | Events: 1 | Download ICS |
| 1 KB EML samplesample-eml-1kb.eml | EML | 1 KB1,024 bytes | Paragraphs: 2 | Download EML |
| 1 KB GeoJSON samplesample-geojson-1kb.geojson | GeoJSON | 1 KB1,024 bytes | Features: 3 | Download GeoJSON |
| 1 KB OBJ samplesample-obj-1kb.obj | OBJ | 1 KB1,024 bytes | Triangles: 28 | Download OBJ |
| 1 KB TSV samplesample-tsv-1kb.tsv | TSV | 1 KB1,024 bytes | Data rows: 5 | Download TSV |
| 1 KB Avro samplesample-avro-1kb.avro | Avro | 1 KB1,024 bytes | Records: 1 | Download Avro |
| 1 KB KML samplesample-kml-1kb.kml | KML | 1 KB1,024 bytes | Placemarks: 2 | Download KML |
| 1 KB GPX samplesample-gpx-1kb.gpx | GPX | 1 KB1,024 bytes | Track points: 3 | Download GPX |
| 1 KB STL samplesample-stl-1kb.stl | STL | 1 KB1,024 bytes | Facets: 8 | Download STL |
| 1 KB glTF samplesample-gltf-1kb.gltf | glTF | 1 KB1,024 bytes | Triangles: 2 | Download glTF |
What is a 1 KB test file?
A 1 KB file is the minimum useful fixture. It proves that an upload or download path works end to end without spending any time on the transfer, which makes it ideal for automated tests that run on every commit.
At this size the whole file fits inside one Ethernet frame, so chunking, buffering and progress reporting are never exercised. Use it to check the logic around a transfer, not the transfer itself.
In everyday terms: About 170 English words, or a short paragraph of plain text.
Limits near 1 KB
Default limits in widely used software that a 1 KB file is useful for testing. Defaults change between versions, so confirm them in the documentation for the version you run.
| System | Limit | What happens at 1 KB |
|---|---|---|
| Ethernet | 1,500 bytes (typical MTU) | A 1 KB payload fits in one packet with its headers. |
| Browser cookies | 4,096 bytes per cookie | 1 KB is well inside the limit; the 5 KB sample is over it. |
Good for
- Smoke tests in CI that must run in milliseconds
- Checking that an upload form works at all
- Fixtures committed to a repository
- Testing minimum-size validation rules
Transfer time
How long 1,024 bytes take to move, before any compression.
| 1 Mbit/s (slow mobile or uplink) | under 1 second |
|---|---|
| 10 Mbit/s (basic broadband) | under 1 second |
| 100 Mbit/s (fast broadband) | under 1 second |
Related
Next sizes: 5 KB sample files.
1 KB files: questions
- Why is there no 1 KB sample for some formats?
- Formats with large fixed overheads, such as DOCX, MP4 or TAR, cannot produce a valid file that small. We only publish sizes that result in a genuine, working file.
- How many bytes is 1 KB?
- 1 KB is 1,024 bytes on this site. Sizes use binary units, in which 1 KB is 1,024 bytes and 1 MB is 1,048,576 bytes.