Skip to content
Max Tamilan

JSON formatter and validator

Paste JSON. It is checked and formatted as you type.

Check
—

Add this tool to your website

Paste this code into your page. The tool runs in your visitors' browsers: what they type is not sent to you or to us. No cookies, no tracking.

Preview ↗

Your input never leaves your device. 100% private.

Ratings and reviews

Save to favourites

Average rating

0.0 / 5

No ratings yet. Be the first to rate this tool.

Ratings by stars

  • 5 5 stars 0
  • 4 4 stars 0
  • 3 3 stars 0
  • 2 2 stars 0
  • 1 1 star 0

Log in to save this tool, rate it and write a review. Log in Create an account

What people say

  • No reviews yet.
⚑ Report a problem

Wrong answer, a bug or a bad translation? Tell us. You do not need an account.

Do not paste personal data or the text, numbers or files you used in the tool. Describe the problem instead.

How to use the JSON formatter and validator

  1. Paste your JSON.
  2. Choose the indent and whether to sort keys.
  3. If it is not valid, the check shows the line and column to fix.
  4. Copy or download the formatted JSON.

Worked example

{"b":1,"a":[1,2]} becomes neatly indented JSON. {"a": 1,} is reported as invalid at line 1, column 9 (the extra comma).

How it is worked out

Your browser's built-in JSON parser checks the text; a small strict scanner finds the exact place of an error.

Limits

  • Comments and trailing commas are not allowed in standard JSON.

About the JSON formatter and validator

JSON formatter and validator — a free browser tool. Pretty print JSON, sort keys, and see exactly where invalid JSON breaks.

Use it when you need a quick, reliable result without installing an app or creating an account. Everything runs on your device, so what you type, paste or open is not uploaded, stored or logged.

Questions and answers

Is JSON formatter and validator free to use?

Yes. JSON formatter and validator is free, with no sign-up, no trial and no hidden cost.

Do my files or text leave my device?

Everything happens in your browser. What you type or choose is not sent to us, stored or logged.

What are the limits?

Comments and trailing commas are not allowed in standard JSON.

Can I use JSON formatter and validator on a phone?

Yes. It works in current versions of Chrome, Safari, Firefox and Edge on phones, tablets and computers.

Privacy

Everything happens in your browser. What you type or choose is not sent to us, stored or logged.

Command palette

↑ ↓ move Enter open Esc close

Keyboard shortcuts

Ctrl + K
Open search and commands
/
Open search and commands (when not typing)
?
Show this list (when not typing)
Esc
Close a window

On a Mac, use ⌘ instead of Ctrl.