JSON Formatter
Format, minify and validate JSON, with the line and column of any error.
Everything is worked out in your browser; nothing is sent anywhere or saved.
How to use
- Paste your JSON into the box.
- Choose 2 spaces, 4 spaces or a tab.
- Press Format, Minify or Validate, then copy or download.
About JSON Formatter
The JSON Formatter tidies messy JSON into readable, indented text, or squeezes it onto one line to save space. If something is wrong, it tells you what and where, with the line and column, and selects the spot in the box. It runs entirely in your browser, with nothing sent anywhere or saved.
FAQs
Is my JSON sent anywhere?
No. It is parsed by your own browser, so it is safe for API keys and private data.
Why is my JSON invalid?
The usual causes are trailing commas, single quotes instead of double quotes, and keys without quotes.
Does formatting change my data?
No. Only whitespace changes; keys, values and order stay the same.
Advertisement
Related tools
LIVEBase64 & URL Encoder / DecoderEncode or decode Base64 with full UTF-8, make data URLs from files, and URL-encode text.LIVEText Case ConverterSwitch text to UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more.LIVEWord & Character CounterCount words, characters, sentences and reading time as you type.LIVEPassword GeneratorStrong random passwords with your choice of length, character sets and a strength meter.