About this tool
Paste JSON and get it neatly indented, or minified to a single line. If it is not valid, you get the parser's error message so you can find the problem. Because it runs entirely in your browser, it is safe to paste API responses or config you would not want to send to a random website.
How to use it
- 1 Paste your JSON into the input box.
- 2 Choose an indent size, or "Minify" to strip all whitespace.
- 3 Click "Format" - valid JSON is reformatted, invalid JSON shows the error.
- 4 Copy the result from the output box.
Frequently asked questions
Is my JSON sent to a server?
No. It is parsed and reformatted by your browser with the built-in JSON engine.
What does "minify" do?
It removes every space and line break, giving the smallest valid JSON - useful for embedding in code or config.
Why do I get an error on valid-looking JSON?
Common causes are trailing commas, single quotes instead of double, unquoted keys, or a stray character - the error message points to roughly where it stops parsing.
Embed this tool
Add this free tool to your own website — copy the code below. It stays up to date automatically.
More free tools
Word & Character Counter
Live word, character, sentence and reading-time counts as you type.
Base64 Encoder / Decoder
Convert text to Base64 and back, with full Unicode support, in your browser.
Text Case Converter
Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and more.
URL Encoder / Decoder
Percent-encode text for safe use in URLs, or decode an encoded URL back to readable text.
Unit Converter
Convert length, weight, temperature, area, volume, speed, time, pressure, energy and data - instantly, in your browser.
Percentage Calculator
Percent of a number, percent change, discount price, and tip splitting - five common questions in one tool.