Arrow File Inspector

Drop an Arrow IPC or Feather v2 file and read its schema with types, record batches, exact row counts, dictionary batches and compression, in your browser.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Arrow File Inspector?

Drop an Apache Arrow IPC file (.arrow, which is also what a Feather v2 file is) or an Arrow IPC stream and read what its frames declare: every schema field with its type and nullability, the record batch count, the exact total row count summed from the batch headers, dictionary batches, body bytes and the compression codec when one is set. Parsing happens in your tab; the file is never uploaded.

The honest scope: the columnar data stays encoded. This page answers "what is in this file and how big is it", which is the question a mystery .arrow handoff actually poses, and it refuses to pretend further. Reading the values is a job for pyarrow (pyarrow.ipc.open_file, pyarrow.feather.read_table) or polars (read_ipc), which decode the buffers this page only measures.

What makes the counts trustworthy is the format itself. Arrow IPC frames every message behind a continuation marker and a length prefix, and each record batch header states its own row count, so the total here is exact arithmetic over the file's own declarations, not an estimate. A 2 GB file inspects as fast as a 2 MB one, because only the metadata frames are read.

  • Reads both Arrow IPC layouts: file (.arrow, Feather v2) and stream, told apart by the ARROW1 magic
  • Schema fields with name, type family and nullability from the schema message
  • Record batch count and the exact total row count summed from batch headers
  • Dictionary batch count, body bytes, file bytes and the compression codec (LZ4 frame or ZSTD) when set
  • Pre-0.15 frames without the continuation marker still read
  • Refusals that name the check: missing ARROW1 magic, missing continuation marker, a file magic without its tail
  • Copyable text summary; the file never leaves your browser
Read the guide: Five-Minute Triage for pcap Captures and Arrow Files

Updated

How to use the Arrow File Inspector

  1. Drop a .arrow, .feather or .ipc file on the page, or click to choose one. Files from pyarrow, polars, pandas (to_feather), DuckDB and Arrow Flight all read the same way.
  2. Or press the sample button to inspect a real pyarrow-written file: 1,200 rows in three record batches, four fields, the same file this site's test suite pins.
  3. Read the glance row: layout (file or stream), exact rows, record batches, body bytes with the codec.
  4. Check the schema table against what you expected: a field typed Utf8 where your pipeline assumes Int, or a nullable column feeding a NOT NULL constraint, is the bug found before any load job runs.
  5. Use the batch count to judge chunking: one 10-million-row batch and ten thousand 1,000-row batches behave very differently in memory, and writers choose this, not readers.
  6. To see the data itself, open the file with pyarrow or polars; this page tells you whether that is worth doing and what you will get.

Worked examples

The sample file, read from its frames

Input

The built-in sample, written by pyarrow: 1,200 rows in batches of 500, 500 and 200

Output

Arrow IPC file · 1,200 rows in 3 batches · 31.7 KiB of data · 4 fields: id Int64, name Utf8, score Float64, active Bool

Each figure is a frame's own declaration: the schema message lists the four nullable fields, the three record batch headers state 500, 500 and 200 rows, and the body sizes sum to 31.7 KiB of the 33.2 KiB file. The same file is pinned byte for byte in this site's test suite, so these numbers are checked against pyarrow's writer, not against this page's own parser.

File or stream, told apart honestly

Input

A .arrows file exported from an Arrow Flight service or a socket

Output

Arrow IPC stream, with the counts walked frame by frame to the end-of-stream marker

A stream has no ARROW1 magic and no footer, so there is no index to trust: the inspector walks every message frame and adds up what the headers state. The layout chip saying stream rather than file also explains why pyarrow.ipc.open_file fails on it; open_stream is the matching reader.

A compressed Feather file

Input

A table written with write_feather(df, path, compression="zstd")

Output

The codec chip reads ZSTD; body bytes are the stored, compressed size

The compression lives in each record batch header's optional field, so the inspector reports it without decompressing anything. Feather V2 supports LZ4 frame and ZSTD per the pyarrow documentation; a figure much smaller than the in-memory table is the codec working, not rows missing.

The wrong format, named instead of guessed

Input

A Parquet file renamed to data.arrow

Output

Not Arrow IPC: neither the ARROW1 file magic nor a stream continuation marker (FFFFFFFF) starts the file.

Parquet and Arrow are sibling projects, constantly confused and structurally unrelated on disk: Parquet starts and ends with PAR1 and has its own metadata layout. The refusal names the two markers it looked for, and the Parquet Viewer on this site reads what this page will not pretend to.

Background and insight

The Arrow Columnar IPC specification defines an encapsulated message: a 4-byte continuation marker of 0xFFFFFFFF, a 32-bit little-endian metadata length, a flatbuffers Message, padding to an 8-byte boundary, then the body. Three message types exist: Schema, RecordBatch and DictionaryBatch. The schema comes first, record batch headers carry their row counts, and dictionary batches hold the shared values that dictionary-encoded columns reference. This inspector walks those frames with a minimal flatbuffers reader and sums what they state.

Two layouts carry the frames. The file format starts and ends with the magic "ARROW1" and closes with a footer holding a copy of the schema plus offsets to every block; the spec's own historical note says such files were sometimes called Feather V2, and pyarrow's Feather documentation describes V2 as exactly the Arrow IPC file format on disk. The streaming format has no magic and no footer: frames simply follow one another until an end-of-stream marker of 0xFFFFFFFF followed by a zero length. This page reads both, and tells you which one you have.

Compression is recorded per record batch, in an optional field of the batch header: the spec allows the lz4 codec, meaning the LZ4 frame format, or zstd, with uncompressed as the default. Body bytes shown here are the stored bytes, so a ZSTD file's figure is the compressed size. Dictionary encoding is why a file of a million repeated strings can be small: the strings live once in a dictionary batch and the column stores integer indices into it.

Common use cases

  • Identifying a mystery data handoff

    Someone ships a .arrow or .feather file with no README: the schema, row count and sizes answer what it is and whether it is the full export before any environment is set up.

  • Checking a schema contract before a load

    Field names, types and nullability read straight from the schema message catch the Utf8-where-Int-expected mismatch before a pipeline run fails an hour in.

  • Verifying what a writer produced

    After changing batch size, compression or dictionary settings, the batch count, codec and body bytes confirm the writer actually did what the configuration claims.

  • Row counts without loading anything

    The total is summed from batch headers, so a file too big to open in a notebook still answers "how many rows" in milliseconds here.

  • Telling Arrow from Parquet

    The two get mixed up in buckets and tickets constantly. The magic check settles which format a file really is, and points Parquet files at the right reader.

Tips and limitations

  • Row counts here are exact, not sampled: every record batch header states its length and the inspector sums them. If the count disagrees with what a writer logged, the file really is missing batches.
  • A .feather file is an Arrow IPC file: the Arrow docs describe Feather V2 as exactly the IPC file format on disk. The pre-2020 Feather V1 is a different, legacy layout this page does not read.
  • Body bytes exclude the metadata frames, so they will not equal the file size; the gap is schema, batch headers, padding and the footer. Both figures are shown.
  • Dictionary batches are not data rows. A file with 3 record batches and 2 dictionary batches has the rows of the record batches; the dictionaries hold shared values that encoded columns point into.
  • The type column shows the declared type with its width where the schema carries one (Int64, Float64, Timestamp); unit details such as a timestamp timezone live one level deeper in the schema flatbuffer and pyarrow prints them in full.
  • Streams from sockets or Flight dumps often end without the end-of-stream marker; the counts up to the cut are still right, because each frame is self-describing.

Sources and further reading

  1. Arrow Columnar Format: Serialization and Interprocess Communication (IPC), Apache Arrow. The encapsulated message framing, file and stream layouts, message types and the per-batch compression field
  2. Feather File Format, Apache Arrow. Feather V2 as the Arrow IPC file format, V1 as legacy, and the LZ4/ZSTD compression options
  3. Message.fbs, apache/arrow on GitHub. The flatbuffers schema of the Message envelope and RecordBatch header these frames carry

Frequently asked questions

What is a .arrow file?

An Apache Arrow IPC file: the Arrow columnar format's on-disk framing, a schema message plus record batches holding the data, bracketed by the ARROW1 magic with a footer at the end. It is what pyarrow, polars and DuckDB exchange tables in, and what Feather v2 files are under the extension.

How do I see what is inside an Arrow or Feather file without Python?

Drop it here: schema fields with types, record batches, exact row counts, sizes and compression, read from the file's own metadata frames in your browser. That identifies the file and its shape. To read the actual values you still want pyarrow or polars, which this page says plainly rather than half-rendering data.

What is the difference between the Arrow file and stream formats?

The file format starts and ends with the ARROW1 magic and closes with a footer indexing every block, so readers can seek. The streaming format is just frames in order, ending at an end-of-stream marker, built for sockets and pipes. pyarrow opens them with open_file and open_stream respectively, and this inspector names which you have.

Can this tool show the actual rows in an Arrow file?

No, by design. The columnar buffers stay encoded; this page reads the metadata frames and reports structure and sizes. Rendering values would mean reimplementing Arrow's buffer layouts badly, so the job is left to the real readers: pyarrow.ipc.open_file, pyarrow.feather.read_table or polars.read_ipc.

Is Feather the same as Arrow?

Feather v2 is: the Arrow documentation describes V2 as exactly the Arrow IPC file format on disk, and the IPC spec notes such files were sometimes called Feather V2. The original 2016 Feather V1 was a separate, limited format that predates the IPC spec; it is legacy, and this inspector reads the v2/IPC layout.

What compression do Arrow IPC files use?

Uncompressed by default, with two codecs the spec allows per record batch: lz4, meaning the LZ4 frame format, and zstd. The choice is recorded in each batch header's optional compression field, which is where this inspector reads it, and pyarrow's write_feather exposes it as the compression argument.

What is a record batch in Arrow?

A chunk of the table: some number of complete rows stored column by column, with a header stating the row count and the buffer layout. Files hold one or more of them, and writers pick the batch size. Dictionary batches are the companion kind, holding shared values that dictionary-encoded columns reference by index.

Is there an in-depth guide to the Arrow File Inspector?

Yes. “Five-Minute Triage for pcap Captures and Arrow Files” covers the background, how it works, common pitfalls and worked examples. Read the full guide.