1 KB sample files
The smallest practical test file: 1,024 bytes, small enough to travel in a single network packet. Available in 27 formats.
Download a 1 KB file
Each file is exactly 1,024 bytes and is a valid file of its format.
| File | Format | Size | Contents | Download |
|---|---|---|---|---|
| 1 KB TXT samplesample-txt-1kb.txt | TXT | 1 KB1,024 bytes | Numbered lines: 8 | Download TXT |
| 1 KB CSV samplesample-csv-1kb.csv | CSV | 1 KB1,024 bytes | Data rows: 7 | 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 | Elements: 2 <customer> records | Download XML |
| 1 KB PNG samplesample-png-1kb.png | PNG | 1 KB1,024 bytes | 21 × 14 px | Download PNG |
| 1 KB JPG samplesample-jpg-1kb.jpg | JPG | 1 KB1,024 bytes | 18 × 14 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 | Pseudo-random bytes | Download BIN |
| 1 KB JSONL samplesample-jsonl-1kb.jsonl | JSONL | 1 KB1,024 bytes | Lines: 3 | Download JSONL |
| 1 KB SQL samplesample-sql-1kb.sql | SQL | 1 KB1,024 bytes | Statements: 1 CREATE TABLE, 2 INSERT | Download SQL |
| 1 KB LOG samplesample-log-1kb.log | LOG | 1 KB1,024 bytes | Lines: 7 | Download LOG |
| 1 KB GZ samplesample-gz-1kb.gz | GZ | 1 KB1,024 bytes | Uncompressed size: 5,806 bytes | Download GZ |
| 1 KB SVG samplesample-svg-1kb.svg | SVG | 1 KB1,024 bytes | Shapes: 10 circles and rectangles | 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: 1 | Download Markdown |
| 1 KB RTF samplesample-rtf-1kb.rtf | RTF | 1 KB1,024 bytes | Sections: 2 | Download RTF |
| 1 KB YAML samplesample-yaml-1kb.yaml | YAML | 1 KB1,024 bytes | Records: 3 | Download YAML |
| 1 KB TOML samplesample-toml-1kb.toml | TOML | 1 KB1,024 bytes | Tables: 5 [[record]] entries | Download TOML |
| 1 KB INI samplesample-ini-1kb.ini | INI | 1 KB1,024 bytes | Sections: 9 | Download INI |
| 1 KB CSS samplesample-css-1kb.css | CSS | 1 KB1,024 bytes | Features: Custom properties, class selectors, rem and px units | Download CSS |
| 1 KB JS samplesample-js-1kb.js | JS | 1 KB1,024 bytes | Array entries: 4 | Download JS |
| 1 KB SRT samplesample-srt-1kb.srt | SRT | 1 KB1,024 bytes | Cues: 9 | Download SRT |
| 1 KB VTT samplesample-vtt-1kb.vtt | VTT | 1 KB1,024 bytes | Cues: 8 | Download VTT |
| 1 KB ICS samplesample-ics-1kb.ics | ICS | 1 KB1,024 bytes | Events: 2 | Download ICS |
| 1 KB EML samplesample-eml-1kb.eml | EML | 1 KB1,024 bytes | Body paragraphs: 2 | Download EML |
| 1 KB GeoJSON samplesample-geojson-1kb.geojson | GeoJSON | 1 KB1,024 bytes | Features: 4 | Download GeoJSON |
| 1 KB OBJ samplesample-obj-1kb.obj | OBJ | 1 KB1,024 bytes | Vertices: 27 | Download OBJ |
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.