DevTools Hub

Navigation

Tools

JSON Schema Validator

Validate JSON data against a JSON Schema to ensure it meets your requirements.

JSON Data
Enter the JSON data you want to validate
JSON Schema
Enter the JSON Schema to validate against
About JSON Schema Validation

JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It helps ensure that your JSON data adheres to a specific structure and contains valid values.

Common Schema Keywords

  • type - Specifies the data type (string, number, object, array, boolean, null)
  • properties - Defines the properties of an object
  • required - Lists required properties
  • minimum/maximum - Sets numeric constraints
  • minLength/maxLength - Sets string length constraints
  • pattern - Validates strings against a regular expression
  • format - Validates strings against common formats (email, date, etc.)
  • enum - Restricts values to a set of allowed values

This tool uses Ajv, a popular JSON Schema validator for JavaScript.