JSON formatter and validator
Paste JSON to pretty print it, shrink it to one line, or find out why it is not valid. The result appears as you type.
- No upload
- No account
- Free, no watermark
Your JSON
Result
How it works
How to format JSON
Paste your JSON or add a file
Type or paste into the box on the left, or press Choose file. You can also drop a file onto the box.
Choose Format or Minify
Format adds line breaks and indents so the JSON is easy to read. Minify removes every space that is not needed.
Copy or download
Press Copy to paste the result into your code, or Download file to save it.
Why
Why format and validate JSON
JSON from an API or a log is often one long line that nobody can read, and a single missing comma or quote makes it invalid. A formatter makes the structure visible, and a validator points to the exact line and column where it breaks.
Questions
Questions and answers
How do I find the error in my JSON?
Paste the JSON and read the message under the boxes. It gives the line and column where parsing stopped. The mistake is usually right there or just before it, such as a missing comma, a trailing comma, single quotes instead of double quotes, or an unclosed bracket.
What is the difference between Format and Minify?
Format adds line breaks and indents so people can read the JSON. Minify removes all extra spaces and line breaks, which makes the text smaller to send or store. The data is the same either way.
Can it read JSON Lines?
Yes. If every line is its own JSON value, the lines are combined into one list when you format them.
Is my data uploaded?
No. The conversion runs inside your browser, and what you paste or add never leaves your device. It is safe to use with private data, API responses and configuration files.
Does it work offline?
Yes. Once the page has loaded, it works without an internet connection, and nothing you type or add is sent anywhere.
More tools
More free tools
Everything on ConvertOrino runs in your browser, so your files and what you type never leave your device.
Last updated