Free Avro sample, test and dummy files

A compact binary data format that carries its own schema, widely used in data pipelines. Download valid Avro test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.

Extension
.avro
MIME type
application/avro
Kind
Binary
Category
Data

Create a Avro file of any size

Choose any size from 757 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.

Avro files by size

Every file below is a valid Apache Avro object container file file of exactly the stated size. Open a file's page for its checksum and contents. Avro files cannot be displayed by a browser, so their pages show the file's details instead of a preview.

Avro sample files by size
FileSizeContentsDownload
1 KB Avro samplesample-avro-1kb.avro 1 KB1,024 bytes Records: 1 Download Avro
5 KB Avro samplesample-avro-5kb.avro 5 KB5,120 bytes Records: 35 Download Avro
10 KB Avro samplesample-avro-10kb.avro 10 KB10,240 bytes Records: 78 Download Avro
25 KB Avro samplesample-avro-25kb.avro 25 KB25,600 bytes Records: 205 Download Avro
50 KB Avro samplesample-avro-50kb.avro 50 KB51,200 bytes Records: 416 Download Avro
100 KB Avro samplesample-avro-100kb.avro 100 KB102,400 bytes Records: 837 Download Avro
200 KB Avro samplesample-avro-200kb.avro 200 KB204,800 bytes Records: 1,681 Download Avro
500 KB Avro samplesample-avro-500kb.avro 500 KB512,000 bytes Records: 4,197 Download Avro
1 MB Avro samplesample-avro-1mb.avro 1 MB1,048,576 bytes Records: 8,580 Download Avro
2 MB Avro samplesample-avro-2mb.avro 2 MB2,097,152 bytes Records: 17,032 Download Avro
3 MB Avro samplesample-avro-3mb.avro 3 MB3,145,728 bytes Records: 25,459 Download Avro
5 MB Avro samplesample-avro-5mb.avro 5 MB5,242,880 bytes Records: 42,619 Download Avro
10 MB Avro samplesample-avro-10mb.avro 10 MB10,485,760 bytes Records: 85,116 Download Avro
15 MB Avro samplesample-avro-15mb.avro 15 MB15,728,640 bytes Records: 126,496 Download Avro
20 MB Avro samplesample-avro-20mb.avro 20 MB20,971,520 bytes Records: 168,318 Download Avro
25 MB Avro samplesample-avro-25mb.avro 25 MB26,214,400 bytes Records: 210,139 Download Avro
30 MB Avro samplesample-avro-30mb.avro 30 MB31,457,280 bytes Records: 251,989 Download Avro
50 MB Avro samplesample-avro-50mb.avro 50 MB52,428,800 bytes Records: 419,201 Download Avro
100 MB Avro samplesample-avro-100mb.avro 100 MB104,857,600 bytes Records: 837,501 Download Avro

What is an Avro file?

Avro is a row-oriented serialisation format from the Apache Hadoop project. Records are written in a dense binary encoding with no field names or type markers, which is only decodable with the schema that wrote them, so an Avro file stores that schema as JSON in its header.

After the header, records are grouped into blocks. Each block gives its record count and byte length and ends with a 16-byte sync marker taken from the header, which lets a reader split a large file between workers or skip a damaged block.

How to recognise an Avro file

Software recognises an Avro file by its file signature: fixed bytes at the start of the file, also called magic bytes or a magic number.

The first bytes of every file. The letters "Obj" and the format version, 1.
Extension.avro
MIME typeapplication/avro
Also seen asavro/binary, application/octet-stream
SpecificationApache Avro 1.11
StructureHeader with schema and codec, then data blocks with sync markers
Codecsnull and deflate required; snappy, zstandard, bzip2 and xz optional
IntegersVariable-length zigzag encoding

What to test for

These are the behaviours that most often go wrong when software handles Avro files.

Strengths of Avro

  • Compact binary records, with the schema stored in the file.
  • Built for schema evolution: old and new readers can resolve each other's data.

Limitations of Avro

  • Not human-readable; inspecting a file needs a tool.
  • Row-oriented, so analytical queries over a few columns are slower than with a columnar format.

Typical uses of Avro test files

  • Testing ingestion jobs and bulk loaders
  • Checking schema resolution between a writer and a reader
  • Verifying handling of logical types such as dates and UUIDs
  • Load-testing readers with many blocks

Software that opens Avro

  • Apache Spark, Flink and Hive
  • Kafka Connect and schema registries
  • Google BigQuery, Amazon Redshift and Snowflake, for bulk loading
  • avro-tools, fastavro and the Apache Avro libraries

Specifications

Related

Avro sample files: questions

What schema do the Avro samples use?
A Customer record of twelve fields: a long, strings, a double, a boolean, an enum, a union with null, and two logical types, uuid and date. The schema is in the header of every file as JSON.
Are the Avro samples compressed?
No. They use the "null" codec, which every Avro library is required to support, so the records can also be inspected in a hex viewer.
What is the MIME type of an Avro file?
The MIME type is application/avro. You will also meet avro/binary and application/octet-stream in practice. The file extension is .avro.
Is a sample Avro file the same as a dummy or example Avro file?
Yes. Sample, test, dummy and example Avro files are different names for the same thing: an Avro file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy Avro file.