JSON Formatter & Validator
Paste JSON to beautify (2/4 spaces or tab), minify, sort keys and see syntax errors with line:column. Runs in your browser — free, with API.
JSON is formatted right in your browser — never sent to the server, never stored.
Developer API
Call this exact tool from your code over JSON REST — same result as on the web, authenticated with an API key.
Endpoint
POST https://sieutool.net/api/v1/tools/json-formatAuth: send the X-API-Key header — create a free key in Account → API keys.
- Rate limit60 requests/min
- Daily quota1.000 requests/day
- PriceFree · up to 1 items/request
Request parameters
| Parameter | Type | Description |
|---|---|---|
json * | string | JSON — API tối đa 200.000 ký tự (mỗi dòng 1 mục) |
indent | "2" | "4" | "tab" | "min" | Thụt lề(default "2") |
sort_keys | boolean | Sắp xếp khoá(default false) |
* required. Send JSON in the body, Content-Type: application/json.
Code examples
curl -X POST 'https://sieutool.net/api/v1/tools/json-format' \
-H 'Content-Type: application/json' \
-H "X-API-Key: $NXP_API_KEY" \
-d '{"json":"{\"ten\":\"SieuTool\",\"tools\":[\"json-format\",\"2fa-code\"],\"mien_phi\":true}","indent":"2","sort_keys":false}'Sample response
{
"ok": true,
"tool": "json-format",
"version": "1.0.0",
"data": {
"valid": true,
"output": "{\n \"ten\": \"SieuTool\",\n \"tools\": [\n \"json-format\",\n \"2fa-code\"\n ],\n \"mien_phi\": true\n}",
"stats": {
"keys": 3,
"values": 6,
"depth": 2,
"bytes_in": 69,
"bytes_out": 95,
"big_numbers": 0
}
}
}Try it (live call)
Main error codes
| HTTP | code | Meaning |
|---|---|---|
| 400 | BAD_INPUT / NO_INPUT / TOO_MANY_UNITS / BAD_NUMBER… | Invalid input — the message names the field |
| 401 | MISSING_API_KEY / INVALID_API_KEY / REVOKED_API_KEY | Missing, invalid or revoked API key |
| 429 | RATE_LIMITED / IP_RATE_LIMITED | Per-minute rate limit exceeded — wait for Retry-After |
| 429 | DAILY_QUOTA_EXCEEDED | Daily quota used up — the upgrade field suggests a paid plan |
| 429 | CLUSTER_QUOTA_EXCEEDED | Linked accounts (same device/network) used up the daily quota — the free quota is shared across the group, not multiplied per account |
| 503 | SERVER_BUSY / TOOL_BUSY / API_DISABLED | Server under heavy load or API paused — wait for Retry-After |
Every response carries X-RateLimit-Remaining / X-RateLimit-Remaining-Day; 429/503 errors include Retry-After (seconds).
How to use
A JSON formatter for developers working with APIs, webhooks and config files: paste messy or single-line JSON to get a readable indented view, or minify it for sending. If the JSON is invalid, the tool points to the exact line and column and explains the error. Everything runs in your browser.
- Paste JSON into the left box (or click Try an example). Large API responses of several MB are fine.
- Pick a style: 2 spaces, 4 spaces, Tab or Minify (one line); enable Sort keys to order keys alphabetically.
- Click Format (Ctrl+Enter). Valid JSON appears in the result box with key count, depth and size; invalid JSON shows line:column and the text near the error.
- Click Copy or Download .json to take the result.
Frequently asked questions
Related tools
VietQR Bank Transfer QR Generator
Free VietQR bank transfer QR generator: pick a Vietnamese bank, enter account number, amount and memo — every banking app can scan it. Download, embed, API.
21 runs
Hash MD5, SHA256, Base64 & URL Encoder
Compute MD5, SHA-1, SHA-256, SHA-512 of text or files; encode/decode Base64, URL and hex with full UTF-8. Runs in your browser — free, with API.
3 runs
2FA Code Generator (TOTP)
Paste 2FA secrets (one or many lines, also account|pass|SECRET and otpauth://) to get 6-digit codes that refresh every 30 seconds. Computed in your browser — secrets never leave your device. Free, with API.



