HomeAll toolsAvro OCF Inspector

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 browser
Avro OCF parsing is entirely local: no file upload, server connection, or automatic address-bar changes. Decompression and datum decoding are bounded by input, output, node, container-count, and depth limits. “Share link” copies a link containing the original input; share only non-sensitive data.
322 B · 1 blocks · 2 objects · 2 nodes · null
Avro OCF bytes (Obj\x01)
Codec and container summarySupported

avro.codec = null

Header: 2 metadata entries, sync 000102030405060708090a0b0c0d0e0f. Decoded 2 objects and 67 decompressed bytes in total.

avro.schema JSON
{
  "type": "record",
  "name": "Message",
  "namespace": "example",
  "fields": [
    {
      "name": "id",
      "type": "long"
    },
    {
      "name": "text",
      "type": "string"
    },
    {
      "name": "tags",
      "type": {
        "type": "array",
        "items": "string"
      }
    }
  ]
}
Block overview
1 / 1
Decompressed payload Hex · logical offsets
1 / 1

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.

L0000541848656c6c6f2c204176726f21040aT·Hello, Avro!··
L00106c6f63616c0e62726f77736572008280local·browser···
L00208080808080201ee7acace4ba8ce69da1····· ··········
L0030e6b688e681af040ce4b8ade69687064f···············O
L0040434600CF·
Item overview
Item #1 typed JSONexample.Message · [239, 306)
{
  "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.

Decoded tree · byte ranges
example.Message3 fields
longid42
stringtextHello, Avro! 48656c6c6f2c204176726f21
array<string>tags2 items
stringlocal 6c6f63616c
stringbrowser 62726f77736572
example.Message3 fields
longid9007199254740993
stringtext第二条消息 e7acace4ba8ce69da1e6b688e681af
array<string>tags2 items
string中文 e4b8ade69687
stringOCF 4f4346
Original file bytes · linked both ways
00004f626a0104166176726f2e736368656dObj···avro.schem
001061f0027b2274797065223a227265636fa··{"type":"reco
00207264222c226e616d65223a224d657373rd","name":"Mess
0030616765222c226e616d65737061636522age","namespace"
00403a226578616d706c65222c226669656c:"example","fiel
00506473223a5b7b226e616d65223a226964ds":[{"name":"id
0060222c2274797065223a226c6f6e67227d","type":"long"}
00702c7b226e616d65223a2274657874222c,{"name":"text",
00802274797065223a22737472696e67227d"type":"string"}
00902c7b226e616d65223a2274616773222c,{"name":"tags",
00a02274797065223a7b2274797065223a22"type":{"type":"
00b06172726179222c226974656d73223a22array","items":"
00c0737472696e67227d7d5d7d146176726fstring"}}]}·avro
00d02e636f646563086e756c6c0000010203.codec·null·····
00e00405060708090a0b0c0d0e0f04860154···············T
00f01848656c6c6f2c204176726f21040a6c·Hello, Avro!··l
01006f63616c0e62726f7773657200828080ocal·browser····
011080808080201ee7acace4ba8ce69da1e6···· ···········
0120b688e681af040ce4b8ade69687064f43··············OC
01304600000102030405060708090a0b0c0dF···············
01400e0f··

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.

See all questions

Go deeper

Related tools