OrbaTools 100% Local & Free

JSON Formatter

Pretty-print, minify, and alphabetically sort JSON keys locally in your browser without uploading payloads.

100% Local Processing — Your files and text never leave your browser.

How to use JSON Formatter

  1. Paste raw or minified JSON into the input editor above.
  2. Select 2 spaces, 4 spaces, Tab indentation, or Minify, and optionally enable Sort Keys.
  3. Copy the formatted JSON or download it directly as a .json file.

Technical & Privacy Details

Formatting uses native JSON.parse and JSON.stringify strictly inside your browser tab—making it safe for API responses, config files, and production payloads containing sensitive keys.

Frequently Asked Questions

Is it safe to paste production API responses or config files here?

Yes. Your JSON never leaves your browser tab and is never logged or transmitted to any server.

What does Sort Keys do?

Sort Keys recursively orders object properties alphabetically, which makes diffing two JSON payloads much easier.

Why does JSON Formatter reject trailing commas or single quotes?

Strict RFC 8259 JSON requires double quotes for keys and strings and prohibits trailing commas.

Can I minify formatted JSON back into one line?

Yes. Click Minify to strip all unnecessary whitespace for compact transport.

Related Tools