JSON Formatter and Validator
Paste JSON to format, validate and minify it instantly. Choose indentation, sort keys, and spot syntax errors with line and column hints.
How to format JSON
- Paste your JSON into the editor.
- Choose pretty-print or minify, set indentation, and toggle key sorting.
- Copy the result or download it as a .json file.
Examples
Pretty-print
{"name":"Ada","skills":["math","logic"]}{
"name": "Ada",
"skills": [
"math",
"logic"
]
}Frequently asked questions
Does this validate JSON too?
Yes. If the JSON is invalid, you get the error message with a line and column hint where possible.
Is my JSON sent to a server?
No. Formatting and validation happen entirely in your browser.
Can I sort object keys?
Yes. Turn on key sorting to order keys alphabetically at every level, which is handy for diffs.
What indentation can I use?
Two or four spaces for readable output, or minify to strip all whitespace for the smallest size.
Learn more
- Common JSON errors and how to fix them
Trailing commas, single quotes, unquoted keys and other JSON mistakes, with quick fixes.
Related tools
JSON to CSV
Convert JSON to CSV online. Paste an array of objects and get clean, spreadsheet-ready CSV with the right headers. Runs in your browser.
CSV to JSON
Convert CSV to JSON online. Turn spreadsheet rows into clean JSON objects or arrays, with smart number and boolean typing. Free tier plus API.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.
Base58 Encoder
Encode and decode Base58 online with the Bitcoin alphabet. Convert text to Base58 or back, UTF-8 safe, no confusing 0 O I l. Runs in your browser.
Base64 Decode
Decode Base64 to plain text online. Paste a Base64 or base64url string and get instant UTF-8 output. Free, fast and runs in your browser.