JSON Schema Validator Online
Validate your JSON documents against JSON Schema definitions using Ajv. Test data types, formats, required properties, and custom schemas locally in your browser with instant error diagnostics.
Launch Online JSON Schema Validator →Ajv-Powered Validation Features
- Continuous Validation: Errors are highlighted in real time as you edit JSON or Schema.
- Exact Source Mapping: Error markers pinpoint line numbers, column numbers, and
instancePathJSON pointers. - Preset Schema Templates: Instantly load schemas for User Profiles, API Responses, GeoJSON, and Config Files.
- Format Checks: Validates
email,uuid,date-time,ipv4,ipv6,hostname, anduristring formats.
Sample JSON Schema Definition
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "User",
"type": "object",
"properties": {
"id": { "type": "string", "format": "uuid" },
"username": { "type": "string", "minLength": 3 },
"email": { "type": "string", "format": "email" },
"role": { "type": "string", "enum": ["admin", "editor", "viewer"] }
},
"required": ["id", "username", "email"]
}