Skip to content
DoCodeHereDeveloper tools and services

API and testing tools · Researched comparison

Best JSON Schema Validator Tools in 2026

Ajv is the first pick for most JavaScript and Node.js teams. It supports the current JSON Schema drafts, runs in the browser and on the server, and is free under the MIT licence. Python teams should look at jsonschema, and Java teams at the networknt JSON Schema Validator. All three are open source, so the choice usually comes down to your language and how you want to handle draft versions.

By · Published 21 Nov 2026

We run no ads and no affiliate links at launch. The order of a list follows our published method.

Prices are the starting prices vendors list publicly. Plans change, so confirm the current price on the vendor page before you buy.

Key takeaways

ToolBest forStandout featureListed starting priceFree plan or trial
1 AjvJavaScript and Node.js projects that need fast schema validationSupports multiple JSON Schema draftsFree (open source)Free plan
2 jsonschemaPython services and scripts that validate JSON payloadsStraightforward Python APIFree (open source)Free plan
3 networknt JSON Schema ValidatorJava applications that need draft-aware JSON Schema validationSupports recent JSON Schema draftsFree (open source)Free plan
4 gojsonschemaGo services that validate JSON at the API boundaryNative Go library with no external runtimeFree (open source)Free plan
5 Hyperjump JSON Schema ValidatorJavaScript projects that need strict draft 2020-12 supportFocused on recent draftsFree (open source)Free plan
6 check-jsonschemaCommand-line schema checks in CI and pre-commit hooksRuns as a CLI without writing codeFree (open source)Free plan
7 VS Code JSON Language ServiceEditor-time schema validation while you write JSONInline errors as you typeFree (open source)Free plan

How we picked

We picked tools that are maintained and that genuinely validate JSON against a schema. Criteria were fit for the job, supported platforms and languages, licence and price, whether validation can run locally or offline, and the main limits such as draft coverage or editor-only scope. Sources are vendor pages, documentation and project repositories. Prices and plan details change, so confirm them on the vendor site before you commit.

01

Ajv

Best for: JavaScript and Node.js projects that need fast schema validation

Ajv (Another JSON Schema Validator) is a JavaScript library that compiles a JSON Schema into a validation function. It supports draft-04, draft-06, draft-07, 2019-09 and 2020-12 through separate entry points, so you pick the draft that matches your schema. It runs in Node.js and in browsers, which makes it usable for both server-side request validation and client-side form checks.

The project is MIT licensed and free to use. You install it with npm and add it to your build like any other dependency. Extensions cover formats, keywords and custom validation logic. The main limit is that draft support is split across modules, so a schema written for one draft may need a different import path. Teams that only need occasional validation may find a smaller library easier to start with.

Pros

  • Supports multiple JSON Schema drafts
  • runs in Node.js and browsers

Cons

  • Draft handling needs care when mixing versions
  • configuration has a learning curve

Price: Free (open source), as listed by the vendor (Ajv website). Confirm the current plan price before you buy.

Skip it if this limit matters to you: draft handling needs care when mixing versions.

Verdict. A sensible pick for javaScript and Node.js projects that need fast schema validation.

02

jsonschema

Best for: Python services and scripts that validate JSON payloads

jsonschema is a Python library for validating JSON instances against a schema. It implements several draft specifications and lets you choose a validator class for the draft you target. The API is small: load the schema, call validate, and catch the exception. That makes it a common choice for API tests, config checks and data pipeline steps.

It is free and open source, installable with pip. It runs wherever Python runs, including CI jobs and serverless functions. Format validation is optional and depends on additional packages, so date and email checks are not on by default. For very large documents or high-throughput services, a compiled validator in another language may be faster, but for typical Python workloads the library is enough.

Pros

  • Straightforward Python API
  • supports multiple draft versions

Cons

  • Performance is lower than compiled validators
  • format checking needs extra setup

Price: Free (open source), as listed by the vendor (jsonschema website). Confirm the current plan price before you buy.

Skip it if this limit matters to you: performance is lower than compiled validators.

Verdict. A sensible pick for python services and scripts that validate JSON payloads.

03

networknt JSON Schema Validator

Best for: Java applications that need draft-aware JSON Schema validation

This is a Java library for validating JSON documents against a schema. It supports draft-04, draft-06, draft-07, 2019-09 and 2020-12, and it integrates with common JSON libraries such as Jackson. You add it as a Maven or Gradle dependency and call it from your service code or tests.

The project is open source and free. It runs on the JVM, so it fits Spring, Quarkus and plain Java services. Validation errors are returned as a list you can map to API responses. The main limits are that it is Java-only and that the number of configuration options means you should read the documentation before wiring it into a pipeline. Teams on other runtimes should pick a validator for their language.

Pros

  • Supports recent JSON Schema drafts
  • usable from Maven and Gradle builds

Cons

  • Java-only
  • configuration options take time to learn

Price: Free (open source), as listed by the vendor (networknt JSON Schema Validator website). Confirm the current plan price before you buy.

Skip it if this limit matters to you: java-only.

Verdict. A sensible pick for java applications that need draft-aware JSON Schema validation.

04

gojsonschema

Best for: Go services that validate JSON at the API boundary

santhosh-tekuri/jsonschema is a Go library for JSON Schema validation. It supports draft-04, draft-06, draft-07, 2019-09 and 2020-12. You compile a schema once and reuse it, which suits HTTP handlers that check request bodies before they reach business logic.

It is free and open source and installs with the Go module system. Because it is a library, there is no separate service to run, and validation happens in the same process as your application. The trade-off is that it is Go-only, and the detailed error tree it returns usually needs to be reshaped into your API's error format. Teams that want a shared validation service across languages should look at a standalone validator instead.

Pros

  • Native Go library with no external runtime
  • supports several drafts

Cons

  • Go-only
  • error output needs formatting for end users

Price: Free (open source), as listed by the vendor (gojsonschema website). Confirm the current plan price before you buy.

Skip it if this limit matters to you: go-only.

Verdict. A sensible pick for go services that validate JSON at the API boundary.

05

Hyperjump JSON Schema Validator

Best for: JavaScript projects that need strict draft 2020-12 support

Hyperjump's JSON Schema validator is a JavaScript library built around the newer JSON Schema drafts, including 2020-12. It aims for close conformance to the specification and handles features such as unevaluated properties that appear in recent drafts. It runs in Node.js and browsers.

It is free and open source. You install it with npm and use it in the same way as other JavaScript validators. The project is smaller than Ajv, so there are fewer plugins and community answers when something goes wrong. It suits teams that have settled on a recent draft and want a validator that tracks the spec closely. Teams that need broad draft coverage or many extensions may prefer Ajv.

Pros

  • Focused on recent drafts
  • works in Node.js and browsers

Cons

  • Smaller ecosystem than Ajv
  • fewer third-party extensions

Price: Free (open source), as listed by the vendor (Hyperjump JSON Schema Validator website). Confirm the current plan price before you buy.

Skip it if this limit matters to you: smaller ecosystem than Ajv.

Verdict. A sensible pick for javaScript projects that need strict draft 2020-12 support.

06

check-jsonschema

Best for: Command-line schema checks in CI and pre-commit hooks

check-jsonschema is a command-line tool that validates JSON and YAML files against JSON Schema. It is built on the jsonschema library and is aimed at CI pipelines, pre-commit hooks and one-off checks. You point it at a schema and a set of files, and it reports pass or fail with exit codes that CI systems understand.

It is free and open source and installs with pip. It can also fetch well-known schemas for common file types, which saves writing a schema for standard config files. The limit is that it is a CLI, not a library, so application code that needs validation at runtime should use jsonschema directly. It runs offline once installed, which helps when you cannot send data to a web service.

Pros

  • Runs as a CLI without writing code
  • integrates with pre-commit

Cons

  • Python-based install
  • not a library for in-process validation

Price: Free (open source), as listed by the vendor (check-jsonschema website). Confirm the current plan price before you buy.

Skip it if this limit matters to you: python-based install.

Verdict. A sensible pick for command-line schema checks in CI and pre-commit hooks.

07

VS Code JSON Language Service

Best for: Editor-time schema validation while you write JSON

The JSON Language Service is the component behind JSON validation in Visual Studio Code. You associate a schema with a file or glob in settings, and the editor shows errors and completions as you type. It supports common drafts and reads schemas from local files or URLs.

It is free and open source and ships with VS Code, so there is nothing extra to install for basic use. It catches mistakes early, before code runs. The limit is that it is an editor feature, not a validator you can call from a service. Runtime checks still need a library such as Ajv or jsonschema. It also depends on the editor's schema association settings, which can be confusing on large projects.

Pros

  • Inline errors as you type
  • works with schema associations in settings

Cons

  • Editor-only, not a runtime validator
  • tied to VS Code behaviour

Price: Free (open source), as listed by the vendor (VS Code JSON Language Service website). Confirm the current plan price before you buy.

Skip it if this limit matters to you: editor-only, not a runtime validator.

Verdict. A sensible pick for editor-time schema validation while you write JSON.

Who should use what

JavaScript and Node.js teams should start with Ajv, and consider Hyperjump if they target draft 2020-12 closely. Python teams should use jsonschema in code and check-jsonschema in CI. Java services fit the networknt validator, and Go services fit santhosh-tekuri/jsonschema. Anyone who wants feedback while editing JSON should enable schema associations in VS Code rather than adding a runtime dependency.

What to check before you buy

FAQ

What is a JSON Schema validator?

It is a tool or library that checks whether a JSON document matches the rules in a JSON Schema, such as required fields, types and value ranges. It returns pass or fail plus error details. Validators exist as libraries for most languages and as command-line or editor tools.

Do I need a paid tool to validate JSON Schema?

No. The common validators for JavaScript, Python, Java and Go are open source and free. Paid products exist for API platforms and schema registries, but basic validation does not require one.

Which draft versions should I target?

New projects should target 2020-12 where the tool supports it. Older systems often use draft-07. Check the validator's documentation, because draft support is often split across modules or configuration flags.

Can I validate JSON in the browser?

Yes. Libraries such as Ajv and Hyperjump run in browsers, so validation can happen client-side without sending data to a server. That is safer for sensitive input than pasting data into a third-party web page.

Is it safe to use an online JSON validator?

Be careful. A web page that sends your JSON to a server exposes that data. Prefer tools that run locally in the browser or offline, and never paste secrets, tokens or production data into third-party pages.

Sources we checked

  1. Ajv (official site)
  2. VS Code JSON Language Service (official site)
  3. VS Code JSON Language Service (official site)
  4. VS Code JSON Language Service (official site)
  5. VS Code JSON Language Service (official site)
  6. VS Code JSON Language Service (official site)
  7. VS Code JSON Language Service (official site)

Change log. First published 21 Nov 2026.