JSON Formatter
Format, validate, and minify JSON. Catches syntax errors with line + column.
Format, validate, and explore JSON instantly. Beautify or minify, browse a collapsible tree, sort keys, auto-repair broken JSON, and convert to TypeScript types or YAML — all locally, with precise error messages when something’s off.
How to use JSON Formatter
- 1Paste, type, or drop a .json file into the input.
- 2See it validated live, with the exact line and column of any error.
- 3Switch between Text and Tree views, beautify, minify, or sort keys.
- 4Copy the result, download it, or convert to TypeScript / YAML.
Fixing broken JSON
Real-world JSON is often invalid — copied from a log with trailing commas, written with single quotes, or pasted with comments from a config file. The Repair pass handles all of these: it removes trailing and duplicate commas, converts single quotes to double, quotes bare keys, and strips // and /* */ comments, then re-validates so you can see exactly what changed.
When a repair isn’t possible, the error message points to the precise line and column, so you can fix the source instead of guessing.
Exploring large payloads
API responses can be thousands of lines deep. The Tree view turns them into a collapsible structure with type colours, array and object counts, and a search box that jumps to any matching key or value. You can copy a single value or its full JSON path — handy when you’re writing code to reach a deeply nested field.
Frequently asked questions
Still have questions?
If you can’t find the answer you’re looking for, our support team is here to help.
Contact SupportKeep going.
JWT Decoder
Decode JWT headers + payloads. Surfaces issued, expires, and notBefore timestamps.
Base64 Encode / Decode
Encode text to base64 or decode base64 back to text. UTF-8 safe.
URL Encode / Decode
Percent-encode strings for URLs, or decode them back. Includes a query string parser.
Image Compressor
Compress JPG, PNG, WebP, and AVIF images without quality loss. Free, instant, and 100% private.
PDF Merger
Combine multiple PDFs into a single file. Drag to reorder, processed in your browser.
Image Resizer
Resize images by pixels or percentage. Presets for Instagram, X, HD, 4K — and bulk supported.

