Avro OCF Inspector
Inspect Avro Object Container File metadata, schemas, sync markers and blocks in your browser, with null, deflate and Snappy decoding.
Data is processed only in your browseravro.codec = null
Header: 2 metadata entries, sync 000102030405060708090a0b0c0d0e0f. Decoded 2 objects and 67 decompressed bytes in total.
{
"type": "record",
"name": "Message",
"namespace": "example",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "text",
"type": "string"
},
{
"name": "tags",
"type": {
"type": "array",
"items": "string"
}
}
]
}Offsets here start at the selected block’s decompressed data. Logical offsets are not original file offsets. The null codec preserves bytes; deflate/snappy produce a different logical layout.
{
"id": 42,
"text": "Hello, Avro!",
"tags": [
"local",
"browser"
]
}Every datum node’s [start, end) refers to the whole compressed payload in the original file; logicalStart/logicalEnd identify its exact range inside that block’s decompressed data. Use “Decompressed payload Hex” above to inspect logical bytes.
How to use
Avro OCF Inspector reads Avro Object Container Files: it validates the Obj magic, parses header metadata, the embedded schema, the 16-byte sync marker, then each block’s object count, compressed size, payload and sync marker. Schema-driven decoding covers records, enums, arrays, maps, unions, fixed values and named references, so you can see what an .avro file actually contains.
How to use: paste hex or Base64, or upload a file up to 2 MB. Null, deflate and snappy are supported, with local CRC32 verification for Snappy. The original-file view keeps real byte ranges for compressed payloads, while a separate decompressed-payload view shows logical offsets inside each block — compressed bytes cannot map one-to-one to decompressed bytes. Unsupported codecs such as bzip2, xz and zstandard are reported and their blocks skipped.
Diagnostics and privacy: sync mismatches, checksum failures, truncation and invalid datums produce locatable diagnostics. Blocks that cannot be decoded reliably are marked skipped rather than filled with fabricated output. Everything is parsed in your browser and no file is uploaded. Share links contain the original content (up to 6,000 bytes), so share only non-sensitive data.
Frequently asked questions
Which Avro codecs are supported?
Null, deflate (raw RFC 1951) and snappy, including Snappy CRC32 verification. Bzip2, xz, zstandard and unknown codecs are reported and their blocks skipped rather than presented as decoded.
Do I need to provide a schema separately?
No. The tool reads avro.schema from the Object Container File header. It supports records, enums, arrays, maps, unions, fixed values, named references and namespaces, then decodes each block’s objects against that schema.
Why are there two byte views?
The original-file view shows real offsets for compressed payloads and sync markers. The decompressed-payload view shows logical offsets inside a block. Compression has no one-to-one byte mapping, so the two are explicitly separated.
What happens when a sync marker or checksum fails?
Earlier valid results are kept, the problem is reported and the unreliable block is skipped. CRC32 mismatches, sync mismatches, truncation and invalid datums all produce diagnostics; later blocks resume only when their boundaries remain reliable.
How large a file can it handle?
Input is limited to 2 MB and decompressed output to 20 MB, with object, container-item, node and depth limits. Everything runs locally in your browser; share links contain the original content, so share only non-sensitive data.