JSON Toolkit API

Validate, format, minify, diff, and convert JSON to CSV via REST API.

5 Actions
Available
<50ms
Response
500KB
Max

How It Works

Step 1
Send JSON
Pass your JSON input via POST request
Step 2
Choose Action
Pick: validate, format, minify, diff, or to_csv
Step 3
Get Result
Receive the processed output instantly

Playground

3 free requests/day without API key

Choose an action and click Process

API Documentation

Base URL
https://json-toolkit-nu.vercel.app
Authentication
X-API-Key: your_key (header) or ?key=your_key (query)Get your free key below
POST/api/json

Perform JSON operations: validate, format, minify, diff, or convert to CSV.

Request Body (JSON)

FieldTypeRequiredDescription
actionstringyesOne of: validate, format, minify, diff, to_csv
inputstringyesJSON string to process
input2stringdiff onlySecond JSON string for diff comparison

Actions

ActionDescription
validateCheck if JSON is valid
formatPretty-print with indentation
minifyRemove all whitespace
diffCompare two JSON objects
to_csvConvert JSON array to CSV

Example Request

POST /api/json
Content-Type: application/json
X-API-Key: your_key

{
  "action": "format",
  "input": "{\"name\":\"John\",\"age\":30}"
}

Example Response

{
  "success": true,
  "action": "format",
  "result": "{\n  \"name\": \"John\",\n  \"age\": 30\n}"
}

Error Responses

// 400 — Bad Request
{ "error": "Missing 'action' parameter" }

// 401 — Unauthorized
{ "error": "Invalid API key" }

// 429 — Rate Limited
{ "error": "Daily limit reached. Upgrade your plan." }

Get API Key

Get a free API key for 6 requests/day. No credit card required.

Usage

  • Add header: X-API-Key: your_key
  • Or query param: ?key=your_key

Limits

  • Playground (no key): 3 req/day
  • Free tier (with key): 6 req/day
  • Paid plans: see pricing below

Pricing

Start free. Pay only when you need more.

Free
$0
  • 6 requests/day
  • All actions
  • 500KB max input
Starter
🚀 Launch Price
$12$5/mo
  • 500 requests/day
  • All actions
  • 500KB max input
Business
🚀 Launch Price
$59$29/mo
  • 20,000 requests/day
  • All actions
  • Priority support