Text

Format & validate JSON

Validate JSON, add readable indentation or save compact output. Large numbers stay exact. Free, no sign-up, right in your browser.

Free · No sign-up · No subscription

Workspace

Locally in your browser

At most 500,000 characters, 2 MB per file and 100 nesting levels. Numbers, key order and string spelling are preserved. Duplicate keys are rejected. Comments are not JSON.

Result
Ready when you are.Your result will appear here after processing.

Questions about this tool

How does this tool work: Format & validate JSON?

Free, no sign-up, right in your browser. Paste JSON or load a file. Choose indentation and format. Invalid input produces an error message.

Does formatting change large JSON numbers?

No. The formatter changes only whitespace outside strings. Numbers are copied from the original without rounding. Value spelling and ordering are preserved too.

What inputs, outputs and limits apply?

Input: JSON text or a UTF-8 JSON file. Output: Validated, indented or compact JSON; JSON download. Limits: At most 500,000 characters, 2 MB per file and 100 nesting levels. Numbers, key order and string spelling are preserved. Duplicate keys are rejected. Comments are not JSON.

Instructions, example and file limits

Formats, inputs and limits

Input
JSON text or a UTF-8 JSON file
Output
Validated, indented or compact JSON; JSON download
Limits & notes
At most 500,000 characters, 2 MB per file and 100 nesting levels. Numbers, key order and string spelling are preserved. Duplicate keys are rejected. Comments are not JSON.

Quick instructions

Paste JSON or load a file. Choose indentation and format. Invalid input produces an error message.

Practical example

Paste {"name":"Mia","active":true} and format it with two-space indentation.

Additional notes

Good to know

These tools do not send your inputs to a server. Your web host processes technical connection data when you visit the site.

Related tools