Skip to main content
CuteJSON
↑↓ Navigate Enter Select Esc Close

OpenAPI Helpers

Turn a JSON document into an OpenAPI schema, build an example from a schema, or check an example against one.

Back to all tools

Keyboard shortcuts

These work wherever the matching action exists on this page.

Open the command palette
Ctrl/Cmd + K
Run the main action
Ctrl/Cmd + Enter
Format
Ctrl/Cmd + Shift + F
Minify
Ctrl/Cmd + Shift + M
Copy output
Ctrl/Cmd + Shift + C
Open file
Ctrl/Cmd + Shift + O
Download output
Ctrl/Cmd + S
Close this dialog
Esc
Open this dialog
F1 / ?

Local data

Everything below is stored only in this browser, on this device. None of it is ever sent anywhere, and closing this dialog is not required for that to stay true.

Unsaved drafts
Tools with remembered options

Recently opened files

    No files opened yet on this device.

    Share via link

    The content is packed into the part of the link after the # sign, which browsers never send to a server. Nothing here is uploaded to cutejson.com or anywhere else.

    Shares the first input on this page. On a tool with more than one, only that one is included.

    Nothing to share yet. Paste or type something first.

    JSON document

    Load from a URL

    Fetches the URL directly from your browser and loads whatever text it returns into this pane.

    Output

    The result appears here.

    Runs entirely in your browser. Nothing you paste is uploaded, and you can confirm that in your browser Network tab.

    About this tool

    Three things people do with an OpenAPI schema, on one page. "JSON to schema" infers a schema the same way the JSON Schema Generator does, then writes it in whichever OpenAPI dialect you pick: 3.1, where a schema object is JSON Schema itself, or 3.0, which has no type array and spells a nullable field as a single type plus nullable: true instead. "Schema to example" builds one JSON value that satisfies a schema, preferring an example or default the schema already states over inventing one. "Validate example" checks a document against a schema and lists every keyword it failed, resolving OpenAPI 3.0's nullable keyword first so a 3.0 schema is checked correctly rather than against JSON Schema's own type array rules. All three understand local $ref, allOf, anyOf and oneOf.

    How to use

    1. Pick what you want: JSON to schema, schema to example, or validate an example.
    2. Paste the input the mode asks for, or load the sample.
    3. Press the button. Switch the OpenAPI version any time to see the same input written the other dialect's way.