What Is Apache ORC? The Columnar File Format From Hive
ORC (Optimized Row Columnar) is a columnar file format that came out of Apache Hive. It does the same job as Parquet: it stores a table by column, compresses well and lets engines skip data they do not need. If you are choosing between the two, the honest answer is that Parquet is the safer default and ORC is the right choice in a few specific places.
What ORC is
ORC is an open columnar file format from the Apache Hive project. Instead of storing one row after another like a CSV, it stores all the values of one column together. That makes analytics queries fast, because a query that needs three columns reads only those three, and it makes compression work better, because values in a column look alike.
How an ORC file is organised
An ORC file is split into large blocks called stripes. Each stripe holds the column data for a group of rows, an index and a footer with statistics such as minimum and maximum values. Engines use these statistics and indexes to skip stripes and row groups that cannot match a filter. The file also stores its schema and compression settings.
ORC vs Parquet
- **File size.** AWS notes that ORC files are often smaller than Parquet files. Test with your own data, because results vary.
- **Query speed.** One academic comparison found ORC performing better on Hive and Parquet performing best with Spark SQL. The engine matters more than the format.
- **Ecosystem.** Parquet is the default across the cloud ecosystem and works well with Apache Arrow. ORC is most tightly connected with Hive.
- **Updates and deletes.** ORC is used with Hive for ACID-style tables, which is one reason it is still common in Hive-based systems.
- **Schema evolution.** Both formats support adding, removing and changing columns over time.
When to choose ORC
Choose ORC if your data lives mainly in Hive and you care about file size and Hive features. Choose Parquet for Spark, Trino, cloud analytics, Arrow-based tools and most new projects. If you are unsure, run both on your own data and queries. For a plain-language look at the other formats, see CSV vs JSON vs Parquet vs Excel and Avro vs Parquet.
Opening ORC files
Data Utility reads Parquet and Avro files, but not ORC. To look inside an ORC file, use a tool from the Hive or Spark world, or have your engine write a Parquet copy and open that in the Format Converter. ORC can also be a data file format inside an Iceberg table, which is one reason you may meet it even in a modern stack.
Related tool pages
- Avro Viewer Online: Open .avro Files: Open and view an Avro (.avro) file online: see the schema and records as a table, then save as CSV, JSON, Excel or Parquet. Free, no upload.
- Avro to CSV Converter: Convert an Avro file to CSV online. Nested records are flattened. Free, private, runs in your browser.
- CSV to Avro Converter: Convert CSV to an Avro (.avro) file online. Column types are detected and written into the Avro schema. Free and private: nothing is uploaded.
- Avro to JSON Converter: Convert an Avro file to JSON online. Nested records, arrays and maps stay nested. Free, private, no upload.
- JSON to Avro Converter: Convert JSON to an Avro (.avro) file online. The schema is built from your data. Free, private, no upload.
- Parquet to Avro Converter: Convert a Parquet file to Avro online. Column types are kept in the Avro schema. Free, private, runs in your browser.
Also try
How to use the Format Converter: step by step
- Decide which engine will read the data most: Hive, Spark or something else.
- Test both formats on a sample of your own data.
- If you convert to Parquet, open the result in the Format Converter to check it.
When to use the Format Converter
- Understand ORC next to Parquet
- Choose a file format for a Hive-based system
- Make sense of ORC in an Iceberg table
- Plan a conversion to Parquet
Example
Input: id,name,age 1,Ada,36 2,Alan,41
Output: [{"id":1,"name":"Ada","age":36},{"id":2,"name":"Alan","age":41}]
Frequently asked questions
What is the ORC file format?
ORC (Optimized Row Columnar) is a columnar file format from the Apache Hive project. It stores data by column, compresses well and keeps statistics so engines can skip data they do not need.
Is ORC better than Parquet?
Not in general. ORC files are often smaller and ORC works very well in Hive. Parquet is the safer default across Spark, cloud engines and Arrow-based tools. Test on your own data.
Is ORC a table format like Iceberg?
No. ORC is a file format. Table formats such as Iceberg can use ORC files for their data.
Can Data Utility open ORC files?
No. Data Utility reads Parquet, Avro, CSV, JSON and Excel. Convert ORC to Parquet with Hive or Spark first.
When should I use ORC?
When your data lives mainly in Hive, and you want its file size and Hive features. For most other new projects, Parquet is the usual choice.
Tip: File size and speed depend on your data and your engine. Benchmark ORC and Parquet on a sample before you decide.