JSON Formatter
Formats, indents and validates JSON with precise error positions, key sorting and a…
Wraps a JSON Schema into a tool definition for OpenAI, Anthropic or Gemini, and flags parameters with no description.
The JSON Schema to Tool Definition wraps a JSON Schema into a tool definition for OpenAI, Anthropic or Gemini, and flags parameters with no description. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.
| OpenAI | Nested under function, schema in parameters |
|---|---|
| Anthropic | Top level, schema in input_schema |
| Gemini | Schema in parameters, no wrapper |
| Tool name | Letters, digits, underscore, hyphen — up to 64 characters |
| Descriptions | The only thing the model reads to fill an argument |
Wraps the schema in the right shape. It does not validate against each provider's supported subset of JSON Schema, which differs and is not fully documented by any of them.
Formats, indents and validates JSON with precise error positions, key sorting and a…
Checks whether JSON is valid and reports the exact line, column and reason for the first error…
Strips all whitespace from JSON to produce the smallest valid output, showing the bytes saved.
Converts a JSON array of objects into CSV, flattening nested keys and handling missing fields…
Turns CSV or TSV into a JSON array of objects, with type detection for numbers and booleans.
Converts JSON into well-formed XML with a configurable root element and array item naming.
Parses XML and converts it to JSON, preserving attributes and handling repeated elements as…
Converts JSON to clean YAML with correct indentation, quoting and multi-line string handling.
Parses YAML and outputs equivalent JSON, with support for anchors, lists and nested maps.
Escapes a string for safe embedding inside JSON, and unescapes a JSON string back to plain text.