Sample files by format
54 file formats, each with valid sample files in several exact sizes and a reference page covering its MIME type, signature bytes and structure.
Choosing a format to test with
Start with the formats your application says it accepts, then add one or two it should refuse. An upload form that accepts PDF and JPG, for example, should also be tried with a DOCX and with a file that has no extension, to check that it rejects them with a clear message.
Each format page lists the MIME type and the signature bytes that identify the format. Validation that only looks at the file extension can be fooled by renaming a file; validation that reads the signature bytes cannot, and the format pages show what those bytes are.
For size limits, use the exact-size files listed under each format, or the size picker on the format page, which makes a valid file of any size from the format's minimum up to 1 GB where your browser can stream to disk. For parsers and importers, the curated files add the awkward cases: quoted CSV fields, byte order marks, empty and corrupted files.
Documents
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| PDF sample filesPortable Document Format | application/pdf | 5 KB to 20 MB | |
| DOCX sample filesWord document (Office Open XML) | .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | 50 KB to 10 MB |
| ODT sample filesOpenDocument Text | .odt | application/vnd.oasis.opendocument.text | 10 KB to 1 MB |
| TXT sample filesPlain text | .txt | text/plain | 1 KB to 20 MB |
| RTF sample filesRich Text Format | .rtf | application/rtf | 1 KB to 1 MB |
| Markdown sample filesMarkdown | .md | text/markdown | 1 KB to 1 MB |
| HTML sample filesHyperText Markup Language | .html | text/html | 1 KB to 1 MB |
Spreadsheets
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| XLSX sample filesExcel workbook (Office Open XML) | .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | 10 KB to 10 MB |
| CSV sample filesComma-separated values | .csv | text/csv | 1 KB to 20 MB |
| TSV sample filesTab-separated values | .tsv | text/tab-separated-values | 1 KB to 10 MB |
| ODS sample filesOpenDocument Spreadsheet | .ods | application/vnd.oasis.opendocument.spreadsheet | 10 KB to 1 MB |
Presentations
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| PPTX sample filesPowerPoint presentation (Office Open XML) | .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | 100 KB to 10 MB |
Images
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| JPG sample filesJPEG image | .jpg | image/jpeg | 1 KB to 10 MB |
| PNG sample filesPortable Network Graphics | .png | image/png | 1 KB to 10 MB |
| GIF sample filesGraphics Interchange Format | .gif | image/gif | 10 KB to 5 MB |
| WebP sample filesWebP image | .webp | image/webp | 10 KB to 5 MB |
| BMP sample filesWindows bitmap | .bmp | image/bmp | 10 KB to 5 MB |
| SVG sample filesScalable Vector Graphics | .svg | image/svg+xml | 1 KB to 1 MB |
| TIFF sample filesTagged Image File Format | .tiff | image/tiff | 10 KB to 5 MB |
| ICO sample filesWindows icon | .ico | image/vnd.microsoft.icon | Curated samples |
Audio
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| MP3 sample filesMPEG-1 Audio Layer III | .mp3 | audio/mpeg | 100 KB to 10 MB |
| WAV sample filesWaveform Audio File Format | .wav | audio/wav | 100 KB to 10 MB |
| FLAC sample filesFree Lossless Audio Codec | .flac | audio/flac | 100 KB to 5 MB |
| M4A sample filesMPEG-4 audio | .m4a | audio/mp4 | 100 KB to 5 MB |
Video
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| MP4 sample filesMPEG-4 Part 14 video | .mp4 | video/mp4 | 100 KB to 20 MB |
| MOV sample filesQuickTime movie | .mov | video/quicktime | 100 KB to 5 MB |
| MKV sample filesMatroska video | .mkv | video/x-matroska | 100 KB to 5 MB |
| WebM sample filesWebM video | .webm | video/webm | 100 KB to 5 MB |
Archives
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| ZIP sample filesZIP archive | .zip | application/zip | 1 KB to 20 MB |
| TAR sample filesTape archive | .tar | application/x-tar | 10 KB to 10 MB |
| GZ sample filesGzip compressed file | .gz | application/gzip | 1 KB to 10 MB |
Data
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| JSON sample filesJavaScript Object Notation | .json | application/json | 1 KB to 10 MB |
| XML sample filesExtensible Markup Language | .xml | application/xml | 1 KB to 10 MB |
| JSONL sample filesJSON Lines | .jsonl | application/jsonl | 1 KB to 10 MB |
| Avro sample filesApache Avro object container file | .avro | application/avro | 1 KB to 10 MB |
Code
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| CSS sample filesCascading Style Sheets | .css | text/css | 1 KB to 1 MB |
| JS sample filesJavaScript source file | .js | text/javascript | 1 KB to 1 MB |
Configuration
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| YAML sample filesYAML Ain't Markup Language | .yaml | application/yaml | 1 KB to 1 MB |
| TOML sample filesTom's Obvious Minimal Language | .toml | application/toml | 1 KB to 1 MB |
| INI sample filesINI configuration file | .ini | text/plain | 1 KB to 1 MB |
Database
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| SQL sample filesSQL script | .sql | application/sql | 1 KB to 10 MB |
Testing
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| LOG sample filesLog file | .log | text/plain | 1 KB to 10 MB |
| BIN sample filesBinary test file | .bin | application/octet-stream | 1 KB to 20 MB |
GIS
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| GeoJSON sample filesGeoJSON | .geojson | application/geo+json | 1 KB to 1 MB |
| KML sample filesKeyhole Markup Language | .kml | application/vnd.google-earth.kml+xml | 1 KB to 1 MB |
| GPX sample filesGPS Exchange Format | .gpx | application/gpx+xml | 1 KB to 1 MB |
3D Models
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| OBJ sample filesWavefront OBJ 3D model | .obj | model/obj | 1 KB to 1 MB |
| STL sample filesSTL 3D model (stereolithography) | .stl | model/stl | 1 KB to 1 MB |
| glTF sample filesGL Transmission Format | .gltf | model/gltf+json | 1 KB to 1 MB |
Ebooks
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| EPUB sample filesEPUB e-book | .epub | application/epub+zip | 10 KB to 5 MB |
Email & Calendar
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| EML sample filesEmail message | .eml | message/rfc822 | 1 KB to 1 MB |
| ICS sample filesiCalendar file | .ics | text/calendar | 1 KB to 1 MB |
Subtitles
| Format | Extension | MIME type | Sizes |
|---|---|---|---|
| SRT sample filesSubRip subtitles | .srt | application/x-subrip | 1 KB to 1 MB |
| VTT sample filesWebVTT subtitles | .vtt | text/vtt | 1 KB to 1 MB |
New mainstream Tier 1 formats & specialized Tier 2 format families
In addition to the 54 core formats above, explore our 10 newly added Tier 1 format hubs and 6 comprehensive Tier 2 Format Family pages covering 225+ total file extensions (or view the complete A to Z Format Index):
Additional Tier 1 format hubs
- 7Z (.7z)
- AAC (.aac)
- AVI (.avi)
- OGG (.ogg)
- OPUS (.opus)
- Parquet (.parquet)
- SQLite (.sqlite)
- TTF (.ttf)
- VCF (.vcf)
- WOFF2 (.woff2)
Tier 2 format family reference & download pages (160+ specialized formats)
- Broadcast, mobile & legacy video formats (3GP, 3G2, ASF, F4V, FLV, HEVC, M2TS, M2V, M4V, MJPEG, MPEG, MPG, MTS, MXF, OGV, RM, RMVB, SWF, TS, VOB, WMV)
- Speech, workstation & legacy audio formats (8SVX, AC3, AIFF, AMB, AMR, APE, AU, AVR, CAF, CDDA, CVU, DTS, FAP, HTK, IMA, IRCAM, M4B, M4R, MID, MP2, NIST, OGA, PVF, RA, SD2, SMP, SND, SNDT, SPH, SPX, TTA, TXW, VOC, VOX, W64, WMA, WV, WVE)
- Next-gen, HDR, Netpbm & camera RAW image formats (APNG, ARW, AVIF, CR2, CUR, DCM, DDS, DJVU, DNG, EMF, EPS, EXR, HDR, HEIC, HEIF, JFIF, JP2, JPE, JPEG, JPS, JXL, MNG, NEF, ODG, ORF, PAM, PBM, PCD, PCX, PEF, PES, PFM, PGM, PICON, PNM, PPM, PSD, RAF, RAS, RW2, TGA, WBMP, WMF, X3F, XBM, XCF, XPM, XWD, Animated WebP)
- Legacy Office, publishing & message formats (ADOC, DOC, MBOX, MOBI, MSG, ODP, OTT, PPT, TEX, XLS, XPS)
- Source code, notebooks, WebAssembly, subtitles & 3D formats (ASS, BAT, C, CLASS, CPP, CS, GLB, GO, H, HTACCESS, IPYNB, JAVA, M3U, M3U8, NDJSON, PHP, PL, PY, RB, SH, SWIFT, TEST, VB, WASM, XSPF)
- Compressed streams, desktop fonts & system stubs (BZ2, CFF, CRDOWNLOAD, DFONT, EXE, ISO, OTF, PFB, PS, RAR, SFD, TAR.BZ2, TAR.GZ, TGZ, WOFF, XZ, ZST)