Avro Schema Validator - Validate Apache Avro Schemas Online
Free online tool to validate Apache Avro schemas for Kafka, Hadoop, and data streaming applications.
Loading Avro Schema Validator...
How to Validate Avro Schemas - Complete Guide
Input Your Avro Schema
Get your Apache Avro schema ready for validation. You have several convenient options:
.avsc or .json fileExample Avro schema:
{ "type": "record", "name": "User", "namespace": "com.example.avro", "fields": [ { "name": "id", "type": "int" }, { "name": "name", "type": "string" }, { "name": "active", "type": "boolean" } ] }
Automatic Schema Validation
Watch as your Avro schema is validated in real-time using the official avsc library. The validator checks for:
Download or Copy Validated Schema
Once your schema is validated, you can easily save or share it:
.avsc file for version controlUse your validated schema in:
What is an Avro Schema?
An Avro schema is a JSON document that defines the structure and data types of your data. Created by Apache, Avro schemas enable:
- •Schema evolution: Backward and forward compatibility as your data structure changes
- •Data validation: Type checking and structure enforcement at serialization time
- •Efficient encoding: Compact binary serialization for fast data transfer
- •Language interoperability: Use the same schema across Java, Python, C++, and more
Frequently Asked Questions
How do I validate an Avro schema?
Paste the schema into the editor or upload an .avsc or .json file. It is checked as you type: first as JSON, then with the avsc library against the Avro specification. If something is wrong you get the field it concerns and, for JSON mistakes, the line and column.
What Avro types are supported?
All the primitive types (null, boolean, int, long, float, double, bytes, string) and the complex ones (record, enum, array, map, union, fixed), including nested and recursive records, named-type references, namespaces and aliases. Logical types such as decimal, date, timestamp-millis and uuid are accepted, and a decimal whose scale or precision readers would ignore gets a warning.
Does a valid result mean Kafka Schema Registry will accept it?
It means the schema itself is well formed, which is what the registry checks first. The registry also checks compatibility with the versions already registered under your subject, and that comparison needs your registry, so it is not done here.
What mistakes does it catch?
Broken JSON (with comments and trailing commas called out), unknown or misspelled type names such as "integer", records without a name or fields array, invalid or duplicate field names, duplicate enum symbols, nested unions, defaults that don't match their type, union defaults that don't match the first branch, and long defaults outside the 64-bit range.
How do I create an Avro schema from JSON data?
Use the Avro Schema Generator to infer a schema from a sample of your JSON data, then paste the result here to check it before you use it.
Is this Avro schema validator free?
Yes, and there is nothing to sign up for. Your schema is checked in your browser and is not uploaded anywhere. Uploaded files can be up to 10 MB.
Related Tools
JSON to Avro
Convert JSON data to Apache Avro format with automatic schema generation
Avro to JSON
Convert Apache Avro data to JSON format with schema validation
Avro Fixer
Fix and repair broken Avro schemas with automatic syntax error correction
Avro Schema Generator
Generate Apache Avro schemas from JSON data with automatic type inference
Avro Formatter
Format and beautify Apache Avro schemas with proper indentation
CSV to Avro
Convert CSV files to Apache Avro format with automatic schema generation