Schema Generator

Infer a JSON Schema from a sample. Review required fields and types before using it as a contract.

Loading workspace…

Usage guide

Infer a JSON Schema from a sample. Review required fields and types before using it as a contract.

  1. 01

    Paste data or read from a file.

  2. 02

    Review the options; results update automatically. Run manually for larger inputs, and check warnings before applying changes.

  3. 03

    Copy or download the result. Your original document stays unchanged until you apply it.

Generated types and schemas are inferred from samples. Review nullability, optional fields and the complete API contract.

Reference specifications:JSON Schema

Example input

{
  "project": "ToJSON",
  "version": "1.0",
  "private": true,
  "features": [
    { "name": "Format", "enabled": true },
    { "name": "Convert", "enabled": true },
    { "name": "Explore", "enabled": true }
  ],
  "stats": { "tools": 30, "languages": 12 }
}

Frequently asked questions

Can I recover my documents after closing the page?

Documents are saved automatically in this browser and restored when you return. Closing a document with X deletes it. Browser cleanup can also remove saved work; download important results or export your workspace.

Can the generated Schema be used as-is?

It is inferred from one sample using 2020-12. Review types and required fields before using it as a contract.