# JSON Formatter

> Format, minify and validate JSON online. Search a code editor or tree view while preserving large numbers and duplicate keys. Your JSON stays in your browser.

- **URL:** https://tulo.in/tools/json-formatter
- **Category:** Text & code
- **Execution mode:** 100% browser-local (Web Workers / WebAssembly; files and inputs never leave the user's device)

## Key Features

- Prettify, minify and check JSON syntax
- Search in the editor or explore a tree view
- Keep large numbers and duplicate keys as written

## Format and validate JSON without changing its values

Make an API response easier to read, minify JSON for sharing or explore a nested object in a tree. Paste your JSON or open a file. Formatting keeps large numbers and duplicate keys as written.

## Questions & Limits

### Will large numbers and duplicate keys be preserved?

Yes. Formatting keeps number spellings such as 9007199254740993 and 1e+3, and retains duplicate property names. Warnings flag interoperability risks: other applications may round a number or interpret duplicate keys differently.

### Can I load a file or format invalid JSON?

Open a local JSON file or paste up to 5 MiB of UTF-8 JSON (up to 8 MiB after pretty-printing, with 5,000 nodes shown in Tree view). Invalid JSON highlights syntax errors by line and column; comments and trailing commas are not auto-fixed.

### Is my JSON uploaded or saved?

No. Formatting, validation and search run in your browser. Leaving or refreshing the tool discards the document. Copy or download anything you want to keep.

## Related Tools

- [CSV Viewer](https://tulo.in/tools/csv-viewer): Open, edit and download CSV or TSV data.
- [HTML, CSS & JS Playground](https://tulo.in/tools/html-css-js-playground): Run HTML, CSS and JS in a sandboxed preview.
