Avro Inspector
Open an Apache Avro object-container file (.avro) and inspect its binary structure directly: the Obj magic, the embedded JSON writer schema, the compression codec (null, deflate, snappy), the 16-byte sync marker, and the sequence of data blocks with their record counts, block sizes and how many sync markers match. The tool parses the Avro file-metadata map and the block list end to end, so you can see what schema and codec a file actually declares before you try to read it. It flags a missing magic, an unknown codec, a block that overruns the file, and a mismatched sync marker. Everything runs on-device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Drop a file here, or browse
Accepts: .avro,application/octet-stream,application/avro
Files stay on your device.
Ctrl+V to paste an image
Options
Drop a file above to begin
Your file are processed on this device and never uploaded.
How it works
The object-container layout
An Avro object-container file starts with the four-byte Obj magic and version byte, followed by a metadata map and a 16-byte sync marker. After that come data blocks, each holding a record count, a byte size, the encoded records and a repeated copy of the sync marker. The inspector parses that structure end to end and reports the offset and size of every block it finds.
Schema and codec
The metadata map is where Avro stores avro.schema and avro.codec. The inspector reads the writer schema as JSON and shows it in its own view, and reports the declared codec, which is normally null, deflate or snappy. Seeing the schema first is useful when a file fails to load elsewhere: the schema is the contract the records were written against, and a mismatch with your reader is the usual cause.
Sync markers and record counts
Every data block ends with the same 16-byte sync marker that follows the header. The inspector compares each block trailing marker against the header marker and reports whether it matches, which catches a truncated or spliced file. The total record count is the sum of the per-block counts, so you can confirm how many rows a file declares before spending time decoding it.
What it does not do
The inspector reads block headers but does not decompress deflate or snappy payloads and does not decode individual records. That would require applying the schema to every value, and the point of this tool is a fast structural audit. If a block overruns the file, the magic is missing, or the sync marker does not match, the tool says so rather than returning a partial table.
Questions
Does the inspector decode the records?
No. It reports the schema, codec, block sizes and record counts, but it does not apply the schema to the compressed payloads. Use it to audit a file, then read the rows with a full Avro reader.
Which codecs can it recognise?
It reports the codec string stored in the file metadata, including null, deflate and snappy. Recognising the name is not the same as decompressing the block, which this tool deliberately leaves alone.
Why do the sync markers matter?
They let an Avro reader find the next block after a seek or a partial write. If a block trailing marker differs from the header marker, the file was probably truncated or concatenated incorrectly, and the inspector flags it.
How large a file can I inspect?
Up to 256 MB, with the block table capped at 5000 rows so the report stays readable for very large files.
Related tools
See categoryFile Signature Inspector
Identify common file formats from their binary signatures, not just extensions.
CBOR Decoder
Decode CBOR into readable JSON, with a structure outline and tag interpretation.
MessagePack Decoder
Decode a MessagePack binary message on-device into readable JSON with a type breakdown of every value.
Protobuf Decoder
Decode a Protocol Buffers binary message on-device into readable JSON with a per-field type breakdown.