Data types
Numbers, booleans, dates and nulls can become plain text when moved into loosely typed formats.
JSON and API Tools
Generate JSON Schema from JSON online. Paste sample JSON and create a schema for API validation, backend models, OpenAPI workflows and data contracts.
Infer Draft 2020-12 structure, required fields and common string formats from sample JSON.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "GeneratedSchema",
"type": "object",
"properties": {
"id": {
"type": "number"
},
"name": {
"type": "string"
},
"active": {
"type": "boolean"
},
"email": {
"type": "string",
"format": "email"
},
"website": {
"type": "string",
"format": "uri"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"owner": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
},
"additionalProperties": false,
"required": [
"id",
"name",
"active",
"email",
"website",
"tags",
"owner"
]
}API contract guide
A generated JSON Schema infers types and properties from the sample you provide. One sample cannot reveal every valid alternative, required-field rule, format or business constraint. Treat generated output as a starting point, then review required fields, nullability, arrays, numeric ranges, enums and additional-property behaviour.
Step-by-step
Paste representative valid JSON.
Generate the draft schema.
Review types, required fields, arrays and nested objects.
Add domain constraints and test valid and invalid examples.
Data transformation
Converting structured data is not only a formatting task. Arrays, nested objects, dates, numbers, null values and duplicate keys may map differently between JSON, CSV, XML, YAML and spreadsheets. A successful export should preserve the meaning needed by the destination system, not merely create a file that opens.
Numbers, booleans, dates and nulls can become plain text when moved into loosely typed formats.
Tabular formats require flattening, multiple sheets or repeated rows to represent nested arrays and objects.
Valid syntax does not guarantee that required fields, allowed values or relationships are correct.
UTF-8 handling is essential for names, symbols and multilingual data.
Before processing
After processing
Troubleshooting
Generate from multiple varied samples or edit the required list manually.
The sample set may not include all legitimate values; add representative examples and review unions.
Check schema draft support, format validation settings and vendor-specific extensions.
Create an initial contract for request and response payloads.
Describe messages used by queues and event streams.
Explain nested data structures to consumers.
Build positive and negative validation cases.
It can infer from a sample, but only domain knowledge and multiple examples can establish true required-field rules.
A field observed as null may need a union type or a clearer rule based on other samples.
It handles many structural constraints, but cross-record and application-specific rules may require custom validation.
Use the draft supported by your chosen validator and platform, and declare it explicitly.
That is a compatibility decision. Strict contracts catch unknown fields, while permissive contracts can ease evolution.
OpenAPI uses a schema vocabulary related to JSON Schema, with version-specific differences that should be checked.
The supported FormatForge data tools process input in your browser. Avoid pasting secrets, production credentials or personal data into any online utility.
Yes. For large files, deeply nested data or long configuration files, a desktop browser normally provides more memory and a better editing area.
Validate the result, compare representative records and test it in a non-production environment before using it in an application, pipeline or deployment.
Parsing, flattening, validating and rendering large nested structures uses your device memory and processor.