Edge Cases · 27 files

Sample Empty Files

Zero-byte files in 20 common formats, plus files that are valid but empty: an empty ZIP, a header-only CSV, an empty JSON array and object, a blank PDF page and an empty workbook.

All 27 empty files

Download all with curl
Download 27 files (6 KB)Shell
# 27 files, 6 KB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/edge-cases/empty/zero-byte.txt
https://files.samplefiles.com/edge-cases/empty/zero-byte.pdf
https://files.samplefiles.com/edge-cases/empty/zero-byte.jpg
https://files.samplefiles.com/edge-cases/empty/zero-byte.png
https://files.samplefiles.com/edge-cases/empty/zero-byte.gif
https://files.samplefiles.com/edge-cases/empty/zero-byte.webp
https://files.samplefiles.com/edge-cases/empty/zero-byte.svg
https://files.samplefiles.com/edge-cases/empty/zero-byte.mp4
https://files.samplefiles.com/edge-cases/empty/zero-byte.mov
https://files.samplefiles.com/edge-cases/empty/zero-byte.mp3
https://files.samplefiles.com/edge-cases/empty/zero-byte.wav
https://files.samplefiles.com/edge-cases/empty/zero-byte.csv
https://files.samplefiles.com/edge-cases/empty/zero-byte.json
https://files.samplefiles.com/edge-cases/empty/zero-byte.xml
https://files.samplefiles.com/edge-cases/empty/zero-byte.html
https://files.samplefiles.com/edge-cases/empty/zero-byte.zip
https://files.samplefiles.com/edge-cases/empty/zero-byte.docx
https://files.samplefiles.com/edge-cases/empty/zero-byte.xlsx
https://files.samplefiles.com/edge-cases/empty/zero-byte.pptx
https://files.samplefiles.com/edge-cases/empty/zero-byte.epub
https://files.samplefiles.com/edge-cases/empty/empty-array.json
https://files.samplefiles.com/edge-cases/empty/empty-object.json
https://files.samplefiles.com/edge-cases/empty/whitespace-only.txt
https://files.samplefiles.com/edge-cases/empty/empty-archive.zip
https://files.samplefiles.com/edge-cases/empty/header-only.csv
https://files.samplefiles.com/edge-cases/empty/blank-page.pdf
https://files.samplefiles.com/edge-cases/empty/empty-workbook.xlsx
EOF

FileSizeDetailsDownload
Zero-byte .txt filezero-byte.txt0 BDownload
Zero-byte .pdf filezero-byte.pdf0 BDownload
Zero-byte .jpg filezero-byte.jpg0 BDownload
Zero-byte .png filezero-byte.png0 BDownload
Zero-byte .gif filezero-byte.gif0 BDownload
Zero-byte .webp filezero-byte.webp0 BDownload
Zero-byte .svg filezero-byte.svg0 BDownload
Zero-byte .mp4 filezero-byte.mp40 BDownload
Zero-byte .mov filezero-byte.mov0 BDownload
Zero-byte .mp3 filezero-byte.mp30 BDownload
Zero-byte .wav filezero-byte.wav0 BDownload
Zero-byte .csv filezero-byte.csv0 BDownload
Zero-byte .json filezero-byte.json0 BDownload
Zero-byte .xml filezero-byte.xml0 BDownload
Zero-byte .html filezero-byte.html0 BDownload
Zero-byte .zip filezero-byte.zip0 BDownload
Zero-byte .docx filezero-byte.docx0 BDownload
Zero-byte .xlsx filezero-byte.xlsx0 BDownload
Zero-byte .pptx filezero-byte.pptx0 BDownload
Zero-byte .epub filezero-byte.epub0 BDownload
JSON empty arrayempty-array.json3 BDownload
JSON empty objectempty-object.json3 BDownload
Whitespace-only text filewhitespace-only.txt11 BDownload
Valid empty ZIPempty-archive.zip22 B0 entriesDownload
CSV with a header and no rowsheader-only.csv30 B0 rowsDownload
PDF with one blank pageblank-page.pdf1.2 KB1 pageDownload
Empty XLSX workbookempty-workbook.xlsx4.6 KBDownload