Free Tools / JSON Formatter and Validator
JSON Formatter and Validator
Beautify, validate and minify JSON with exact error locations. Encode and decode URLs and Base64, with full Unicode support.
How to format and validate JSON
- Paste your JSON into Input, or click Sample data.
- Click Beautify to indent it with 2 spaces, 4 spaces or tabs. Turn on Sort keys to order every object's keys alphabetically.
- If the JSON is broken, you get the exact line and column, what is wrong in plain English and how to fix it.
- Click Minify to remove all spacing before you paste the JSON into code, a config file or an API request.
URL and Base64 encoding
URL encoding replaces characters that are not allowed in a web address with a percent code, so "café menu" becomes caf%C3%A9%20menu. Use Query value mode for a single parameter value, or Full URL mode to keep characters such as : / ? & = intact.
Base64 turns any text, including Hindi and emoji, into plain letters and digits that are safe in emails, headers and data URLs. "Hello, world" becomes SGVsbG8sIHdvcmxk. Choose URL-safe to use - and _ instead of + and /.
Common questions
What are the most common JSON errors?
Trailing commas, single quotes instead of double quotes, and keys without quotes. A comma after the last item, for example, gives: Invalid JSON at line 3, column 13: Trailing comma: remove the comma before }.
Is it safe to paste API keys or customer data?
Everything runs in your browser and nothing is sent to a server. Your latest results are kept in this browser's Recent History, so use Clear all there when you finish on a shared computer.
Is Base64 encryption?
No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to hide passwords or secrets.
Related tools: Slug Generator, Email Extractor and CSV to Table, UTM Builder. All free tools.
Building an API, a dashboard or an internal tool? See our web and SaaS development.