JSON Formatter
Paste raw JSON — from a ChatGPT, Claude, or Gemini API response — and instantly format, validate, or minify it.
Why format AI API JSON?
When you call the ChatGPT, Claude, or Gemini APIs directly, responses come back as minified JSON — hard to read at a glance. Paste the raw response here to expand it into readable, indented JSON so you can inspect the choices, usage, token counts, and any tool calls.
Common AI API JSON fields
choices[0].message.content— the actual text responseusage.prompt_tokens— input tokens consumedusage.completion_tokens— output tokens generatedusage.total_tokens— total for billing purposesmodel— the exact model version used
Use our Token Calculator to estimate token usage before making an API call.