.parquet

What is a .parquet file?

Apache Parquet · Data · Apache Software Foundation · 2013

Parquet is a columnar storage format built for analytics on large datasets. Instead of storing rows together, it stores each column together, which makes reading a few columns from a huge table fast and highly compressible.

Category
Data
Type
Binary
Is a .parquet file safe to open? Safe. Parquet is data, not code. It is read by analytics libraries, which never execute the file's contents.

What is a .parquet file used for?

Parquet is the default format for big-data tools like Apache Spark, and for data lakes and warehouses. Because data is grouped by column, a query that touches three columns of a two-hundred-column table reads only what it needs.

Each file begins and ends with the four bytes PAR1, wrapping compressed column chunks and a footer that holds the schema and statistics. It is a binary format, so you read it with a library such as pandas, DuckDB or Spark rather than a text editor.

How to open a .parquet file

The .parquet format opens in the following apps, grouped by operating system. If one app does not work, try another from the same list. For a step-by-step walkthrough, see how to open a .parquet file.

Windows

  • Python (pandas, pyarrow)
  • DuckDB
  • Tad viewer

macOS

  • Python (pandas, pyarrow)
  • DuckDB
  • Tad viewer

Linux

  • Python (pandas, pyarrow)
  • DuckDB
  • Apache Spark

How to convert a .parquet file

You can convert a .parquet file to CSV, JSON, Arrow using a conversion tool or the export menu of an app that opens it.

.parquet file signature (magic bytes)

Programs recognise a .parquet file by the bytes at the start of the file, not by its name. These are the signatures for Parquet. For a full breakdown, see the Parquet file signature page.

Hex signatureOffsetNote
50 41 52 310'PAR1' header
50 41 52 31-4'PAR1' footer at end of file

See the full magic-numbers reference for every format.

Frequently asked questions

What is a .parquet file?

Parquet is a columnar storage format built for analytics on large datasets. Instead of storing rows together, it stores each column together, which makes reading a few columns from a huge table fast and highly compressible.

How do I open a Parquet file?

Use a data tool: in Python, pandas.read_parquet() or DuckDB's SELECT * FROM 'file.parquet'. Desktop viewers like Tad open it without code.

Why is Parquet smaller than CSV?

Storing each column together lets Parquet compress similar values and skip columns a query does not need, so it is usually a fraction of the size of the same data as CSV.

Is Parquet faster than CSV?

For analytics, yes. Columnar layout and built-in statistics let tools read only the relevant columns and row groups instead of scanning every line.

Comparisons

Related formats

Sources

Details on this page were checked against authoritative references: