{}
SchemaBox
Documentation

What SchemaBox does — and how to use it without reading the source

SchemaBox is a set of ten free tools for anyone who works with JSON Schemas — front-end, back-end, full-stack, beginner or expert. Paste something, get an answer, and nothing leaves your browser. This page explains what each tool does, when to reach for it, and what it honestly cannot do yet.

On this page

How SchemaBox is organized

The ten tools fall into four moments of real work. You do not need all of them at once — pick the one that matches what you are doing right now.

Create a schema

Generator — infer a schema from a JSON example you already have.
Library — start from twelve ready-made, verified schemas.
StrictJSON (external) — describe your data in plain words, get a schema.

Check a schema

Validator — does this JSON match this schema? Plain-language errors.
Quality — score 0–100, with concrete fixes.
Compare — what changed between v1 and v2, and what breaks.

Transform a schema

Converter — JSON Schema ↔ Zod ↔ Pydantic ↔ TypeScript, 12 directions.
Format — beautify, minify, or sort keys of any JSON.

Use a schema

Sample data — generate realistic, valid JSON from a schema.
Share — pack a schema (and data) into a link that opens in the Validator.

Validator

What it is. Paste your JSON data on the left and your JSON Schema on the right. SchemaBox tells you whether the data is valid — and if it is not, it explains exactly which field failed and why, in plain language (not cryptic codes).

When to use it. Before deploying an API that returns JSON. When a client sends you a payload that “does not work” and you want to see what is wrong. When you write a schema and want to confirm that a real example passes it.

How it works. Validation runs locally with Ajv 2020, loaded in your browser. Every error is translated into a sentence: “Missing required field: email”, “Field age should be an integer, but it is a string”, and so on. Two quality hints are also checked automatically: an email field with no pattern, and stacked regex quantifiers that crash validators.

Honest limit. Only JSON objects can be validated as schemas — arrays and single values cannot.

Generator

What it is. Paste a real JSON example — an API response, a config file, anything. SchemaBox infers the types, the nested objects, the arrays and the common formats, and writes the JSON Schema for you.

When to use it. When you have data but no schema. When you are reverse-engineering an API. When you want a starting point to refine by hand instead of writing every property from scratch.

How it works. Three options: mark every field as required, detect formats (email, date, uuid, uri), and infer enums for small string sets. The result is a draft-2020-12 schema you can copy or send straight to the Validator.

Honest limit. Inference is a best guess. It cannot know which fields are truly optional, or which strings are really emails — review the result before relying on it.

Converter

What it is. Convert a schema between JSON Schema, Zod, Pydantic (v2) and TypeScript — twelve directions. JSON Schema is the pivot: your source is parsed into a schema, then written out in the format you need.

When to use it. Your back-end is Pydantic and your front-end is TypeScript — you want one source of truth. You are migrating a Zod validation layer to JSON Schema. You inherited a JSON Schema and need a TypeScript interface fast.

How it works. Parsers understand Zod chains (`.email()`, `.min()`, `.pattern()`), Pydantic v2 annotations (`constr`, `conint`, `Field(...)`, `Optional[...]`), and TypeScript interfaces with JSDoc tags (`@format`, `@type`, `@minLength`). Emitters write clean, idiomatic code in each target.

Honest limit. Unions of non-literal types, discriminated unions, recursive types, Pydantic v1, and cross-file references are not supported yet. The converter says so clearly instead of inventing a wrong result.

Quality

What it is. Paste a schema and get a score from 0 to 100, a grade (A–D), and a list of concrete findings: missing titles, missing descriptions, missing `required` lists, deep nesting, unresolved `$ref`, empty objects, and more.

When to use it. Before sharing a schema with your team or publishing it in a library. When you inherit a schema and want a quick health check. When you want to know why a schema feels harder to read than it should.

How it works. Deterministic analysis: every schema starts at 100, each error costs 25, each warning 10, each suggestion 3, and good points (formats, bounds, examples) earn a small bonus. Ajv 2020 checks that the schema compiles. Same schema, same score, every time.

Honest limit. The score is a guide, not a verdict. A schema can score 100 and still be wrong for your domain — the tool checks form, not meaning.

Sample data

What it is. Paste a schema and get realistic, valid JSON that respects it — real names, cities, emails, dates, prices. Never “xxx” or “string”. Deterministic: same schema and seed, same sample.

When to use it. You need test data that actually validates. You are building a UI and want realistic content. You want to check that a schema accepts the shape you expect before writing code against it.

How it works. Field names guide the choice (an `email` field gets an email, a `city` gets a city). Patterns are honored with a small regex reader. Every sample is checked against your schema with Ajv 2020.

Honest limit. `$ref` is not resolved, `anyOf`/`oneOf` only supports nullable pairs, `allOf` only a single branch. When something is not supported, the generator says so instead of inventing a fake sample.

Library

What it is. Twelve ready-made schemas from the StrictJSON library, verified and scored — receipt parser, ticket triage, job extractor, book/ISBN, product review sentiment, meeting action items, invoice line items, support ticket priority, resume skills, email intent, postal address, calendar event.

When to use it. You recognize your shape in one of them and want to start from a solid base instead of a blank file. You want to see how a good schema is structured for a common use case.

How it works. Each card opens directly in the Validator, the Sample data generator, the Quality checker or the Converter — no copy-paste. The schema travels via your browser’s local storage, then the key is cleared.

Compare

What it is. Paste version 1 and version 2 of a schema. SchemaBox lists every addition, removal and edit — and flags the breaking changes, so you know before you deploy whether old data still validates.

When to use it. Before bumping a schema version. During code review, when a colleague changed a schema and you want to see the impact. When a client asks “will this break anything?” and you want a real answer.

How it works. Removing a field is breaking. Adding a required field is breaking. Tightening a constraint (higher minimum, narrower enum, added pattern) is breaking. Widening a type is safe. Changing a pattern or format is always breaking — the tool cannot prove the new one still accepts every old value.

Honest limit. A renamed field shows up as one removal + one addition: the tool compares structure, it cannot guess your intent. This is a structural comparison, not a proof.

Format

What it is. Paste any JSON — a schema or plain data. Beautify it with 2 spaces, 4 spaces or a tab, minify it to a single line, or sort its keys alphabetically at every depth.

When to use it. A minified JSON from an API is unreadable — beautify it. A schema file has its keys in random order — sort them for readability. You need to paste a compact JSON into a config field — minify it.

How it works. String contents are never touched. Arrays keep their order; values inside arrays keep their order too. Invalid JSON is reported with the exact line and column, plus a caret under the offending character.

Share

What it is. Paste a schema (and, if you like, some data). SchemaBox packs them into a link that opens in the Validator with both boxes already filled in. No account, no upload — the link carries everything.

When to use it. You want a colleague to see exactly the schema and data you are looking at. You are filing a bug and want to include a reproducible case. You are onboarding someone and want to skip the “paste this here, then paste that there” dance.

Honest limit. Very long schemas produce very long links. Above ~2,000 characters, some older email clients may cut them — paste as a clickable link rather than plain text.

The principles shared by every tool

Where to start

  • I have a JSON example and no schema → start with the Generator.
  • I have a schema and want to check it → Validator for correctness, Quality for readability.
  • I need to convert Zod, Pydantic or TypeScript → Converter.
  • I changed a schema and want to know what breaks → Compare.
  • I need test data that validates → Sample data.
  • I want to share a schema with a colleague → Share.
  • I just want a solid schema to start from → Library.

Frequently asked questions

Are my data sent anywhere?

No. Every tool runs entirely in your browser. Nothing is uploaded, stored, or logged. See the privacy policy for the full detail.

Does it work offline?

Partially. The core logic is local, but Ajv (the validation engine) and the fonts come from public CDNs. Once the page is loaded, most tools keep working even if you lose connection.

Which JSON Schema version is supported?

The Validator and Quality tools use Ajv 2020 (draft 2020-12). The Library ships draft-07 schemas, which compile fine in Ajv 2020 once the $schema declaration is dropped — the tool does this automatically.

Can I use it at work, in a company?

Yes. There is no account, no data sent, no license restriction. Use it freely in any professional context.

Is it really free?

Yes. No paywall, no account. A Ko-fi button lets you support the project if you want — entirely optional.

Need a schema from plain words instead? Generate one with StrictJSON →