.parquet MIME type
Apache Parquetapps & binaries
application/vnd.apache.parquetColumnar data files for analytics, read by DuckDB, pandas, Spark and the major data warehouses.
| MIME type | application/vnd.apache.parquet |
|---|---|
| Extensions | .parquet |
| Content-Type | application/vnd.apache.parquet |
| Compress in transit? | No — already compressed |
| File signature | 50 41 52 31 (PAR1) the same four bytes also end the file |
Good to know
- The type is registered with IANA, but few servers map
.parquetyet, so they sendapplication/octet-stream. - Parquet compresses each column internally, so gzip on top gains little.
- Query engines read the footer first and then fetch only the columns they need. If clients query files over HTTP, serve them with range-request support.
Useful here: Range header
Serve .parquet files with the right type
The response header to send:
Content-Type: application/vnd.apache.parquet
Most servers pick the type from the file extension. If yours sends the wrong one, map it explicitly:
application/vnd.apache.parquet parquet;
AddType application/vnd.apache.parquet .parquet
res.set("Content-Type", "application/vnd.apache.parquet");import mimetypes
mimetypes.add_type("application/vnd.apache.parquet", ".parquet")<input type="file" accept=".parquet,application/vnd.apache.parquet">
Check it
See what a server sends for a file, and what type a local file really is by its contents:
curl -sI https://example.com/file.parquet | grep -i '^content-type:' file --mime-type file.parquet
Frequently asked questions
What is the MIME type for .parquet files?
application/vnd.apache.parquet.
What Content-Type header should a .parquet file be served with?
Content-Type: application/vnd.apache.parquet. It's already compressed, so servers shouldn't gzip it.
How can I tell if a file is really a .parquet?
Check its bytes rather than the extension: PARQUET files start with 50 41 52 31 (PAR1) — the same four bytes also end the file. On the command line, file --mime-type name.parquet does this for you.
Headers that go with it: Content-Type · Content-Disposition · X-Content-Type-Options