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

FormatExtensionMIME typeSizes
PDF sample filesPortable Document Format.pdfapplication/pdf5 KB to 20 MB
DOCX sample filesWord document (Office Open XML).docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document50 KB to 10 MB
ODT sample filesOpenDocument Text.odtapplication/vnd.oasis.opendocument.text10 KB to 1 MB
TXT sample filesPlain text.txttext/plain1 KB to 20 MB
RTF sample filesRich Text Format.rtfapplication/rtf1 KB to 1 MB
Markdown sample filesMarkdown.mdtext/markdown1 KB to 1 MB
HTML sample filesHyperText Markup Language.htmltext/html1 KB to 1 MB

Spreadsheets

FormatExtensionMIME typeSizes
XLSX sample filesExcel workbook (Office Open XML).xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet10 KB to 10 MB
CSV sample filesComma-separated values.csvtext/csv1 KB to 20 MB
TSV sample filesTab-separated values.tsvtext/tab-separated-values1 KB to 10 MB
ODS sample filesOpenDocument Spreadsheet.odsapplication/vnd.oasis.opendocument.spreadsheet10 KB to 1 MB

Presentations

FormatExtensionMIME typeSizes
PPTX sample filesPowerPoint presentation (Office Open XML).pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation100 KB to 10 MB

Images

FormatExtensionMIME typeSizes
JPG sample filesJPEG image.jpgimage/jpeg1 KB to 10 MB
PNG sample filesPortable Network Graphics.pngimage/png1 KB to 10 MB
GIF sample filesGraphics Interchange Format.gifimage/gif10 KB to 5 MB
WebP sample filesWebP image.webpimage/webp10 KB to 5 MB
BMP sample filesWindows bitmap.bmpimage/bmp10 KB to 5 MB
SVG sample filesScalable Vector Graphics.svgimage/svg+xml1 KB to 1 MB
TIFF sample filesTagged Image File Format.tiffimage/tiff10 KB to 5 MB
ICO sample filesWindows icon.icoimage/vnd.microsoft.iconCurated samples

Audio

FormatExtensionMIME typeSizes
MP3 sample filesMPEG-1 Audio Layer III.mp3audio/mpeg100 KB to 10 MB
WAV sample filesWaveform Audio File Format.wavaudio/wav100 KB to 10 MB
FLAC sample filesFree Lossless Audio Codec.flacaudio/flac100 KB to 5 MB
M4A sample filesMPEG-4 audio.m4aaudio/mp4100 KB to 5 MB

Video

FormatExtensionMIME typeSizes
MP4 sample filesMPEG-4 Part 14 video.mp4video/mp4100 KB to 20 MB
MOV sample filesQuickTime movie.movvideo/quicktime100 KB to 5 MB
MKV sample filesMatroska video.mkvvideo/x-matroska100 KB to 5 MB
WebM sample filesWebM video.webmvideo/webm100 KB to 5 MB

Archives

FormatExtensionMIME typeSizes
ZIP sample filesZIP archive.zipapplication/zip1 KB to 20 MB
TAR sample filesTape archive.tarapplication/x-tar10 KB to 10 MB
GZ sample filesGzip compressed file.gzapplication/gzip1 KB to 10 MB

Data

FormatExtensionMIME typeSizes
JSON sample filesJavaScript Object Notation.jsonapplication/json1 KB to 10 MB
XML sample filesExtensible Markup Language.xmlapplication/xml1 KB to 10 MB
JSONL sample filesJSON Lines.jsonlapplication/jsonl1 KB to 10 MB
Avro sample filesApache Avro object container file.avroapplication/avro1 KB to 10 MB

Code

FormatExtensionMIME typeSizes
CSS sample filesCascading Style Sheets.csstext/css1 KB to 1 MB
JS sample filesJavaScript source file.jstext/javascript1 KB to 1 MB

Configuration

FormatExtensionMIME typeSizes
YAML sample filesYAML Ain't Markup Language.yamlapplication/yaml1 KB to 1 MB
TOML sample filesTom's Obvious Minimal Language.tomlapplication/toml1 KB to 1 MB
INI sample filesINI configuration file.initext/plain1 KB to 1 MB

Database

FormatExtensionMIME typeSizes
SQL sample filesSQL script.sqlapplication/sql1 KB to 10 MB

Testing

FormatExtensionMIME typeSizes
LOG sample filesLog file.logtext/plain1 KB to 10 MB
BIN sample filesBinary test file.binapplication/octet-stream1 KB to 20 MB

GIS

FormatExtensionMIME typeSizes
GeoJSON sample filesGeoJSON.geojsonapplication/geo+json1 KB to 1 MB
KML sample filesKeyhole Markup Language.kmlapplication/vnd.google-earth.kml+xml1 KB to 1 MB
GPX sample filesGPS Exchange Format.gpxapplication/gpx+xml1 KB to 1 MB

3D Models

FormatExtensionMIME typeSizes
OBJ sample filesWavefront OBJ 3D model.objmodel/obj1 KB to 1 MB
STL sample filesSTL 3D model (stereolithography).stlmodel/stl1 KB to 1 MB
glTF sample filesGL Transmission Format.gltfmodel/gltf+json1 KB to 1 MB

Ebooks

FormatExtensionMIME typeSizes
EPUB sample filesEPUB e-book.epubapplication/epub+zip10 KB to 5 MB

Email & Calendar

FormatExtensionMIME typeSizes
EML sample filesEmail message.emlmessage/rfc8221 KB to 1 MB
ICS sample filesiCalendar file.icstext/calendar1 KB to 1 MB

Subtitles

FormatExtensionMIME typeSizes
SRT sample filesSubRip subtitles.srtapplication/x-subrip1 KB to 1 MB
VTT sample filesWebVTT subtitles.vtttext/vtt1 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

Tier 2 format family reference & download pages (160+ specialized formats)